/* Customer service / FAQ (.faq-*). Load shop-base.css first.
   custom.css already has legacy .faq-headline, .faq-subheadline, .faq-sidebar-* and .faq-button (also used by /track).
   Only .faq-subheadline matters here: it appears inside translation texts, so it is styled under .faq-body.
   Texts and answers are data (translations, admin) and may hold <p>, <ul>, <b>, <iframe> and a.btn.
   Inline styles in the answers are stripped by the route. */

.faq-wrap { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px 64px; }
.faq-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Breadcrumb */
.faq-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 16px 0 0; font-size: 13px; }
.faq-crumbs-sep { color: var(--sk-line-strong); }

/* Two columns: menu + content */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 18px; }
.faq-main { min-width: 0; }
@media (min-width: 992px) { .faq-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-top: 28px; } }

/* Menu (desktop only; phones get the useful links at the bottom) */
.faq-side { display: none; }
@media (min-width: 992px) { .faq-side { display: flex; flex-direction: column; gap: 22px; align-self: start; position: sticky; top: 112px; } }
.faq-menu-title { margin: 0 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-muted); }
.faq-menu { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--sk-line); }
.faq-menu-link { display: block; padding: 7px 12px 7px 16px; font-size: 14px; line-height: 1.3; }
.faq-menu-link:hover { text-decoration: none; }
.faq-menu-link:hover .sk-t-text { color: var(--sk-ink); }
.faq-menu-link--on { margin-left: -1px; box-shadow: inset 3px 0 0 var(--sk-accent); }
.faq-menu-link--on .sk-t-text { color: var(--sk-ink); font-weight: 500; }

/* Topics as a chip row (phones only) */
.faq-chips-wrap { margin: 12px 0 0; }
.faq-chips {
	list-style: none; margin: 0; padding: 0 15px 2px;
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.faq-chips::-webkit-scrollbar { display: none; }
.faq-chips li { flex: 0 0 auto; }
.faq-chip {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
	border: 1px solid var(--sk-line-strong); border-radius: 999px; background: #fff;
	font-size: 14px; line-height: 1.2; white-space: nowrap; scroll-margin-inline: 15px;
}
.faq-chip:hover { border-color: var(--sk-ink); text-decoration: none; }
.faq-chip:focus-visible { outline: 2px solid var(--sk-accent); outline-offset: 2px; }
.faq-chip-text { color: var(--sk-ink); }
.faq-chip--on { background: var(--sk-ink); border-color: var(--sk-ink); }
.faq-chip--on .faq-chip-text { color: #fff; }
@media (min-width: 992px) { .faq-chips-wrap { display: none; } }

/* Headings and body text */
.faq-h1 { margin: 0 0 10px; font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--sk-ink); text-wrap: balance; }
.faq-h2 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--sk-ink); }
@media (min-width: 768px) { .faq-h1 { font-size: 28px; } }

.faq-body { max-width: 68ch; font-size: 15px; line-height: 1.55; color: var(--sk-text); }
/* The intro on the FAQ front page is full width; the reading width applies to the rest */
.faq-body--wide { max-width: none; }
/* Underline links in texts and answers, as the brand color alone is hard to spot.
   Buttons (a.btn from the translations) are excluded. */
.faq-body a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.faq-body a:not(.btn):hover { text-decoration-thickness: 2px; }
.faq-body p { margin: 0 0 .9em; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul, .faq-body ol { margin: 0 0 1em; padding-left: 22px; }
.faq-body li { margin: 0 0 .35em; }
.faq-body h2, .faq-body h3, .faq-body .faq-subheadline { margin: 1.1em 0 .25em; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--sk-ink); }
.faq-body > h2:first-child, .faq-body > h3:first-child, .faq-body > .faq-subheadline:first-child { margin-top: .6em; }
.faq-body b, .faq-body strong { color: var(--sk-ink); font-weight: 500; }
.faq-body img { display: inline-block; }
.faq-body iframe { max-width: 100%; border: 0; border-radius: var(--sk-radius-sm); }

/* Find my order */
/* #ordre must clear the sticky header, or the box lands behind it. The heights are the header's own
   :root variables, so this follows along if hdr.css changes them. Phone: only the nav bar stays. */
.faq-order { margin: 28px 0 0; scroll-margin-top: calc(var(--hdr-bar-h, 58px) + 16px); }
@media (min-width: 992px) { .faq-order { scroll-margin-top: calc(var(--hdr-row-h, 76px) + var(--hdr-bar-h, 48px) + 16px); } }
.faq-order-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 20px; background: var(--sk-line); border-radius: var(--sk-radius); }
.faq-order-head { display: flex; align-items: center; gap: 12px; color: var(--sk-ink); }
.faq-order-title { font-size: 16px; font-weight: 500; line-height: 1.2; color: var(--sk-ink); }
.faq-order-sub { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--sk-text); }
.faq-field { display: block; min-width: 0; }
.faq-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-input {
	width: 100%; height: 44px; padding: 0 12px;
	font: inherit; font-size: 15px; color: var(--sk-ink);
	background: #fff; border: 1px solid #fff; border-radius: var(--sk-radius-sm);
	outline: 0; -webkit-appearance: none; appearance: none;
}
.faq-input::placeholder { color: var(--sk-muted); opacity: 1; }
.faq-input:focus { border-color: var(--sk-accent); box-shadow: 0 0 0 3px rgba(49, 91, 107, .18); }
.faq-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 44px; padding: 0 20px; border-radius: var(--sk-radius-sm);
	background: var(--sk-accent); color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap;
	transition: background-color .15s ease;
}
.faq-btn:hover { background: var(--sk-accent-dark); color: #fff; }
.faq-btn:focus-visible { outline: 2px solid var(--sk-ink); outline-offset: 2px; }
.faq-order-after { margin-top: 20px; }
.faq-error { grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 500; color: var(--sk-red); }
/* The fields sit on their own row, so the heading never eats their width. That matters most in the
   languages with the longest text (nl, de, pt), where a shared row clipped the placeholder. */
.faq-order-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 768px) {
	.faq-order-form { gap: 14px; }
	.faq-order-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto; gap: 12px; align-items: center; }
}

