/**
 * Experts Travel ? public package builder accordion (presentation only).
 * Scoped to .ets-builder-wrap--frontend
 */

.ets-builder-wrap--frontend .ets-acc-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ets-builder-wrap--frontend .ets-acc-item {
	border: 1px solid #b8d9f5;
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(12, 45, 74, 0.04);
}

.ets-builder-wrap--frontend .ets-acc-item.is-expanded {
	border-color: #7eb8ea;
	box-shadow: 0 2px 10px rgba(26, 90, 138, 0.1);
}

.ets-builder-wrap--frontend .ets-acc-item--quote {
	margin-top: 12px;
}

.ets-builder-wrap--frontend .ets-acc-item--quote[hidden] {
	display: none !important;
}

.ets-builder-wrap--frontend .ets-acc-heading {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
}

.ets-builder-wrap--frontend button.ets-acc-trigger {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 16px 18px;
	border: 0 !important;
	border-radius: 0 !important;
	background: #ffffff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #1a2332 !important;
	text-align: left;
	font: inherit;
	line-height: 1.4;
	cursor: pointer;
}

.ets-builder-wrap--frontend button.ets-acc-trigger:hover,
.ets-builder-wrap--frontend button.ets-acc-trigger:focus {
	background: #f7fbff !important;
	outline: none;
}

.ets-builder-wrap--frontend button.ets-acc-trigger:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(26, 90, 138, 0.35) !important;
}

.ets-builder-wrap--frontend .ets-acc-trigger-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ets-builder-wrap--frontend .ets-acc-title {
	font-size: 1rem;
	font-weight: 700;
	color: #0c2d4a;
	letter-spacing: -0.01em;
}

.ets-builder-wrap--frontend .ets-acc-summary {
	font-size: 0.8125rem;
	font-weight: 400;
	color: #5c6b7e;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ets-builder-wrap--frontend .ets-acc-item.is-expanded .ets-acc-summary {
	display: none;
}

.ets-builder-wrap--frontend .ets-acc-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1.5px solid #7eb8ea;
	border-radius: 6px;
	background: #ffffff;
	color: #0c2d4a;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
}

.ets-builder-wrap--frontend .ets-acc-panel[hidden] {
	display: none !important;
}

.ets-builder-wrap--frontend .ets-acc-panel {
	padding: 0 18px 18px;
	border-top: 1px solid #e3effa;
	background: #ffffff;
}

.ets-builder-wrap--frontend .ets-acc-panel .ets-builder-section,
.ets-builder-wrap--frontend .ets-acc-panel .ets-fieldset {
	margin: 0;
	padding: 16px 0 0;
	border: 0;
	background: transparent;
}

.ets-builder-wrap--frontend .ets-acc-panel .ets-builder-section legend,
.ets-builder-wrap--frontend .ets-acc-panel .ets-fieldset legend {
	display: none;
}

.ets-builder-wrap--frontend .ets-acc-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #e3effa;
}

.ets-builder-wrap--frontend .ets-acc-item[data-ets-step-id="party"] .ets-acc-btn--back {
	display: none;
}

.ets-builder-wrap--frontend .ets-acc-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none !important;
}

.ets-builder-wrap--frontend .ets-acc-btn--back {
	background: #ffffff !important;
	border: 1px solid #b8d9f5 !important;
	color: #0c2d4a !important;
}

.ets-builder-wrap--frontend .ets-acc-btn--back:hover {
	background: #f4f9ff !important;
	border-color: #7eb8ea !important;
}

.ets-builder-wrap--frontend .ets-acc-btn--next,
.ets-builder-wrap--frontend .ets-acc-btn--submit {
	background: linear-gradient(135deg, #0c2d4a 0%, #1a5a8a 100%) !important;
	border: none !important;
	color: #ffffff !important;
}

.ets-builder-wrap--frontend .ets-acc-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fef3f2;
	border: 1px solid #fecdca;
	color: #b42318;
	font-size: 0.875rem;
}

.ets-builder-wrap--frontend .ets-accordion-progress {
	margin-bottom: 12px;
}

.ets-builder-wrap--frontend .ets-booking-sticky-summary {
	position: sticky;
	top: 0;
	z-index: 20;
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 2px 8px rgba(12, 45, 74, 0.06);
	backdrop-filter: blur(6px);
}

.ets-builder-wrap--frontend .ets-booking-sticky-summary__progress {
	margin: 0 0 4px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #0c2d4a;
	line-height: 1.35;
}

