/**
 * Citation Sidebar styles
 * Used by [citation_sidebar] shortcode.
 */

.cit-sidebar {
	font-family: inherit;
	width: 100%;
}

.ct-shortcode {
	width: 100%;
}

.cit-sidebar__box {
	padding: 0 10px 24px;
}

/* --- non-product items (technology, pages, etc.) --- */
.cit-sidebar__item {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #000;
	margin-bottom: 24px;
}

.cit-sidebar__item:last-child {
	margin-bottom: 0;
}

.cit-sidebar__thumb {
	width: 78px;
	height: 78px;
	min-width: 78px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 4px;
	margin-right: 24px;
}

.cit-sidebar__label-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cit-sidebar__label {
	font-size: 16px;
	font-weight: 600;
	line-height: 26px;
	color: #2d2d2d;
}

.cit-sidebar__excerpt {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: #2d2d2d;
	margin-top: 3px;
	display: block;
}

/* --- product/category box --- */
.cit-sidebar__item--product {
	display: block;
	height: 80px;
	border: 1px solid #f5f5f5;
	border-radius: 4px;
	padding: 10px 15px;
	padding-right: 52px;
	margin-bottom: 30px;
	position: relative;
	background: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 16px;
	color: #000;
	transition: all .4s ease-in-out;
}

.cit-sidebar__item--product:last-child {
	margin-bottom: 0;
}

.cit-sidebar__item--product .cit-sidebar__thumb {
	width: 80px;
	height: 80px;
	min-width: 80px;
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 4px 0 0 4px;
	margin: 0;
}

.cit-sidebar__item--product .cit-sidebar__label {
	position: absolute;
	top: 50%;
	left: 100px;
	max-width: calc(100% - 140px);
	transform: translateY(-50%);
	display: block;
	color: #2d2d2d;
	font-weight: 700;
}

/* --- product hover --- */
.cit-sidebar__item--product:hover {
	background: var(--brandcolors-summer-sky-10, #e5f2ff);
}

.cit-sidebar__item--product:hover .cit-sidebar__label {
	color: var(--brand-colors-summer-sky-darker, #087eec);
}

/* --- hide featured & share --- */
.cit-sidebar__box--featured,
.cit-sidebar__box--share {
	display: none;
}

/* --- item link inside cat row --- */
.cit-sidebar__item-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #2d2d2d;
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% - 52px);
	height: 100%;
}

.cit-sidebar__item-link .cit-sidebar__thumb {
	width: 80px;
	height: 80px;
	min-width: 80px;
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 4px 0 0 4px;
	margin: 0;
}

.cit-sidebar__item-link .cit-sidebar__label {
	position: absolute;
	top: 50%;
	left: 100px;
	max-width: calc(100% - 100px);
	transform: translateY(-50%);
	display: block;
	color: #2d2d2d;
	font-weight: 700;
}

/* --- category with dropdown (matches PDP variations select styling) --- */
.cit-sidebar__cat-wrap {
	position: relative;
	margin-bottom: 30px;
}

.cit-sidebar__cat-wrap:last-child {
	margin-bottom: 0;
}

.cit-sidebar .cit-sidebar__item.cit-sidebar__item--has-dd {
	height: 80px;
	border-radius: var(--border-radius-border-radius-md, 8px);
	border: 1px solid #f5f5f5;
	background: var(--white-bg, #fff);
	box-shadow: none;
	cursor: pointer;
	padding-right: 48px;
	overflow: hidden;
}

.cit-sidebar__item--has-dd:focus-visible {
	outline: 2px solid var(--brand-colors-summer-sky-darker, #087eec);
	outline-offset: 2px;
}

.cit-sidebar__item--has-dd::after {
	display: none;
}

.cit-sidebar__cat-wrap.is-open .cit-sidebar__item--has-dd {
	border-radius: var(--border-radius-border-radius-md, 8px) var(--border-radius-border-radius-md, 8px) 0 0;
	box-shadow: none;
}

.cit-sidebar__dd-toggle {
	position: absolute;
	right: 0;
	top: 0;
	width: 48px;
	height: 80px;
	border-top-right-radius: var(--border-radius-border-radius-md, 8px);
	border-bottom-right-radius: var(--border-radius-border-radius-md, 8px);
	background: url(/wp-content/uploads/2025/06/white-angle-down.svg) var(--brand-colors-summer-sky-darker, #087eec);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	cursor: pointer;
	opacity: 1;
	padding: 0;
	z-index: 2;
	transform: none;
	transition: all .4s ease;
}

.cit-sidebar__item--has-dd:hover .cit-sidebar__dd-toggle {
	background-color: var(--brand-colors-summer-sky-darkest, #0866c4);
}

.cit-sidebar__dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #f5f5f5;
	border-top: none;
	border-bottom: none;
	border-radius: 0 0 var(--border-radius-border-radius-md, 8px) var(--border-radius-border-radius-md, 8px);
	z-index: 10;
}

.cit-sidebar__cat-wrap.is-open .cit-sidebar__dropdown {
	display: block;
	border-bottom: 1px solid #f5f5f5;
	padding: 15px 5px;
	box-shadow: none;
}

.cit-sidebar__sub-item {
	display: block;
	padding: 10px 10px;
	font-size: 16px;
	line-height: 26px;
	font-weight: 600;
	color: #2d2d2d;
	text-decoration: none;
	border-bottom: 1px solid #f5f5f5;
	transition: all .3s ease-out;
}

.cit-sidebar__sub-item:last-child {
	border-bottom: none;
}

.cit-sidebar__sub-item:hover {
	color: #57a9d9;
}

/* --- share --- */
.cit-sidebar__share-row {
	display: flex;
	gap: 6px;
}

.cit-sidebar__input {
	flex: 1;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 12px;
	min-width: 0;
}

.cit-sidebar__btn {
	padding: 6px 12px;
	background: #2bbcd4;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 12px;
	cursor: pointer;
	white-space: nowrap;
}

.cit-sidebar__btn:hover {
	background: #22a3b8;
}
