/* E2Peru Combo Builder — Scoped Styles Aligned with e2peru.com (Divi-safe) */
.e2cb-wrapper {
	--e2cb-accent: #0c71c3;
	--e2cb-bg: #ffffff;
	--e2cb-surface: #f7f9fc;
	--e2cb-border: #dce3ec;
	--e2cb-text: #1e293b;
	--e2cb-muted: #64748b;
	--e2cb-radius: 6px;

	font-family: inherit;
	color: var(--e2cb-text);
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 20px auto 40px;
	padding: 0 16px;
}

.e2cb-wrapper *,
.e2cb-wrapper *::before,
.e2cb-wrapper *::after {
	box-sizing: border-box;
}

.e2cb-notice {
	padding: 14px 18px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	border-radius: 6px;
	font-size: 14px;
}

.e2cb-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--e2cb-border);
}

.e2cb-header-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}

.e2cb-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--e2cb-text);
}

.e2cb-subtitle {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--e2cb-muted);
}

.e2cb-reset-btn {
	background: #fff;
	border: 1px solid var(--e2cb-border);
	color: var(--e2cb-muted);
	padding: 7px 14px;
	border-radius: var(--e2cb-radius);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.e2cb-reset-btn:hover {
	border-color: var(--e2cb-accent);
	color: var(--e2cb-accent);
}

.e2cb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
	gap: 28px;
	align-items: start;
}

.e2cb-section {
	margin-bottom: 26px;
}

.e2cb-section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.e2cb-section-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 17px;
	font-weight: 700;
	color: var(--e2cb-text);
}

.e2cb-section-desc {
	margin: 3px 0 0 !important;
	padding: 0 !important;
	font-size: 13px;
	color: var(--e2cb-muted);
}

.e2cb-section-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.e2cb-badge-locked,
.e2cb-badge-mode {
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	background: #eef4fa;
	color: #1e40af;
}

.e2cb-badge-locked {
	background: var(--e2cb-accent);
	color: #fff;
}

.e2cb-clear-group-btn {
	background: none;
	border: none;
	color: var(--e2cb-muted);
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	padding: 2px 4px;
}

.e2cb-clear-group-btn:hover {
	color: var(--e2cb-accent);
}

/* Base equipment card */
.e2cb-base-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: var(--e2cb-surface);
	border: 2px solid var(--e2cb-accent);
	border-radius: var(--e2cb-radius);
}

.e2cb-base-thumb {
	width: 70px;
	height: 70px;
	object-fit: contain;
	border-radius: 4px;
	background: #fff;
	border: 1px solid var(--e2cb-border);
	flex-shrink: 0;
	padding: 4px;
}

.e2cb-base-info {
	flex: 1;
	min-width: 0;
}

.e2cb-base-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--e2cb-text);
}

.e2cb-base-sub {
	font-size: 12.5px;
	color: var(--e2cb-muted);
	margin-top: 3px;
}

.e2cb-base-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--e2cb-text);
	white-space: nowrap;
}

.e2cb-base-price span,
.e2cb-card-price span {
	font-size: 12px;
	font-weight: 500;
	color: var(--e2cb-muted);
}

/* Smart 4-column dense category packing (pairs small categories side-by-side) */
.e2cb-cats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px 14px;
	grid-auto-flow: dense;
	align-items: start;
}

.e2cb-cat-block {
	min-width: 0;
}

.e2cb-cat-span-1 {
	grid-column: span 1;
}

.e2cb-cat-span-2 {
	grid-column: span 2;
}

.e2cb-cat-span-3 {
	grid-column: span 3;
}

.e2cb-cat-span-4 {
	grid-column: span 4;
}

.e2cb-cat-heading {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #475569;
	padding-bottom: 5px;
	margin-bottom: 8px;
	border-bottom: 1px solid #e2e8f0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Curated component cards (sleek & compact to minimize vertical scroll) */
.e2cb-cards-grid {
	display: grid;
	gap: 10px;
}

.e2cb-cols-1 {
	grid-template-columns: 1fr;
}

.e2cb-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.e2cb-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.e2cb-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.e2cb-item-card {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	flex-direction: column;
	text-align: left;
	padding: 7px;
	background: var(--e2cb-bg);
	border: 1.5px solid var(--e2cb-border);
	border-radius: var(--e2cb-radius);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
	position: relative;
	width: 100%;
	font-family: inherit;
	color: inherit;
}

.e2cb-item-card:hover {
	border-color: var(--e2cb-accent);
	transform: translateY(-1px);
}

.e2cb-item-card.is-selected {
	border-color: var(--e2cb-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--e2cb-accent) 20%, transparent);
	background: #fff;
}

.e2cb-card-top {
	position: relative;
	width: 100%;
	height: 86px;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	margin-bottom: 6px;
}

.e2cb-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.e2cb-check-indicator {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	border: 1.5px solid #cbd5e1;
	color: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	transition: all 0.15s ease;
}

.e2cb-item-card.is-selected .e2cb-check-indicator {
	background: var(--e2cb-accent);
	border-color: var(--e2cb-accent);
	color: #fff;
}

.e2cb-base-tag {
	position: absolute;
	bottom: 4px;
	left: 4px;
	background: rgba(15, 23, 42, 0.85);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
}

.e2cb-lens-tag {
	position: absolute;
	top: 4px;
	left: 4px;
	background: #16a34a;
	color: #fff;
	font-size: 9.5px;
	font-weight: 700;
	padding: 2px 5px;
	border-radius: 4px;
	line-height: 1.2;
}

.e2cb-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	justify-content: space-between;
	gap: 5px;
}

.e2cb-card-name {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.28;
	color: var(--e2cb-text);
}