.ets-builder-wrap--frontend .ets-booking-sticky-summary__chips {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 400;
	color: #5c6b7e;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ets-builder-wrap--frontend .ets-accordion-progress-track {
	height: 4px;
	border-radius: 999px;
	background: #e8edf4;
	overflow: hidden;
}

.ets-builder-wrap--frontend .ets-accordion-progress-fill {
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #0c2d4a 0%, #1a5a8a 100%);
	transition: width 0.35s ease;
}

.ets-trip-leg-card {
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
}

.ets-trip-leg-title {
	margin: 0 0 14px;
	font-size: 1rem;
	font-weight: 600;
	color: #0c2d4a;
}

.ets-field--checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.ets-field--full {
	grid-column: 1 / -1;
}

.ets-builder-wrap--frontend .ets-trip-leg-card {
	background: #fff;
	border-color: #e8edf4;
}

.ets-sleeping-traveler-summary {
	margin-bottom: 20px;
	padding: 16px 18px;
	border: 1px solid #dbe4ee;
	border-radius: 12px;
	background: #f8fafc;
}

.ets-sleeping-subheading {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 600;
	color: #0c2d4a;
}

.ets-sleeping-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 0;
}

.ets-sleeping-summary-grid dt {
	margin: 0 0 4px;
	font-size: 0.82rem;
	color: #64748b;
}

.ets-sleeping-summary-grid dd {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: #0c2d4a;
}

.ets-sleeping-setup-grid {
	display: grid;
	gap: 14px;
	margin-top: 12px;
}

.ets-sleeping-setup-card {
	padding: 16px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
}

.ets-sleeping-setup-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.ets-sleeping-setup-card__title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 600;
	color: #0c2d4a;
}

.ets-sleeping-setup-card__meaning,
.ets-sleeping-setup-card__meta,
.ets-sleeping-setup-card__use {
	margin: 0 0 6px;
	font-size: 0.9rem;
	color: #475569;
}

.ets-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.ets-qty-stepper__btn {
	width: 34px;
	height: 34px;
	border: 0;
	background: #f1f5f9;
	color: #0c2d4a;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.ets-qty-stepper__btn:hover {
	background: #e2e8f0;
}

.ets-qty-stepper__input {
	width: 42px;
	height: 34px;
	border: 0;
	text-align: center;
	font-weight: 600;
	-moz-appearance: textfield;
}

.ets-qty-stepper__input::-webkit-outer-spin-button,
.ets-qty-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ets-sleeping-capacity-warning {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff7ed;
	border: 1px solid #fdba74;
	color: #9a3412;
}

.ets-sleeping-room-rows {
	display: grid;
	gap: 16px;
	margin-top: 12px;
}

.ets-sleeping-room-card {
	padding: 16px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
}

.ets-sleeping-room-title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 600;
	color: #0c2d4a;
}

.ets-builder-wrap--frontend .ets-sleeping-room-card {
	background: #fff;
	border-color: #e8edf4;
}

/* Phase B ? Travel Party & Accommodation step */
.ets-acc-item--skipped {
	display: none !important;
}

.ets-party-block {
	margin-bottom: 20px;
}

.ets-party-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.ets-party-block__title {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0c2d4a;
	letter-spacing: 0.01em;
}

.ets-party-block__head .ets-party-block__title {
	margin-bottom: 0;
}

.ets-customer-type-cards--compact {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ets-customer-type-cards--compact .ets-customer-type-card-body {
	padding: 12px 14px;
	gap: 4px;
}

.ets-customer-type-cards--compact .ets-customer-type-icon,
.ets-customer-type-cards--compact .ets-customer-type-card-body > span:not(.ets-customer-type-check):not(strong) {
	display: none;
}

.ets-party-stepper-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ets-party-stepper-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
}

.ets-party-stepper-field--inline {
	padding: 0;
	border: 0;
	background: transparent;
}

.ets-party-stepper-field__label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #334155;
}

.ets-qty-stepper--compact {
	min-width: 108px;
}

.ets-party-room-count {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ets-party-room-count__label {
	font-size: 0.875rem;
	color: #475569;
}

.ets-party-room-cards {
	display: grid;
	gap: 12px;
}

.ets-party-room-card {
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ets-party-room-card__title {
	margin: 0 0 10px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #0c2d4a;
}

.ets-party-setup-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 12px;
}

.ets-party-setup-option {
	display: block;
	cursor: pointer;
}

.ets-party-setup-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ets-party-setup-option__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	background: #f8fafc;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ets-party-setup-option__body strong {
	font-size: 0.78rem;
	line-height: 1.25;
	color: #0c2d4a;
}

