/**
 * Floating left "Products List" tab + drawer.
 */

.sophia-plf {
	/* Wrapper only — children are position:fixed. */
}

.sophia-plf__tab {
	align-items: center;
	background: #0f3d4c;
	border: 0;
	border-radius: 0 10px 10px 0;
	box-shadow: 2px 4px 14px rgba(15, 61, 76, 0.28);
	color: #fff;
	cursor: pointer;
	display: flex;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	height: 9.5rem;
	justify-content: center;
	left: 0;
	letter-spacing: 0.04em;
	line-height: 1.1;
	margin: 0;
	padding: 0.65rem 0.35rem;
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 2.15rem;
	z-index: 9990;
}

.sophia-plf__tab:hover,
.sophia-plf__tab:focus-visible {
	background: #145468;
	outline: none;
}

.sophia-plf__tab-label {
	display: inline-block;
	transform: rotate(180deg);
	white-space: nowrap;
	writing-mode: vertical-rl;
}

body.sophia-plf-open .sophia-plf__tab {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.sophia-plf__backdrop {
	background: rgba(20, 28, 36, 0.42);
	border: 0;
	cursor: pointer;
	inset: 0;
	margin: 0;
	padding: 0;
	position: fixed;
	z-index: 9991;
}

.sophia-plf__backdrop[hidden] {
	display: none !important;
}

.sophia-plf__panel {
	background: #fff;
	border-radius: 0 16px 16px 0;
	box-shadow: 8px 0 32px rgba(20, 28, 36, 0.18);
	display: flex;
	flex-direction: column;
	height: 100%;
	height: 100dvh;
	left: 0;
	max-width: min(22.5rem, 92vw);
	overflow: hidden;
	position: fixed;
	top: 0;
	transform: translateX(-105%);
	transition: transform 0.28s ease;
	width: 22.5rem;
	z-index: 9992;
}

.sophia-plf__panel:not([hidden]) {
	display: flex;
}

body.sophia-plf-open .sophia-plf__panel {
	transform: translateX(0);
}

.sophia-plf__header {
	align-items: center;
	background: #f7f8fa;
	border-bottom: 1px solid rgba(20, 28, 36, 0.08);
	display: flex;
	flex: 0 0 auto;
	gap: 0.75rem;
	justify-content: space-between;
	min-height: 3.25rem;
	padding: 0.65rem 0.75rem 0.65rem 0.85rem;
}

.sophia-plf__lang {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.sophia-plf__lang .trp-shortcode-switcher__wrapper,
.sophia-plf__lang .trp_language_switcher_shortcode,
.sophia-plf__lang .trp-shortcode-switcher,
.sophia-plf__lang .trp-language-switcher {
	background: #fff !important;
	border: 1px solid rgba(20, 28, 36, 0.14) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	display: inline-flex !important;
	height: auto !important;
	margin: 0 !important;
	max-width: 100%;
	overflow: visible !important;
	padding: 0.25rem 0.45rem !important;
	position: relative !important;
	width: auto !important;
}

.sophia-plf__lang .trp-shortcode-anchor {
	display: none !important;
}

.sophia-plf__lang .trp-shortcode-overlay {
	left: auto !important;
	position: relative !important;
	top: auto !important;
}

.sophia-plf__lang .trp-language-item__current,
.sophia-plf__lang .trp-current-language-item__wrapper {
	align-items: center !important;
	display: inline-flex !important;
	gap: 0.35rem !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sophia-plf__lang .trp-language-item-name {
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
}

.sophia-plf__lang .trp-flag-image {
	border-radius: 50% !important;
	height: 14px !important;
	width: 14px !important;
}

.sophia-plf__lang .trp-switcher-dropdown-list {
	background: #fff !important;
	border: 1px solid rgba(20, 28, 36, 0.1) !important;
	border-radius: 8px !important;
	box-shadow: 0 10px 24px rgba(20, 28, 36, 0.14) !important;
	left: 0 !important;
	margin-top: 4px !important;
	min-width: 0 !important;
	position: absolute !important;
	top: 100% !important;
	width: max-content !important;
	z-index: 20 !important;
}

.sophia-plf__close {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(20, 28, 36, 0.14);
	border-radius: 999px;
	color: #1a2430;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 1.25rem;
	height: 2rem;
	justify-content: center;
	line-height: 1;
	margin: 0;
	padding: 0;
	width: 2rem;
}

.sophia-plf__close:hover,
.sophia-plf__close:focus-visible {
	background: #eef2f5;
	outline: none;
}

.sophia-plf__search {
	background: #fff;
	border-bottom: 1px solid rgba(20, 28, 36, 0.08);
	flex: 0 0 auto;
	padding: 0.65rem 0.75rem 0.75rem;
}

.sophia-plf__search-input {
	appearance: none;
	background: #f7f8fa;
	border: 1px solid rgba(20, 28, 36, 0.14);
	border-radius: 10px;
	box-sizing: border-box;
	color: #1a2430;
	display: block;
	font-family: inherit;
	font-size: 0.875rem;
	line-height: 1.3;
	margin: 0;
	min-height: 2.5rem;
	padding: 0.55rem 0.85rem;
	width: 100%;
}

.sophia-plf__search-input::placeholder {
	color: #8a939c;
}

.sophia-plf__search-input:focus {
	background: #fff;
	border-color: #0f3d4c;
	box-shadow: 0 0 0 3px rgba(15, 61, 76, 0.12);
	outline: none;
}

.sophia-plf__body {
	flex: 1 1 auto;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0.75rem 0.75rem 1.25rem;
}

.sophia-plf__empty {
	color: #66707a;
	font-size: 0.875rem;
	margin: 1rem 0;
	text-align: center;
}

.sophia-plf__empty--filter {
	margin-top: 0.35rem;
}

.sophia-plf__item[hidden] {
	display: none !important;
}

.sophia-plf__list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sophia-plf__item {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(20, 28, 36, 0.1);
	border-radius: 12px;
	box-sizing: border-box;
	display: flex;
	gap: 0.65rem;
	justify-content: space-between;
	margin: 0;
	padding: 0.7rem 0.75rem;
}

.sophia-plf__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.sophia-plf__name {
	color: #121820;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	word-break: break-word;
}

.sophia-plf__name:hover,
.sophia-plf__name:focus-visible {
	color: #0f3d4c;
	outline: none;
}

.sophia-plf__price {
	align-items: baseline;
	color: #121820;
	display: inline-flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	font-weight: 700;
	gap: 0.35rem;
	line-height: 1.25;
}

.sophia-plf__price del {
	color: #8a939c;
	font-size: 0.75rem;
	font-weight: 500;
	text-decoration: line-through;
}

.sophia-plf__price del .amount,
.sophia-plf__price del .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.sophia-plf__price ins {
	background: none;
	color: #d32f2f;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.sophia-plf__price ins .amount,
.sophia-plf__price ins .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.sophia-plf__price > .woocommerce-Price-amount,
.sophia-plf__price > .amount {
	color: #121820;
	font-weight: 700;
}

.sophia-plf__price--vip {
	color: var(--wp--preset--color--button-color, #954e26);
	font-weight: 600;
}

.sophia-plf__btn {
	align-items: center;
	background: #1a3352;
	border: 0;
	border-radius: 10px;
	box-sizing: border-box;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.01em;
	line-height: 1.15;
	margin: 0;
	max-width: 7.5rem;
	min-height: 2.35rem;
	padding: 0.5rem 0.7rem;
	text-align: center;
	text-decoration: none !important;
	transition: background 0.15s ease, opacity 0.15s ease;
	white-space: nowrap;
}

.sophia-plf__btn:hover,
.sophia-plf__btn:focus-visible {
	background: #24456d;
	outline: none;
}

.sophia-plf__btn.is-busy,
.sophia-plf__btn:disabled {
	cursor: wait;
	opacity: 0.72;
	pointer-events: none;
}

.sophia-plf__btn.is-added {
	background: #1f6b4a;
}

body.sophia-plf-open {
	overflow: hidden;
}

@media screen and (max-width: 30em) {
	.sophia-plf__panel {
		border-radius: 0 12px 12px 0;
		max-width: min(20.5rem, 94vw);
		width: 20.5rem;
	}

	.sophia-plf__tab {
		font-size: 0.75rem;
		height: 8.75rem;
		width: 1.95rem;
	}

	.sophia-plf__btn {
		font-size: 0.6875rem;
		max-width: 6.75rem;
		min-height: 2.2rem;
		padding: 0.45rem 0.55rem;
	}
}