.e2cb-card-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--e2cb-text);
}

.e2cb-card-old-price {
	font-size: 12px;
	font-weight: 500;
	color: #94a3b8;
	margin-right: 4px;
}

/* Right Column: E2Peru Blue Card (matches e2peru.com product page) */
.e2cb-sidebar {
	position: sticky;
	top: 28px;
}

.e2cb-summary-card {
	background: var(--e2cb-accent);
	color: #ffffff;
	border-radius: var(--e2cb-radius);
	padding: 22px 20px;
	box-shadow: 0 10px 28px rgba(19, 118, 198, 0.22);
}

.e2cb-summary-head {
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
	margin-bottom: 16px;
}

.e2cb-summary-title {
	margin: 0 0 10px !important;
	padding: 0 !important;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff !important;
}

.e2cb-hero-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}

.e2cb-hero-regular {
	font-size: 20px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.65);
}

.e2cb-hero-combo {
	font-size: 28px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.1;
}

.e2cb-hero-unit {
	font-size: 18px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}

/* White inner box with Iniciar / Final calendar fields (matching screenshot 2) */
.e2cb-booking-box {
	background: #ffffff;
	color: var(--e2cb-text);
	border-radius: 4px;
	padding: 14px;
	margin-bottom: 16px;
}

.e2cb-date-field {
	position: relative;
	background: #ebebeb;
	border-radius: 3px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
	margin-bottom: 10px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.e2cb-date-field:hover,
.e2cb-date-field:focus-within {
	border-color: var(--e2cb-accent);
	background: #f3f4f6;
}

.e2cb-date-placeholder {
	font-size: 14px;
	color: #555555;
	font-weight: 500;
	pointer-events: none;
}

.e2cb-date-field.has-value .e2cb-date-placeholder {
	font-size: 12px;
	color: #64748b;
}

.e2cb-date-display {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	pointer-events: none;
}

.e2cb-date-native {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	opacity: 0 !important;
	cursor: pointer !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

.e2cb-duration-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: #475569;
	padding: 6px 2px 10px;
}

.e2cb-duration-total {
	font-size: 15px;
	color: #0f172a;
}

.e2cb-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.e2cb-btn-primary {
	width: 100%;
	padding: 11px 16px;
	background: #ffffff;
	color: var(--e2cb-accent);
	border: 1.5px solid var(--e2cb-accent);
	border-radius: 3px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.e2cb-btn-primary:hover {
	background: var(--e2cb-accent);
	color: #ffffff;
}

.e2cb-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.e2cb-btn-whatsapp {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 16px;
	background: #16a34a;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: var(--e2cb-radius);
	font-size: 14px;
	font-weight: 600;
	transition: opacity 0.15s ease;
}

.e2cb-whatsapp-outside {
	margin-top: 12px;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.22);
}

.e2cb-btn-whatsapp:hover {
	opacity: 0.92;
	color: #fff !important;
}

.e2cb-feedback {
	margin-bottom: 10px;
	padding: 9px 11px;
	border-radius: 4px;
	font-size: 12.5px;
	font-weight: 600;
}

.e2cb-feedback.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.e2cb-feedback.is-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.e2cb-discount-hint {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #ffffff;
	font-size: 12.5px;
	padding: 9px 12px;
	border-radius: 4px;
	margin-bottom: 14px;
}

/* Breakdown inside the blue card */
.e2cb-summary-list-wrap {
	margin-bottom: 14px;
}

.e2cb-summary-subtitle {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 8px;
}

.e2cb-summary-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 7px;
	max-height: 200px;
	overflow-y: auto;
}

.e2cb-summary-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	font-size: 13px;
	line-height: 1.35;
	padding-bottom: 6px;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.e2cb-summary-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.e2cb-summary-item-price {
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 600;
}

.e2cb-totals {
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.e2cb-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.94);
}

.e2cb-row-regular .e2cb-regular-daily {
	text-decoration: line-through;
	color: rgba(255, 255, 255, 0.65);
}

.e2cb-row-prediscount,
.e2cb-row-discount {
	color: #ffffff;
	font-weight: 400;
}

.e2cb-row-prediscount span:last-child,
.e2cb-row-discount span:last-child {
	background: rgba(6, 36, 68, 0.34);
	color: #fde68a;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 400;
	white-space: nowrap;
}

/* High-contrast white + ice-blue final total card */
.e2cb-final-card {
	margin-top: 14px;
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.e2cb-final-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: #ffffff;
}

.e2cb-final-label {
	font-size: 16px;
	font-weight: 600;
	color: #0b2a4a;
}

.e2cb-final-total {
	font-size: 25px;
	font-weight: 400;
	color: #0b2a4a;
	line-height: 1.1;
}

.e2cb-savings-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #e6f2fc;
	color: #0c4a82;
	padding: 10px 14px;
	font-size: 13.5px;
	font-weight: 600;
	border-top: 1px solid #d4e8fa;
}

.e2cb-savings-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: var(--e2cb-accent);
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	font-style: normal;
	flex-shrink: 0;
}

.e2cb-tax-note {
	margin: 12px 0 0 !important;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
}

@media (max-width: 980px) {
	.e2cb-layout {
		grid-template-columns: 1fr;
	}
	.e2cb-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.e2cb-cats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.e2cb-cat-span-1,
	.e2cb-cat-span-2,
	.e2cb-cat-span-3,
	.e2cb-cat-span-4 {
		grid-column: span 2;
	}
	.e2cb-cols-1,
	.e2cb-cols-2,
	.e2cb-cols-3,
	.e2cb-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}
	.e2cb-base-card {
		flex-wrap: wrap;
	}
}
