/**
 * Hicabistan Sample Order UI
 */

.hso {
	--hso-ink: #1a1a2e;
	--hso-muted: #5c5c6e;
	--hso-line: #e6e4de;
	--hso-bg: #f7f5f0;
	--hso-accent: #1a1a2e;
	--hso-ok: #1f6b4a;
	--hso-ok-soft: #e8f5ee;
	max-width: 920px;
	margin: 0 auto 48px;
	color: var(--hso-ink);
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.hso__hero {
	background: linear-gradient(145deg, #1a1a2e 0%, #2c2c48 55%, #3a2f28 100%);
	color: #fff;
	padding: 40px 28px;
	border-radius: 14px;
	margin-bottom: 28px;
}

.hso__eyebrow {
	margin: 0 0 10px;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.hso__title {
	margin: 0 0 12px;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

.hso__lead {
	margin: 0 0 20px;
	max-width: 38em;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.55;
	font-size: 1.05rem;
}

.hso__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hso__trust li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.86rem;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
}

.hso__trust-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	flex-shrink: 0;
	position: relative;
}

.hso__trust-icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.hso__trust-icon--card::before {
	width: 10px;
	height: 7px;
	border: 1.5px solid #fff;
	border-radius: 2px;
}

.hso__trust-icon--ship::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1.5px solid #fff;
}

.hso__trust-icon--credit::before {
	content: "€";
	font-size: 0.68rem;
	font-weight: 700;
	color: #fff;
	border: none;
}

.hso__h2 {
	font-size: 1.05rem;
	margin: 0 0 14px;
	font-weight: 650;
}

/* —— How it works —— */
.hso__how {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 28px;
}

.hso__how-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--hso-line);
	border-radius: 12px;
}

.hso__how-num {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--hso-ink);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hso__how-item strong {
	display: block;
	font-size: 0.94rem;
	margin-bottom: 4px;
}

.hso__how-item p {
	margin: 0;
	color: var(--hso-muted);
	font-size: 0.86rem;
	line-height: 1.4;
}

.hso__price-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 28px;
}

.hso__price-card {
	background: var(--hso-bg);
	border: 2px solid transparent;
	box-shadow: 0 0 0 1px var(--hso-line);
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.95rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hso__price-card strong {
	margin-bottom: 4px;
}

.hso__price-card.is-active {
	border-color: var(--hso-ok);
	box-shadow: 0 0 0 1px var(--hso-ok);
	background: var(--hso-ok-soft);
	transform: translateY(-1px);
}

.hso__panel {
	border: 1px solid var(--hso-line);
	border-radius: 14px;
	padding: 22px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(26, 26, 46, 0.04);
}

.hso__step {
	margin-bottom: 22px;
}

.hso__label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 650;
	margin-bottom: 10px;
}

.hso__step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--hso-ink);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	flex-shrink: 0;
}

.hso__micro {
	margin: 8px 0 0;
	font-size: 0.82rem;
	color: var(--hso-muted);
}

/* —— Country picker —— */
.hso__country {
	position: relative;
	max-width: 420px;
}

.hso__country-btn {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--hso-line);
	border-radius: 10px;
	background: #fff;
	font-size: 1rem;
	cursor: pointer;
	text-align: left;
	color: var(--hso-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hso__country-btn:hover,
.hso__country-btn[aria-expanded="true"] {
	border-color: #b8b4a8;
	box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.06);
}

.hso__country-flag {
	font-size: 1.45rem;
	line-height: 1;
	width: 1.6em;
	text-align: center;
}

.hso__country-name {
	flex: 1;
	font-weight: 600;
}

.hso__country-chevron {
	width: 0.55em;
	height: 0.55em;
	border-right: 2px solid #888;
	border-bottom: 2px solid #888;
	transform: rotate(45deg);
	margin-top: -4px;
	opacity: 0.7;
}

.hso__country-dropdown {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--hso-line);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(26, 26, 46, 0.14);
	overflow: hidden;
}

.hso__country-search {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--hso-line);
	padding: 12px 14px;
	font-size: 0.95rem;
	outline: none;
	box-sizing: border-box;
}

.hso__country-list {
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
}