.ets-party-setup-option__body span {
	font-size: 0.72rem;
	line-height: 1.25;
	color: #64748b;
}

.ets-party-setup-option input:checked + .ets-party-setup-option__body,
.ets-party-setup-option input:focus-visible + .ets-party-setup-option__body {
	border-color: #2563eb;
	background: #eff6ff;
	box-shadow: 0 0 0 1px #2563eb;
}

.ets-party-room-guests {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.ets-party-summary {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}

.ets-party-summary__line {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0c2d4a;
}

.ets-party-summary__hint {
	margin: 6px 0 0;
	font-size: 0.78rem;
	color: #64748b;
}

.ets-party-validation {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 0.82rem;
}

.ets-party-validation--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.ets-party-validation--warning {
	background: #fff7ed;
	border: 1px solid #fdba74;
	color: #9a3412;
}

@media (min-width: 640px) {
	.ets-party-stepper-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ets-party-setup-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.ets-party-setup-grid {
		grid-template-columns: 1fr;
	}

	.ets-party-stepper-grid {
		grid-template-columns: 1fr;
	}
}

/* Step 1 — room allocation table */
.ets-party-header-card {
	margin-bottom: 16px;
	border: 1px solid #0c2d4a;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
}

.ets-party-header-row {
	display: grid;
	grid-template-columns: minmax(160px, 1.1fr) minmax(180px, 1fr);
	border-bottom: 1px solid #1a5a8a;
}

.ets-party-header-row:last-child {
	border-bottom: 0;
}

.ets-party-header-label {
	margin: 0;
	padding: 12px 14px;
	background: linear-gradient(135deg, #0c2d4a 0%, #1a5a8a 100%);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	display: flex;
	align-items: center;
}

.ets-party-header-input,
.ets-party-header-control {
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	background: #ffffff;
}

.ets-party-header-input {
	width: 100%;
	border: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #0c2d4a;
}

.ets-party-header-input:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px rgba(26, 90, 138, 0.25);
}

.ets-party-header-hint {
	font-size: 0.75rem;
	color: #64748b;
}

.ets-party-secondary-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 12px;
}

.ets-party-client-type--compact {
	margin-bottom: 16px;
}

.ets-party-client-type__label {
	margin: 0 0 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ets-acc-muted, #64748b);
}

.ets-party-allocation-wrap {
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 0;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 12px;
	background: #ffffff;
}

.ets-party-allocation-sidebar {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #1a5a8a 0%, #0c2d4a 100%);
	padding: 8px 4px;
}

.ets-party-allocation-sidebar__text {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ets-party-allocation-table-wrap {
	overflow-x: auto;
}

.ets-party-allocation-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.ets-party-allocation-table thead th {
	padding: 10px 12px;
	background: #f1f5f9;
	color: #0c2d4a;
	font-weight: 700;
	text-align: center;
	border-bottom: 1px solid #cbd5e1;
	white-space: nowrap;
}

.ets-party-allocation-table tbody td,
.ets-party-allocation-table tbody th {
	padding: 8px 10px;
	border-bottom: 1px solid #e2e8f0;
	text-align: center;
	vertical-align: middle;
}

.ets-party-allocation-row--alt {
	background: #f8fafc;
}

.ets-party-allocation-room-num {
	font-weight: 700;
	color: #0c2d4a;
	background: #f8fafc;
	width: 48px;
}

.ets-party-table-select {
	width: 100%;
	min-width: 140px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #0c2d4a;
	font-size: 0.8125rem;
}

.ets-party-table-select:focus {
	outline: none;
	border-color: #1a5a8a;
	box-shadow: 0 0 0 2px rgba(26, 90, 138, 0.15);
}

.ets-party-assignment-status {
	margin: 0 0 10px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #64748b;
}

.ets-party-assignment-status--ok {
	color: #0f766e;
}

.ets-party-assignment-status--warn {
	color: #b45309;
}

@media (max-width: 768px) {
	.ets-party-header-row {
		grid-template-columns: 1fr;
	}

	.ets-party-secondary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ets-party-allocation-wrap {
		grid-template-columns: 1fr;
	}

	.ets-party-allocation-sidebar {
		writing-mode: horizontal-tb;
		padding: 8px 12px;
	}

	.ets-party-allocation-sidebar__text {
		writing-mode: horizontal-tb;
		transform: none;
	}
}
