/**
 * SwissExperiences — "My Selection" slide-in panel.
 * Palette follows the booking layout: gold #b1956d, near-black #121211,
 * muted #5e5b55 / #6f6a63, borders #e5e1dc / #ecebe8.
 */

.swissexp-selection {
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
}

.swissexp-selection.is-open {
	visibility: visible;
	pointer-events: auto;
}

/* Dimmed overlay */
.swissexp-selection__overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 18, 17, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.swissexp-selection.is-open .swissexp-selection__overlay {
	opacity: 1;
}

/* Panel */
.swissexp-selection__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 480px;
	max-width: 92vw;
	background: #fff;
	box-shadow: -12px 0 40px rgba(18, 18, 17, 0.18);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
	font-family: "Open Sans", sans-serif;
}

.swissexp-selection.is-open .swissexp-selection__panel {
	transform: translateX(0);
}

/* Header */
.swissexp-selection__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 32px 32px 22px;
	border-bottom: 1px solid #e5e3dd;
	flex: 0 0 auto;
}

.swissexp-selection__heading {
	margin: 0;
	font-family: "canela", serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	color: #121211;
	letter-spacing: -0.4px;
}

.swissexp-selection__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: 0;
	border-radius: 20px;
	font-size: 24px;
	line-height: 1;
	color: #121211;
	cursor: pointer;
	transition: background 0.2s ease;
}

.swissexp-selection__close:hover {
	background: #f4f2ec;
}

/* Items */
.swissexp-selection__items {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 4px 28px;
}

.swissexp-selection__item {
	display: grid;
	grid-template-columns: 168px 1fr;
	column-gap: 18px;
	row-gap: 14px;
	/* Stretch the top row so the image matches the height of the tag/title/gold text beside
	   it — the two align (bottoms level), with the full-width price flowing below. */
	align-items: stretch;
	padding: 22px 0;
	border-bottom: 1px solid #e5e3dd;
}

/* Items without a thumbnail use the full width for their content. */
.swissexp-selection .swissexp-selection__item.swissexp-selection__item--no-thumb {
	grid-template-columns: 1fr;
}

.swissexp-selection__thumb {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	height: 100%;
	min-height: 150px;
	overflow: hidden;
	border-radius: 3px;
	background: #f4f2ec;
}

.swissexp-selection__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.swissexp-selection__content {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.swissexp-selection__item--no-thumb > .swissexp-selection__content,
.swissexp-selection__item--no-thumb > .swissexp-selection__price {
	grid-column: 1;
}

/* Top row: type chip (left) + remove (right) */
.swissexp-selection__top {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.swissexp-selection__chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	background: #eceae3;
	border-radius: 4px;
	font-family: "Open Sans", sans-serif;
	font-size: 9.5px;
	font-weight: 600;
	line-height: 13px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #7a766c;
	white-space: nowrap;
}

/* Under-review experiences — amber chip so the status reads clearly. */
.swissexp-selection__chip--under-review {
	background: #efd39a;
	color: #6b4c12;
}

/* Circular gold-bordered remove (its own slot in the top row → never overlaps the title). */
.swissexp-selection .swissexp-selection__remove {
	position: static;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0 !important;
	background: none !important;
	border: 1px solid #c3ad8a !important;
	border-radius: 13px !important;
	box-shadow: none !important;
	font-size: 14px !important;
	line-height: 1 !important;
	color: #b1956d !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.swissexp-selection .swissexp-selection__remove:hover {
	background: #f7f2ea !important;
	color: #b1956d !important;
}

.swissexp-selection__title {
	margin: 0;
	font-family: "canela", serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.3px;
	color: #121211;
}

.swissexp-selection__title a {
	color: inherit;
	text-decoration: none;
}

.swissexp-selection__title a:hover {
	color: #b1956d;
}

/* Gold meta lines: "duration · region" and "Requested for … for … guests". */
.swissexp-selection__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.swissexp-selection__meta-line {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	line-height: 18px;
	color: #b1956d;
}

/* Price breakdown: guests line (+ per-guest annotation), add-ons, Estimated Total.
   Near-black figures, no internal rules — the row values right-align via space-between.
   It spans the full card width (grid row 2), flowing beneath the image so the space under
   the thumbnail isn't left empty. */
.swissexp-selection__price {
	grid-column: 1 / -1;
	grid-row: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 2px;
}

.swissexp-selection__price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #121211;
}

.swissexp-selection__price-value {
	white-space: nowrap;
}

/* Estimated Total — emphasised in bold, set slightly apart from the line items. */
.swissexp-selection__price-row--total {
	margin-top: 6px;
}

.swissexp-selection__price-row--total .swissexp-selection__price-label,
.swissexp-selection__price-row--total .swissexp-selection__price-value {
	font-weight: 700;
	color: #121211;
}

/* Journey-only footer note (shown when the drawer holds only journeys) */
.swissexp-selection__journey-note {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 13.5px;
	color: #5e5b55;
	line-height: 1.5;
}

.swissexp-selection__journey-note[hidden],
.swissexp-selection__submit-block[hidden] {
	display: none;
}

/* Empty state */
.swissexp-selection__empty {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 0;
	padding: 40px 44px;
	text-align: center;
}

.swissexp-selection__empty[hidden] {
	display: none;
}

/* Soft-gold circle holding the bookmark motif (echoes the header icon) */
.swissexp-selection__empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 44px;
	background: #f0e9dd;
}

.swissexp-selection__empty-title {
	margin: 0;
	font-family: "canela", serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	color: #121211;
}