.hso__country-group-title {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hso-muted);
	padding: 10px 10px 4px;
	font-weight: 700;
}

.hso__country-option {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	text-align: left;
	font-size: 0.95rem;
	color: var(--hso-ink);
}

.hso__country-option:hover {
	background: var(--hso-bg);
}

.hso__country-option.is-active {
	background: var(--hso-ok-soft);
	font-weight: 650;
}

.hso__country-option-flag {
	font-size: 1.25rem;
	width: 1.5em;
	text-align: center;
}

.hso__packs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.hso__pack {
	appearance: none;
	border: 2px solid var(--hso-line);
	background: #fff;
	border-radius: 12px;
	padding: 18px 16px;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hso__pack:hover {
	border-color: #b8b4a8;
}

.hso__pack.is-active {
	border-color: var(--hso-accent);
	background: var(--hso-bg);
	transform: translateY(-1px);
}

.hso__pack-title {
	display: block;
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 6px;
}

.hso__pack-price {
	display: block;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.hso__pack-meta {
	display: block;
	margin-top: 6px;
	color: var(--hso-muted);
	font-size: 0.88rem;
}

.hso__hint,
.hso__note {
	color: var(--hso-muted);
	margin: 0 0 10px;
	font-size: 0.95rem;
	line-height: 1.45;
}

.hso__progress {
	margin: 0 0 16px;
	padding: 12px 14px;
	background: var(--hso-bg);
	border-radius: 10px;
}

.hso__progress-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 0.9rem;
}

.hso__progress-bar {
	height: 6px;
	background: #ddd8ce;
	border-radius: 999px;
	overflow: hidden;
}

.hso__progress-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--hso-ok);
	border-radius: 999px;
	transition: width 0.2s ease;
}

.hso__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
	gap: 12px;
}

.hso__card {
	border: 2px solid var(--hso-line);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	position: relative;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	cursor: pointer;
}

.hso__card:hover {
	border-color: #b8b4a8;
}

.hso__card.is-selected {
	border-color: var(--hso-ok);
	box-shadow: 0 0 0 1px var(--hso-ok);
}

.hso__card.is-disabled {
	opacity: 0.45;
}

.hso__card.is-disabled:hover {
	border-color: var(--hso-line);
}

.hso__card img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	background: var(--hso-bg);
}

.hso__card-body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hso__card-name {
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}

.hso__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--hso-ok);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hso__qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: var(--hso-bg);
	border-radius: 999px;
	padding: 4px;
}

.hso__qty-btn {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--hso-ink);
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	font-weight: 600;
	box-shadow: 0 0 0 1px var(--hso-line);
}

.hso__qty-btn:hover:not(:disabled) {
	background: var(--hso-ink);
	color: #fff;
}

.hso__qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.hso__qty-val {
	min-width: 1.5em;
	text-align: center;
	font-weight: 700;
	font-size: 0.95rem;
}

.hso__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0 0;
	border-top: 1px solid var(--hso-line);
	margin-top: 8px;
	position: sticky;
	bottom: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
	padding-top: 18px;
	padding-bottom: max(4px, env(safe-area-inset-bottom));
	z-index: 100;
}

.hso__footer.is-ready .hso__cta {
	animation: hso-pulse 1.6s ease infinite;
}

.hso__total {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hso__total span {
	color: var(--hso-muted);
	font-size: 0.9rem;
}

.hso__total strong {
	font-size: 1.4rem;
	letter-spacing: -0.02em;
}

.hso__cta {
	appearance: none;
	border: 0;
	background: var(--hso-accent);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	padding: 14px 26px;
	border-radius: 999px;
	cursor: pointer;
	transition: filter 0.15s ease, opacity 0.15s ease;
}

.hso__cta:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	animation: none !important;
}

.hso__cta:not(:disabled):hover {
	filter: brightness(1.08);
}

.hso__unsupported {
	padding: 24px;
	background: var(--hso-bg);
	border-radius: 12px;
	text-align: center;
}

.hso__unsupported-icon {
	display: block;
	margin: 0 auto 10px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px var(--hso-line);
	position: relative;
}

.hso__unsupported-icon::before {
	content: "!";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--hso-muted);
}

