/* VG-103: rules of the checkout and order-success pages, moved out of index_home.css (loaded only on those pages, right after index_home.css and before vg-refresh.css, so the cascade order is kept). */
/* One-page checkout (VG-033). */
.vg-checkout h1 { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
/* VG-099: the shield-with-check icon before the page title, in the brand green. */
.vg-co-title-icon { flex: 0 0 auto; width: .8em; height: .8em; color: var(--vg-green); }
.vg-co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.vg-co-steps { display: grid; gap: 12px; }
.vg-co-step { border: 1px solid var(--vg-c-dce7d2); border-radius: 14px; background: var(--vg-white); }
/* VG-092: a finished, collapsed step has the soft green surface (--vg-surface-soft). */
.vg-co-step.is-complete:not(.is-open) { background: var(--vg-surface-soft); }
.vg-co-step.is-open { border-color: var(--vg-green); box-shadow: 0 0 0 2px var(--vg-c-eef7df); }
.vg-co-step h2 { margin: 0; font-size: 1rem; }
.vg-co-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 18px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; font-weight: 700; text-align: start; cursor: pointer; }
.vg-co-toggle:disabled { cursor: not-allowed; opacity: .55; }
.vg-co-marker { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--vg-c-eef7df); color: var(--vg-green-dark); font-size: 14px; }
.vg-co-step.is-open .vg-co-marker, .vg-co-step.is-complete .vg-co-marker { background: var(--vg-green); color: var(--vg-white); }
/* VG-092: a finished step keeps its number; a check badge sits at the top right corner of the circle. */
.vg-co-marker { position: relative; }
.vg-co-step.is-complete .vg-co-marker::after { content: "\2713"; position: absolute; top: -9px; inset-inline-end: -9px; display: grid; place-items: center; width: 21px; height: 21px; border: 1.5px solid var(--vg-green); border-radius: 50%; background: var(--vg-white); color: var(--vg-green-dark); font-size: 13px; font-weight: 700; line-height: 1; }
.vg-co-done { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #55624a; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.vg-co-step.is-open .vg-co-done { display: none; }
.vg-co-edit { margin-inline-start: auto; color: var(--vg-green-dark); font-size: 14px; text-decoration: underline; }
.vg-co-body { padding: 4px 18px 20px; }
.vg-co-body[hidden] { display: none; }
.vg-co-form { display: grid; gap: 14px; }
.vg-co-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vg-co-fields .wide { grid-column: 1 / -1; }
.vg-co-form label, .vg-co-comments { display: grid; gap: 4px; font-weight: 600; }
.vg-co-form label small { font-weight: 400; color: #55624a; }
.vg-co-form input[type=text], .vg-co-form input[type=tel], .vg-co-form input[type=email], .vg-co-form input[type=password], .vg-co-form select, .vg-co-form textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--vg-c-8bcf55); border-radius: 8px; background: var(--vg-white); font: inherit; font-weight: 400; }
.vg-co-form input[readonly] { background: var(--vg-c-eef7df); color: #55624a; }
.vg-co-form :focus-visible { outline: 3px solid var(--vg-c-163707); outline-offset: 2px; }
.vg-co-choices { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.vg-co-choices legend { margin-bottom: 8px; font-weight: 700; }
.vg-co-choice { display: flex !important; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--vg-c-dce7d2); border-radius: 10px; font-weight: 400 !important; cursor: pointer; }
.vg-co-choice:has(input:checked) { border-color: var(--vg-green); background: var(--vg-c-eef7df); }
.vg-co-choice span { flex: 1 1 auto; }
.vg-co-choice em { font-style: normal; font-weight: 700; white-space: nowrap; }
.vg-co-new { margin-top: 14px; }
.vg-co-new > summary { cursor: pointer; color: var(--vg-green-dark); font-weight: 700; }
.vg-co-new .vg-co-form { margin-top: 14px; }
.vg-co-errors { margin: 0; padding: 10px 14px; border-radius: 8px; background: #fdecea; color: #8a1c10; font-weight: 600; }
.vg-co-errors[hidden] { display: none; }
.vg-co-button { justify-self: start; min-height: 46px; padding: 10px 26px; border: 0; border-radius: 8px; background: var(--vg-green); color: var(--vg-white); font: inherit; font-weight: 700; cursor: pointer; transition: background .22s, box-shadow .22s; }
.vg-co-button:hover:not(:disabled) { background: var(--vg-c-73b215); }
.vg-co-button:disabled { opacity: .65; cursor: progress; }
.vg-co-summary { padding: 20px; border: 1px solid var(--vg-c-dce7d2); border-radius: 14px; background: var(--vg-white); }
.vg-co-summary h2 { margin: 0 0 12px; font-size: 1.1rem; }
.vg-co-lines { margin: 0 0 14px; padding: 0; list-style: none; }
.vg-co-lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--vg-c-eef7df); }
.vg-co-price { font-weight: 700; white-space: nowrap; }
.vg-co-totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0 0 14px; }
.vg-co-totals dt, .vg-co-totals dd { margin: 0; }
.vg-co-totals dd { text-align: end; }
.vg-co-totals .ot_total { padding-top: 8px; border-top: 1px solid var(--vg-c-dce7d2); font-size: 1.1rem; font-weight: 700; }
.vg-co-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 899px) {
    .vg-co-layout { grid-template-columns: minmax(0, 1fr); }
    .vg-co-summary { order: -1; }
    .vg-co-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .vg-co-button { transition: none; }
}
.vg-co-review { margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--vg-c-eef7df); border-radius: 10px; background: #fbfdf8; }
.vg-co-review h3 { margin: 0 0 14px; font-size: 1rem; }
.vg-co-review dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 32px; margin: 0; }
.vg-co-review dt { color: #55624a; }
.vg-co-review dd { margin: 0; }
.vg-co-link { padding: 0; border: 0; background: none; color: var(--vg-green-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.vg-co-method { display: grid; gap: 10px; }
.vg-co-payfields { display: grid; gap: 12px; padding: 4px 0 8px 16px; }
.vg-co-payfields[hidden] { display: none; }
.vg-co-payfield { display: grid; gap: 4px; font-weight: 600; }
.vg-co-payfield select { max-width: 280px; }
.vg-co-check { display: flex !important; align-items: center; gap: 10px; font-weight: 400 !important; }
.vg-co-messages .messageStackBox { margin: 0 0 8px; }
.vg-co-place { min-height: 52px; min-width: min(100%, 320px); padding-inline: 40px; font-size: 1.05rem; } /* VG-099: a longer "Place order" button */
/* Order success page (VG-033). */
.vg-success-notice { margin: 12px 0 0; padding: 12px 16px; border: 1px solid var(--vg-green); border-radius: 10px; background: var(--vg-c-eef7df); }
.vg-success-number h2 { margin-top: 0; }
.vg-success-number h2 strong { font-size: 1.3em; }
.vg-success-contact { margin: 24px 0; }
.vg-success .vg-co-totals { margin-bottom: 0; }

/* Checkout step 4 layout: the card number on its own row, then expiry with CVV / installments, then the owner details; a red asterisk marks required fields. */
.vg-co-payfields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-inline-start: 0; }
.vg-co-payfield { position: relative; align-content: start; }
.vg-co-payfield[data-field=cc_number], .vg-co-payfields .vg-co-paynote { grid-column: 1 / -1; }
.vg-co-payfield[data-field=cc_expires_month] { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.vg-co-payfield[data-field=cc_expires_month] > span:first-child { flex: 0 0 100%; }
.vg-co-payfield[data-field=cc_expires_month] select { flex: 1 1 0; min-width: 0; max-width: none; }
.vg-co-payfield select { width: 100% !important; max-width: none; }
.vg-co-payfield br { display: none; }
.vg-co-payfield .alert { position: absolute; top: 0; inset-inline-end: 0; color: #c0392b; font-size: 18px; line-height: 1; }
.vg-co-fields label:has([required]) { position: relative; }
.vg-co-fields label:has([required])::after { content: "*"; position: absolute; top: 0; inset-inline-end: 0; color: #c0392b; font-size: 18px; font-weight: 700; line-height: 1; }
@media (max-width: 640px) {
    .vg-co-payfields { grid-template-columns: minmax(0, 1fr); }
}
.vg-est-weight, .vg-est-to { margin: 0 0 14px; }
.vg-est-field { display: block; margin-bottom: 16px; font-weight: 600; }
.vg-est-field select { width: 100%; margin-top: 6px; } /* look: the shared select style above (same as the category filters) */
.vg-est-table { width: 100%; border-collapse: collapse; }
.vg-est-table th, .vg-est-table td { padding: 10px 8px; border-bottom: 1px solid var(--vg-c-e3ebdd); text-align: start; }
.vg-est-table td span { display: block; color: var(--vg-c-7f8d7f); font-size: 14px; }
.vg-est-note { margin: 14px 0 0; color: var(--vg-c-7f8d7f); font-size: 14px; }
.vg-co-opt { border: 1px solid var(--vg-c-dce7d2); border-radius: 12px; background: var(--vg-white); }
.vg-co-opt > summary { padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vg-co-opt > summary::-webkit-details-marker { display: none; }
.vg-co-opt > summary::after { content: '+'; font-size: 20px; color: var(--vg-c-7f8d7f); }
.vg-co-opt[open] > summary::after { content: '\2212'; }
.vg-co-opt[open] > summary { border-bottom: 1px solid var(--vg-c-e3ebdd); }
.vg-co-opt-body .vg-co-form { padding: 0; }
.vg-co-opt-link { display: block; margin-top: 12px; }

/* VG-104: short checkout header: the logo and the settings, then a green strip with the title (no search, bag or menu). On a phone the strip also holds the order summary drop-down. */
body.vg-checkout-route .vg-shell-inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
body.vg-checkout-route .vg-shell-logo { grid-column: 1; grid-row: 1; min-height: 64px; padding-block: 12px; }
body.vg-checkout-route .vg-shell-preferences { grid-column: 2; grid-row: 1; }
.vg-shell-checkbar { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding-block: 6px; color: var(--vg-white); }
.vg-shell-checktitle { display: inline-flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; line-height: 1.2; }
.vg-shell-checktitle .vg-co-title-icon { color: var(--vg-white); width: .9em; height: .9em; }
.vg-shell-checksummary, .vg-shell-checksummary[hidden] { display: none; }
body.vg-checkout-route .vg-checkout > h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
    .vg-shell-checktitle { font-size: 19px; }
    .vg-shell-checksummary:not([hidden]) { display: flex; align-items: center; gap: 7px; min-height: 35px; padding: 4px 13px; border: 0; border-radius: 10px; background: var(--vg-white); color: var(--vg-heading); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
    .vg-shell-checksummary > span { display: none; }
    .vg-shell-checksummary::after { content: ""; flex: none; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
    .vg-shell-checksummary[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
    .vg-shell-checksummary:focus-visible { outline: 3px solid var(--vg-white); outline-offset: 2px; }
    /* the summary is the drop-down under the strip (the aside opens over the page; its own toggle is not used) */
    body.vg-checkout-route .vg-co-summary { position: fixed; top: var(--vg-shell-height, 140px); left: 0; right: 0; z-index: 104; max-height: calc(100dvh - var(--vg-shell-height, 140px)); overflow-y: auto; margin: 0; border-radius: 0 0 14px 14px; box-shadow: 0 12px 28px rgba(26, 49, 9, .25); }
    body.vg-checkout-route .vg-co-summary:not(.is-open) { display: none; }
    body.vg-checkout-route .vg-co-summary .vg-co-summary-toggle { display: none; }
    body.vg-checkout-route .vg-co-summary.is-open .vg-co-summary-body { margin-top: 0; }
}
/* VG-104: air between the green strip and the content; the logo and the settings are centred in their row. */
body.vg-checkout-route .vg-checkout { margin-top: 24px; }
body.vg-checkout-route .vg-shell-logo { min-height: 76px; padding-block: 16px; }
body.vg-checkout-route .vg-shell-preferences { align-self: center; }
@media (max-width: 900px) { body.vg-checkout-route .vg-checkout { margin-top: 16px; } body.vg-checkout-route .vg-shell-logo { min-height: 64px; padding-block: 12px; } }
/* VG-104: a long order list fills the free height of the screen: the summary starts 24px under the strip and ends 24px above the bottom edge (a little more room when it sticks). */
@media (min-width: 901px) { body.vg-checkout-route .vg-co-summary { max-height: calc(100dvh - var(--vg-shell-height, 140px) - 48px); } }
/* VG-104: in the order summary only the product lines scroll; the title, the totals and the delivery calculator link stay in view at the bottom. */
body.vg-checkout-route .vg-co-summary { display: flex; flex-direction: column; overflow: hidden; }
body.vg-checkout-route .vg-co-summary-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
body.vg-checkout-route .vg-co-summary-body > * { flex: none; }
body.vg-checkout-route .vg-co-summary-body > .vg-co-lines { flex: 0 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 0; }
body.vg-checkout-route .vg-co-summary-body > .vg-co-totals { padding-top: 10px; }
@media (max-width: 900px) {
    body.vg-checkout-route .vg-co-summary:not(.is-open) { display: none; }
    body.vg-checkout-route .vg-co-summary.is-open { display: flex; }
}
/* VG-104: the cart icon before "Order summary". */
.vg-co-summary h2 { display: flex; align-items: center; gap: 10px; }
.vg-co-summary-icon { flex: none; width: 24px; height: 24px; color: var(--vg-green); }
/* VG-104: the scroll bar of the product lines sits at the edge of the summary with a gap before the content; the calculator link has no bottom margin. */
body.vg-checkout-route .vg-co-summary-body > .vg-co-lines { margin-inline-end: -20px; padding-inline-end: 14px; }
body.vg-checkout-route .vg-co-summary-body > p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { body.vg-checkout-route .vg-co-summary-body > .vg-co-lines { margin-inline-end: -20px; } }
/* VG-104: lines above the steps (the guest line, notices) push the summary down; checkout.js measures that distance (--vg-co-above) and the summary gets that much less height, so its bottom is never cut. */
@media (min-width: 901px) { body.vg-checkout-route .vg-co-summary { max-height: calc(100dvh - var(--vg-shell-height, 140px) - var(--vg-co-above, 24px) - 24px); } }
/* VG-104: the close button (X) of the phone drop-down; while it is open the accessibility and cookie buttons are hidden (they covered the totals). */
.vg-co-summary-close { display: none; }
@media (max-width: 900px) {
    body.vg-checkout-route .vg-co-summary-body { position: relative; }
    body.vg-checkout-route .vg-co-summary .vg-co-summary-close { position: absolute; top: -4px; inset-inline-end: 0; display: grid; place-items: center; min-height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--vg-green); color: var(--vg-white); font: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
    body.vg-checkout-route .vg-co-summary .vg-co-summary-close:focus-visible { outline: 3px solid var(--vg-field-focus); outline-offset: 2px; }
    body.vg-checkout-route.vg-co-summary-open #vplugin, body.vg-checkout-route.vg-co-summary-open #vplugin-toggler, body.vg-checkout-route.vg-co-summary-open #silktide-cookie-icon { display: none !important; }
}
/* VG-104: the guest line on a phone: the e-mail and the (short) restart button stay together on one line; the short text replaces the long one. */
.vg-co-restart-short { display: none; }
@media (max-width: 900px) {
    .vg-co-signedin:has([data-co-restart]) { display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: nowrap; }
    .vg-co-signedin:has([data-co-restart])[hidden] { display: none; }
    .vg-co-signedin [data-co-guesttext] { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
    .vg-co-signedin [data-co-restart] { flex: none; white-space: nowrap; }
    .vg-co-restart-long { display: none; }
    .vg-co-restart-short { display: inline; }
}