/* Topics */
.faq-tiles { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .faq-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.faq-tile {
	display: flex; align-items: center; gap: 12px; height: 100%; padding: 15px 14px;
	background: #fff; border: 1px solid var(--sk-line-strong); border-radius: var(--sk-radius);
	transition: border-color .15s ease;
}
.faq-tile:hover { border-color: var(--sk-ink); text-decoration: none; }
.faq-tile:focus-visible { outline: 2px solid var(--sk-accent); outline-offset: 2px; }
.faq-tile > .faq-ic { color: var(--sk-accent); }
.faq-tile-name { font-size: 15px; font-weight: 500; line-height: 1.25; }
.faq-arrow { width: 16px; height: 16px; margin-left: auto; color: var(--sk-muted); transition: transform .15s ease, color .15s ease; }
.faq-tile:hover .faq-arrow { transform: translateX(2px); color: var(--sk-ink); }

/* Questions and answers (native details/summary, works without JS) */
.faq-qs { margin: 44px 0 0; }
.faq-list { margin-top: 12px; border-top: 2px solid var(--sk-ink); }
.faq-q { border-bottom: 1px solid var(--sk-line); }
.faq-q-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px 0; cursor: pointer; list-style: none;
	font-size: 15px; line-height: 1.4; color: var(--sk-ink);
}
.faq-q-head::-webkit-details-marker { display: none; }
.faq-q-head::marker { content: ""; }
.faq-q-head:focus-visible { outline: 2px solid var(--sk-accent); outline-offset: 2px; }
.faq-q[open] > .faq-q-head { font-weight: 500; }
.faq-chev { width: 18px; height: 18px; color: var(--sk-muted); transition: transform .2s ease; }
.faq-q[open] > .faq-q-head .faq-chev { transform: rotate(180deg); }
/* Answers are full width, like the intro */
.faq-q-body { max-width: none; margin: 0 0 18px; padding: 2px 0 2px 16px; border-left: 3px solid var(--sk-accent); }

/* Carriers (delivery page): logo, price list, contact and tracking */
.faq-carriers { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .faq-carriers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq-carrier { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--sk-line); border-radius: var(--sk-radius); overflow: hidden; }
.faq-carrier-head { display: flex; align-items: center; height: 72px; padding: 0 20px; background: var(--sk-soft-2); border-bottom: 1px solid var(--sk-line); }
.faq-carrier-logo { max-height: 30px; max-width: 150px; width: auto; }
.faq-carrier-rates { list-style: none; margin: 0; padding: 6px 20px; flex: 1 1 auto; }
.faq-carrier-rates li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 14px; line-height: 1.35; color: var(--sk-text); }
.faq-carrier-rates li + li { border-top: 1px dashed var(--sk-line-strong); }
.faq-carrier-price { flex: 0 0 auto; font-weight: 500; color: var(--sk-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.faq-carrier-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px; border-top: 1px solid var(--sk-line); }
.faq-carrier-contact { font-size: 13px; color: var(--sk-muted); }
.faq-carrier-track { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--sk-ink); border-radius: var(--sk-radius-sm); font-size: 14px; font-weight: 500; transition: background-color .15s ease; }
.faq-carrier-track:hover { background: var(--sk-soft); text-decoration: none; }
.faq-carrier-track:focus-visible { outline: 2px solid var(--sk-accent); outline-offset: 2px; }
.faq-carrier-arrow { width: 16px; height: 16px; color: var(--sk-ink); transition: transform .15s ease; }
.faq-carrier-track:hover .faq-carrier-arrow { transform: translateX(2px); }

/* Useful links on phones */
.faq-more { margin: 40px 0 0; padding: 18px 0 0; border-top: 1px solid var(--sk-line); }
.faq-more-list { list-style: none; margin: 8px 0 0; padding: 0; }
.faq-more-list .faq-menu-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--sk-line); font-size: 15px; }
.faq-more-list li:last-child .faq-menu-link { border-bottom: 1px solid var(--sk-line); }
/* The arrow is drawn in CSS, so the list stays plain markup */
.faq-more-list .faq-menu-link::after {
	content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 3px;
	border-top: 1.6px solid var(--sk-line-strong); border-right: 1.6px solid var(--sk-line-strong); transform: rotate(45deg);
}
.faq-more-list .faq-menu-link:hover::after { border-color: var(--sk-ink); }
@media (min-width: 992px) { .faq-more { display: none; } }

@media (prefers-reduced-motion: reduce) {
	.faq-tile, .faq-arrow, .faq-chev, .faq-btn, .faq-carrier-track, .faq-carrier-arrow { transition: none; }
}