.swissexp-selection__empty-text {
	margin: 0;
	max-width: 300px;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: #5e5b55;
}

/* Outline CTAs (Browse Experiences / Curated Journeys) — equal width, stacked, centered */
.swissexp-selection__empty-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	max-width: 300px;
	margin-top: 2px;
}

.swissexp-selection .swissexp-selection__empty-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 15px 20px;
	background: none;
	border: 1px solid #121211;
	border-radius: 0;
	font-family: "canela", serif;
	font-size: 16px;
	line-height: 20px;
	color: #121211;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.swissexp-selection .swissexp-selection__empty-cta:hover {
	background: #121211;
	color: #fff;
}

/* Footer */
.swissexp-selection__footer {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 22px 32px calc(28px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #e5e3dd;
	background: #fff;
}

.swissexp-selection__footer[hidden] {
	display: none;
}

.swissexp-selection__submit-block {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.swissexp-selection__note {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 13.5px;
	color: #5e5b55;
	line-height: 1.4;
}

/* !important beats the theme's global button styling (which forces a transparent bg and
   black text — the same override that hit the remove button). */
.swissexp-selection .swissexp-selection__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 18px 0 !important;
	background: #121211 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-family: "canela", serif;
	font-size: 18px !important;
	line-height: 22px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.swissexp-selection .swissexp-selection__submit:hover {
	background: #2a2a27 !important;
}

.swissexp-selection__fineprint {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-style: italic;
	font-size: 13px;
	color: #5e5b55;
	line-height: 1.5;
}

/* Header count badge (attached to [data-swissexp-toggle], e.g. the cart icon) */
[data-swissexp-toggle] {
	position: relative;
}

.swissexp-selection__badge {
	position: absolute;
	top: -8px;
	right: -10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #b1956d;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	font-family: "Open Sans", sans-serif;
}

.swissexp-selection__badge[hidden] {
	display: none;
}

/* Submit button loading state */
.swissexp-selection__submit.is-loading {
	opacity: 0.6;
	cursor: default;
}

.swissexp-selection__submit:disabled {
	cursor: default;
}

/* Inline submit error (above the CTA) */
.swissexp-selection__submit-error {
	margin: 0 0 14px;
	color: #b23b3b;
	font-size: 13px;
	line-height: 1.5;
}

.swissexp-selection__submit-error:empty {
	display: none;
}

/* Post-submit confirmation state */
.swissexp-selection__confirmation {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 28px;
	text-align: center;
}

.swissexp-selection__confirmation[hidden] {
	display: none;
}

.swissexp-selection__confirmation-title {
	margin: 0 0 12px;
	font-family: "canela", serif;
	font-size: 20px;
	font-weight: 400;
	color: #121211;
	line-height: 1.3;
}

.swissexp-selection__confirmation-text {
	margin: 0;
	font-size: 14px;
	color: #5e5b55;
	line-height: 1.6;
}

.swissexp-selection__confirmation-errors {
	margin: 18px 0 0;
	font-size: 13px;
	color: #b23b3b;
	line-height: 1.5;
}

.swissexp-selection__confirmation-errors[hidden] {
	display: none;
}

/* My Account booking & journey-request status badges */
.sigexp-booking-status,
.sigexp-journey-requests__status {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3px;
	line-height: 1.25;
	white-space: nowrap;
}

/* Request Under Review — prominent amber so it stands out clearly */
.sigexp-booking-status--pending-confirm,
.sigexp-journey-requests__status {
	background: #efd39a;
	color: #6b4c12;
}

/* Approved – Ready for Payment — gold */
.sigexp-booking-status--confirmed {
	background: #ece0c9;
	color: #9a7325;
}

/* Confirmed Experience — calm green */
.sigexp-booking-status--paid,
.sigexp-booking-status--completed {
	background: #dcebda;
	color: #35702f;
}

/* Cancelled / rejected — muted */
.sigexp-booking-status--cancelled,
.sigexp-booking-status--unconfirmed {
	background: #efeae4;
	color: #8a8378;
}

/* Journey enquiry email locked to the account email (logged-in customers) */
.swissexp-locked-email {
	background-color: #f4f2ec !important;
	color: #121211 !important;
	cursor: not-allowed;
}

/* Lock scroll behind the panel */
body.swissexp-selection-open {
	overflow: hidden;
}

/* Mobile — same design, just retuned so the narrow width doesn't push titles to 3 lines. */
@media (max-width: 480px) {
	.swissexp-selection__panel {
		width: 100vw;
		max-width: 100vw;
	}

	.swissexp-selection__header,
	.swissexp-selection__items,
	.swissexp-selection__footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	/* Smaller thumb + gap → more room for the title (wraps to ~2 lines, not 3). */
	.swissexp-selection__item {
		grid-template-columns: 108px 1fr;
		column-gap: 14px;
	}

	.swissexp-selection__thumb {
		width: 100%;
		height: 100%;
		min-height: 118px;
	}

	.swissexp-selection__title {
		font-size: 20px;
	}

	.swissexp-selection__empty {
		padding-left: 24px;
		padding-right: 24px;
	}
}

/* Very small phones — trim once more so the type chip + title still breathe. */
@media (max-width: 360px) {
	.swissexp-selection__item {
		grid-template-columns: 96px 1fr;
	}

	.swissexp-selection__thumb {
		width: 100%;
		height: 100%;
		min-height: 104px;
	}

	.swissexp-selection__title {
		font-size: 19px;
	}

	.swissexp-selection__chip {
		font-size: 9px;
		letter-spacing: 0.6px;
		padding: 5px 8px;
	}
}
