/* Public shop styles that the design's site.css and shop.css don't have */
[x-cloak] { display: none !important; }
.flag--green { background: var(--paddy-deep); color: var(--white); }
.cart-btn { border: 0; cursor: pointer; }
.icon-btn { flex: 0 0 auto; }
.qty output { min-width: 3rem; padding: 0 .3rem; font-weight: 700; text-align: center; color: var(--teal-ink); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
button.link-arrow { border: 0; background: none; font: inherit; cursor: pointer; }

/* Loading */
.skeleton { display: block; min-height: 1rem; border-radius: 8px; background: linear-gradient(90deg, var(--line) 25%, var(--mist) 50%, var(--line) 75%) 0 0 / 200% 100%; animation: skeleton 1.4s linear infinite; }
.skeleton + .skeleton { margin-top: .6rem; }
.skeleton--short { width: 55%; }
.skeleton--button { min-height: 42px; border-radius: 999px; }
.pcard__media.skeleton { border-radius: 0; }
@keyframes skeleton { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* The wide delivery table must not stretch the page on phones */
.page-shop .grid-2 > * { min-width: 0; }
.page-shop .table { min-width: 0; }

/* Product cards */
.pcard__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.pcard__buttons .btn { padding: .5rem .3rem; font-size: .88rem; white-space: nowrap; }

/* Drawers */
.drawer, .picker { position: fixed; inset: 0; z-index: 200; }
.drawer__shade { position: absolute; inset: 0; background: rgb(7 42 51 / .55); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(430px, 94vw); background: var(--white); box-shadow: var(--shadow); transition: transform .25s ease; }
.drawer__panel.is-away { transform: translateX(100%); }
.drawer__panel:focus, .picker__panel:focus { outline: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.2rem; }
.drawer__body { flex: 1; padding: .4rem 1.1rem; overflow-y: auto; overscroll-behavior: contain; }
.drawer__body .empty-state { margin-top: 1rem; }
.drawer__foot { padding: .9rem 1.1rem calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; margin-bottom: .7rem; font-size: 1.1rem; }
.drawer__total strong { color: var(--teal-ink); }
.drawer__hint { display: block; margin-top: .5rem; color: var(--muted); text-align: center; }
.cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-row__image, .cart-row__image img { display: block; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.cart-row__info { display: grid; align-content: start; gap: .2rem; min-width: 0; }
.cart-row__info .skeleton { width: 100%; }
.cart-row__name { font-weight: 700; line-height: 1.35; color: var(--teal-ink); }
.cart-row__info small { color: var(--muted); line-height: 1.4; }
.cart-row__info .cart-row__note { color: var(--gold-deep); }
.cart-row__info .cart-row__problem { color: #B3261E; font-weight: 600; }
.cart-row__foot { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.cart-row__foot strong { margin-left: auto; color: var(--teal-ink); }
.cart-row__foot .icon-btn:first-child { margin-left: auto; }
.cart-row .qty button { width: 38px; height: 40px; }
.cart-row .qty output { min-width: 2.2rem; }

/* Option picker and option buttons */
.picker { display: grid; place-items: center; padding: 1rem; }
.picker[style*="none"] { display: none; }
.picker__panel { position: relative; width: min(420px, 100%); max-height: 85vh; overflow-y: auto; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.option-list { display: grid; gap: .5rem; padding: 1rem 1.1rem; }
.option-button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 50px; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.option-button:hover:not(:disabled), .option-button:focus-visible { border-color: var(--teal); background: var(--mist); }
.option-button:disabled { opacity: .55; cursor: not-allowed; }
.option-button s { color: var(--muted); font-size: .88rem; }
.option-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.option-chips button { display: grid; min-height: 48px; padding: .35rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.option-chips button small { color: var(--muted); font-weight: 500; }
.option-chips button.is-active { border-color: var(--teal); background: var(--paddy-soft); box-shadow: inset 0 0 0 1px var(--teal); }

/* Product page */
.buy-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.buy-bar { display: none; }
@media (max-width: 760px) {
    .page-product .bottom-bar { display: none; }
    .page-product .product__buy .buy-buttons { display: none; }
    .buy-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.5fr; gap: .5rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
    .buy-bar .btn { min-height: 48px; padding: .5rem .6rem; white-space: nowrap; }
}

/* Products page */
.products-page { padding-top: 1.6rem; }
.products-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 1.6rem; margin-top: 1rem; }
.products-main { min-width: 0; scroll-margin-top: calc(var(--header-h) + 1rem); }
.products-main .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.products-main .toolbar { flex-wrap: nowrap; margin-bottom: .6rem; }
.products-search { flex: 1; min-width: 0; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: inherit; }
.products-main > .toolbar__count { min-height: 1.6em; margin-bottom: .6rem; }
.filter-labels { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filter-labels .chip { position: static; padding: .35rem .8rem; border: 1px solid var(--line); box-shadow: none; animation: none; font: inherit; font-size: .88rem; cursor: pointer; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.filters__head h2 { margin: 0; font-size: 1.1rem; }
.filters__head .icon-btn.filters__close, .filters__foot, .filters-button { display: none; }
.filters fieldset { margin: 0; padding: .8rem 0 .4rem; border: 0; border-bottom: 1px solid var(--line); }
.filters fieldset:last-child { border-bottom: 0; }
.filters legend { float: left; width: 100%; margin-bottom: .4rem; padding: 0; font-weight: 700; color: var(--teal-ink); }
.filters legend + * { clear: both; }
.filters label { display: flex; align-items: center; gap: .55rem; min-height: 34px; cursor: pointer; }
.filters label small { margin-left: auto; color: var(--muted); }
.filters :is([type="radio"], [type="checkbox"]) { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--teal); }
.filters__prices { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding-bottom: .4rem; }
.filters__prices input { width: 100%; min-height: 42px; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.filters__shade { display: none; }
.pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2rem; }
.pages a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--teal); font-weight: 600; }
.pages a.is-active { border-color: var(--teal); background: var(--teal); color: var(--white); }
@media (max-width: 1060px) {
    .products-layout { grid-template-columns: minmax(0, 1fr); }
    .filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 201; display: flex; flex-direction: column; width: min(340px, 88vw); max-height: none; padding: 0; border: 0; border-radius: 0; overflow: hidden; visibility: hidden; transform: translateX(-100%); transition: transform .25s ease, visibility .25s; }
    .filters.is-open { visibility: visible; transform: none; }
    .filters__head { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
    .filters__head .icon-btn.filters__close { display: grid; }
    .filters__body { flex: 1; padding: 0 1.1rem; overflow-y: auto; overscroll-behavior: contain; }
    .filters label { min-height: 42px; }
    .filters__foot { display: block; padding: .8rem 1.1rem calc(.8rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
    .filters-button { display: inline-flex; }
    .filters__shade { position: fixed; z-index: 200; display: block; }
}
@media (max-width: 760px) {
    .products-main .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .products-main .toolbar { flex-wrap: wrap; }
    .products-search { flex: 1 1 100%; }
    .products-main .toolbar__filters { width: 100%; }
    .products-main .toolbar__filters > * { flex: 1; }
    .pcard__buttons { grid-template-columns: 1fr; }
}

/* Checkout */
.field textarea.short-text { min-height: 90px; }
.form--flat fieldset > :is(.field, .progress-note) + .field, .delivery-field, .form--flat .progress-note { margin-top: 1rem; }
.field-title { margin: 0; font-weight: 600; font-size: .95rem; }
.field-title small { font-weight: 400; color: var(--muted); }
.delivery-field .option-cards { margin-bottom: 0; }
.delivery-field.has-error .option-card { border-color: #E36A5F; }
.pay-note { margin: 0; }
.password-box { position: relative; }
.password-box input { width: 100%; padding-right: 5rem; }
.password-box button { position: absolute; top: 0; right: .3rem; bottom: 0; padding: 0 .8rem; border: 0; background: none; color: var(--teal); font: inherit; font-weight: 600; cursor: pointer; }
.summary__cart { max-height: 380px; margin-bottom: 1rem; overflow-y: auto; }
.summary .cart-row { grid-template-columns: 56px minmax(0, 1fr); padding: .7rem 0; }
.summary .cart-row :is(.cart-row__image, .cart-row__image img) { width: 56px; height: 56px; }
.coupon-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; margin: .8rem 0 .4rem; }
.coupon-box input { width: 100%; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; text-transform: uppercase; }
.coupon-box input::placeholder { text-transform: none; }
.cart-row__problem { display: block; color: #B3261E; font-weight: 600; }
.coupon-ok { display: block; color: var(--paddy-deep); font-weight: 600; }
.summary dl { margin-top: 1rem; transition: opacity .2s; }
.summary dl.is-loading { opacity: .5; }
.summary__note { margin: 0 0 .8rem; }
.checkout-bar__total { display: none; }
.pay-box p { margin-bottom: .8rem; }
.pay-now { max-width: 440px; margin: 1.2rem auto; }
.pay-now p { margin-bottom: .8rem; }
.success-card .alert { text-align: left; }
.pay-form { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed #F6CADB; }
.pay-form .form-grid { margin: .6rem 0 1rem; }
.error-text { color: #B3261E; font-weight: 600; }
[data-copy] { cursor: copy; }
.success-card .kv dd { max-width: 65%; overflow-wrap: anywhere; }
.track-help { margin-top: 2rem; text-align: center; }
.status-pill--returning, .status-pill--returned { background: var(--gold-soft); color: var(--gold-deep); }
@media (max-width: 760px) {
    .page-checkout:has(.checkout-bar) .bottom-bar { display: none; }
    .summary__cart { max-height: none; }
    .checkout-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .8rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
    .checkout-bar__total { display: grid; line-height: 1.25; }
    .checkout-bar__total small { color: var(--muted); font-size: .72rem; }
    .checkout-bar__total strong { color: var(--teal-ink); font-size: 1.15rem; }
    .checkout-bar .btn { min-height: 50px; padding: .5rem; font-size: .98rem; white-space: nowrap; }
}

/* Pop-ups */
.site-popup { border-radius: var(--radius); font-family: var(--font-bn); }
.site-popup .swal2-title { font-size: 1.3rem; color: var(--teal-ink); }
.site-popup .swal2-actions { gap: .5rem; }

.checkout-terms { margin: .6rem 0 0; }
.checkout-terms a { text-decoration: underline; }
.prose ol { margin: 0 0 1.4rem; padding-left: 1.4rem; list-style: decimal; }
.prose a { text-decoration: underline; }

/* Animals */
.animal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.2rem; }
.animal-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.animal-card__photos { position: relative; }
.animal-card__photos > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.animal-card__photos .flag { position: absolute; top: .8rem; left: .8rem; }
.animal-card.is-booked .animal-card__photos > img { opacity: .6; }
.animal-card__thumbs { display: flex; gap: .4rem; padding: .5rem .5rem 0; overflow-x: auto; }
.animal-card__thumbs button { flex: none; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.animal-card__thumbs img { display: block; width: 56px; height: 44px; object-fit: cover; }
.animal-card__body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1rem; }
.animal-card__body h3, .animal-card__body p { margin: 0; }
.animal-card__body h3 small { color: var(--muted); font-size: .85rem; font-weight: 500; }
.animal-card__facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.animal-card__facts li { padding: .15rem .6rem; border-radius: 999px; background: var(--mist); font-size: .88rem; }
.animal-card__left { color: var(--paddy-deep); font-weight: 700; }
.animal-card__buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.animal-form { width: min(520px, 100%); }
.animal-form form, .animal-form__done { display: grid; gap: .9rem; padding: 1rem 1.2rem 1.4rem; }
.animal-form__done { text-align: center; }
.animal-form .small-note, .animal-form__done :is(h3, p) { margin: 0; }

/* Kureghor: the policies and directions start at the top */
.grid-2--top { align-items: start; }

/* Kureghor: a guest who did not come */
.status-pill--no_show { background: #FBE3E0; color: #B3261E; }

/* Booking: cottages and prices while a new search loads */
.is-searching { opacity: .5; pointer-events: none; }

/* Borga */
.text-strong { font-weight: 700; }
.section--teal .ticks .text-strong { color: var(--white); }
.notice--after { margin-top: 2rem; }
.notice--between { margin: 1.2rem 0; }
.flow--mist { margin-top: 1rem; }
.flow--mist li { background: var(--mist); }
.transparency__subtitle { margin-top: 2rem; color: var(--white); font-family: var(--font-bn); }
.transparency__subtitle + .ticks { margin-top: 1rem; }
.transparency__table { border: 0; }
.apply-band p a { color: var(--gold); text-decoration: underline; }
.proj__status--completed::before { background: #bbb; }
.proj-note { max-width: 820px; margin-inline: auto; text-align: center; }
.project-pills { justify-content: flex-start; margin-bottom: .6rem; }
.gallery--one { grid-template-columns: 1fr; }
.gallery--one .gallery__main { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .gallery--one .gallery__main { aspect-ratio: 16 / 9; } }

/* Investment application */
.invest-flow { padding-top: 1rem; }
.proj-pick.is-disabled { opacity: .55; cursor: not-allowed; }
.proj-picks ~ .field { margin-top: 1rem; }
.proj-pick .tag { justify-self: start; }
.field input[type=file] { width: 100%; padding: .6rem; border: 1px dashed var(--line); border-radius: 12px; background: var(--white); font: inherit; font-size: .9rem; }
.status-pill--approved { background: var(--sky); color: var(--teal); }
.invest-flow .qty { justify-self: start; }
.status-pill--declined { background: #FBE3E0; color: #B3261E; }

/* Farmer partnership */
.checklist--spaced { margin-top: 1rem; }
.farmer-flow .summary .small-note { margin-bottom: 1rem; }
.farmer-flow .select2-container { width: 100% !important; }
.farmer-flow .select2-container .select2-selection--single { height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.farmer-flow .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 50px; padding-left: 1rem; font-family: var(--font-bn); color: var(--ink); }
.farmer-flow .select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; right: .6rem; }
.farmer-flow .has-error .select2-selection--single { border-color: #E36A5F; background: #FFF7F6; }
.select2-container--open .select2-dropdown { font-family: var(--font-bn); border-color: var(--line); border-radius: 12px; overflow: hidden; }
.select2-search--dropdown .select2-search__field { border-radius: 8px; padding: .5rem; }
.status-pill--called, .status-pill--visited { background: var(--sky); color: var(--teal); }

/* Translated labels can be longer, so each bottom-bar item stays in its column */
.bottom-bar { grid-template-columns: repeat(var(--items, 5), minmax(0, 1fr));}
.bottom-bar a { min-width: 0;}
.bottom-bar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
/* Nothing scrolls the page sideways (moving parts, or translated text that is longer) */
html, body { overflow-x: clip;}

/* Error pages (the design's 404) */
.error-page { text-align: center;}
.error-page .lead { margin-inline: auto;}
.error-page .btn-row { justify-content: center;}
.error-page--full { display: grid; align-items: center; min-height: 100vh;}