.hso__unsupported strong {
	display: block;
	font-size: 1.05rem;
	margin-bottom: 6px;
}

.hso__unsupported p {
	margin: 0 auto;
	max-width: 34em;
	color: var(--hso-muted);
}

.hso__wa {
	display: inline-block;
	margin-top: 12px;
	background: #25d366;
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	padding: 12px 20px;
	border-radius: 999px;
}

.hso__credit {
	margin: 22px 0 0;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--hso-ok-soft);
	border-left: 4px solid var(--hso-ok);
	border-radius: 0 8px 8px 0;
	color: #244;
	font-size: 0.98rem;
	line-height: 1.45;
}

.hso__credit-icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--hso-ok);
	position: relative;
}

.hso__credit-icon::before {
	content: "€";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
}

.hso__error {
	margin: 12px 0 0;
	color: #9b1c1c;
	font-weight: 600;
	width: 100%;
}

/* —— FAQ —— */
.hso__faq {
	margin-top: 36px;
}

.hso__faq-list {
	border: 1px solid var(--hso-line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}

.hso__faq-item {
	border-bottom: 1px solid var(--hso-line);
}

.hso__faq-item:last-child {
	border-bottom: 0;
}

.hso__faq-q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-size: 1rem;
	font-weight: 650;
	color: var(--hso-ink);
	transition: background 0.15s ease;
}

.hso__faq-q:hover {
	background: var(--hso-bg);
}

.hso__faq-icon {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.hso__faq-icon::before,
.hso__faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--hso-ink);
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.hso__faq-icon::before {
	width: 14px;
	height: 2px;
}

.hso__faq-icon::after {
	width: 2px;
	height: 14px;
}

.hso__faq-q[aria-expanded="true"] .hso__faq-icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(90deg);
}

.hso__faq-a {
	padding: 0 20px 20px;
	color: var(--hso-muted);
	font-size: 0.96rem;
	line-height: 1.6;
	animation: hso-faq-in 0.18s ease;
}

.hso__faq-a p {
	margin: 0;
}

.hso__faq-a strong {
	color: var(--hso-ink);
}

@keyframes hso-faq-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes hso-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(26, 26, 46, 0.25);
	}
	50% {
		box-shadow: 0 0 0 8px rgba(26, 26, 46, 0);
	}
}

/*
 * The site-wide WhatsApp chat bubble and TranslatePress language switcher
 * are both fixed to the bottom of the viewport. On phones our sticky
 * checkout bar lives in the exact same strip, so once it's on screen we
 * remove those two widgets to stop them overlapping (and stealing taps
 * from) the CTA. Scoped to this page only (sample-order.css only loads
 * here) and only while the bar is actually visible — see the body class
 * toggle in JS.
 *
 * IMPORTANT: use display:none, not opacity/pointer-events — the WhatsApp
 * widget's own button forces `pointer-events: all` on itself, which wins
 * over an ancestor's `pointer-events: none`, so it stayed invisible but
 * still clickable and silently hijacked taps meant for our CTA.
 */
@media (max-width: 720px) {
	body.hso-cta-visible .qlwapp__container,
	body.hso-cta-visible .trp-floating-switcher {
		display: none !important;
	}
}

/* —— RTL (Arabic) —— */
.hso--rtl {
	text-align: right;
}

.hso--rtl .hso__credit {
	border-left: 0;
	border-right: 4px solid var(--hso-ok);
}

.hso--rtl .hso__badge {
	right: auto;
	left: 8px;
}

.hso--rtl .hso__country-chevron {
	transform: rotate(-135deg);
	margin-top: 2px;
}

.hso--rtl .hso__wa,
.hso--rtl .hso__cta {
	direction: rtl;
}

@media (max-width: 720px) {
	.hso__price-grid,
	.hso__packs,
	.hso__how {
		grid-template-columns: 1fr;
	}

	.hso__trust {
		gap: 8px 16px;
	}

	.hso__hero {
		padding: 28px 20px;
	}

	.hso__panel {
		padding: 16px;
	}

	.hso__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.hso__cta {
		width: 100%;
	}

	.hso__country {
		max-width: none;
	}
}
