:root {
    --color-primary: #256c86;
    --color-secondary: #58a24e;
    --color-accent: #96c11f;
    --color-text: #3d4c54;
    --color-muted: #52666d;
    --color-white: #ffffff;
    --header-height: 5rem;
    --content-width: 76rem;
}

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

html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    background: var(--color-white);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5;
}

h1 {
    font-size: clamp(1.4rem, 3.6vw, 2.05rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.12rem, 2.2vw, 1.35rem);
    line-height: 1.25;
}

p,
li {
    font-size: 0.9375rem;
}

body:has(.nav:not([hidden])),
body:has(.info-dialog[open]),
body:has(.prescriber-video-dialog[open]),
body:has(.cart-drawer:not([hidden])) {
    overflow: hidden;
}

body:has(.legal-dialog[open]),
body:has(.address-dialog:modal) {
    overflow: hidden;
}

a {
    color: var(--color-primary);
}

.auth-card,
.account-home {
    width: min(100%, 42rem);
    margin: 2rem auto;
    border: 1px solid #dce6e9;
    border-radius: 1rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    box-shadow: 0 0.75rem 2rem rgb(37 108 134 / 10%);
}

.auth-card--wide {
    width: min(100%, 58rem);
}

.auth-card h1,
.account-home h1 {
    margin: 0 0 0.75rem;
    color: var(--color-primary);
    font-size: clamp(1.4rem, 3.6vw, 2.05rem);
    line-height: 1.2;
}

.auth-card > p,
.account-home > p {
    color: var(--color-muted);
}

.auth-form,
.registration-form fieldset {
    display: grid;
    gap: 1rem;
}

.registration-form {
    display: grid;
    gap: 1.5rem;
}

.registration-form fieldset {
    margin: 0;
    border: 1px solid #dce6e9;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.registration-form legend {
    padding: 0 0.5rem;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.auth-form label:not(.check-label, .choice-label),
.form-grid label {
    display: grid;
    gap: 0.35rem;
    color: var(--color-primary);
    font-weight: 650;
}

.check-label,
.choice-label,
.choice-row > span,
.account-home dt {
    color: var(--color-primary);
}

.auth-form input:not([type="checkbox"], [type="radio"]),
.auth-form select,
.auth-form textarea {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #aabdc3;
    border-radius: 0.4rem;
    padding: 0.6rem 0.75rem;
    color: var(--color-text);
    background: var(--color-white);
    font: inherit;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus,
.link-button:focus {
    outline: 0.2rem solid rgb(150 193 31 / 35%);
    outline-offset: 0.1rem;
    border-color: var(--color-primary);
}

.auth-form textarea {
    resize: vertical;
}

.contact-form__website {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-page {
    width: 100%;
}

.contact-page > h1 {
    margin: 0 0 1.25rem;
    color: var(--color-primary);
    font-size: clamp(1.4rem, 3.6vw, 2.05rem);
    line-height: 1.2;
}

.contact-card__intro {
    margin: 0 0 1.25rem;
    color: var(--color-muted);
}

.contact-page__layout {
    display: grid;
    gap: 1.25rem;
}

.contact-page .auth-card {
    width: 100%;
    margin: 0;
}

.contact-page__channels {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.contact-card h2 {
    margin: 0 0 0.85rem;
    color: var(--color-primary);
    font-size: clamp(1.1rem, 2.2vw, 1.32rem);
    line-height: 1.25;
}

.contact-channel__phone {
    color: var(--color-primary);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-channel__phone:hover,
.contact-channel__phone:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.contact-channel__hours {
    margin: 0.45rem 0 0;
    color: var(--color-muted);
    line-height: 1.45;
}

.contact-whatsapp {
    display: inline-flex;
    color: var(--color-primary);
}

.contact-whatsapp:hover,
.contact-whatsapp:focus-visible {
    outline: 0.2rem solid rgb(150 193 31 / 35%);
    outline-offset: 0.2rem;
}

.contact-whatsapp__icon {
    width: 4.25rem;
    height: 4.25rem;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

@media (min-width: 62rem) {
    .contact-page__layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(16.5rem, 0.7fr);
        align-items: start;
    }
}

.password-field {
    display: flex;
    align-items: stretch;
}

.password-field input {
    border-radius: 0.4rem 0 0 0.4rem !important;
}

.password-toggle {
    border: 1px solid var(--color-primary);
    border-left: 0;
    border-radius: 0 0.4rem 0.4rem 0;
    padding: 0.5rem 0.75rem;
    color: var(--color-primary);
    background: #f2f8fa;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.date-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.date-fields legend {
    grid-column: 1 / -1;
}

[data-prescriber-registration] [hidden] {
    display: none !important;
}

.choice-row,
.check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.choice-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.choice-row {
    flex-wrap: wrap;
}

.choice-row > span {
    width: 100%;
    font-weight: 650;
}

.field-help,
.field-feedback {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.field-feedback--error,
.form-alert {
    color: #a12626;
}

.field-feedback--success {
    color: #2b6b26;
}

.form-success {
    border-left: 0.25rem solid var(--color-secondary);
    padding: 0.75rem 1rem;
    background: #f1f8ef;
}

.form-alert {
    border-left: 0.25rem solid #a12626;
    padding: 0.75rem 1rem;
    background: #fff3f3;
}

.field-feedback a {
    margin-left: 0.5rem;
}

.login-create {
    width: 100%;
    max-width: none;
    margin-top: 0.25rem;
}

.login-returning {
    margin-top: 1.75rem;
    border-top: 1px solid #dce6e9;
    padding-top: 1.5rem;
}

.login-returning h2 {
    margin: 0 0 1rem;
    color: var(--color-primary);
    font-size: 1.15rem;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.link-button {
    display: inline;
    border: 0;
    padding: 0;
    color: var(--color-primary);
    background: transparent;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.form-legal-note {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.45;
}

.form-legal-note .link-button {
    font-style: italic;
}

.legal-dialog {
    width: min(92vw, 52rem);
    max-height: 85vh;
    border: 0;
    border-radius: 0.75rem;
    padding: 0;
    color: var(--color-text);
}

.legal-dialog::backdrop {
    background: rgb(10 30 38 / 60%);
}

.legal-dialog__header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #dce6e9;
    padding: 1rem 1.25rem;
    background: var(--color-white);
}

.legal-dialog__header h2 {
    margin: 0;
    color: var(--color-primary);
}

.legal-dialog__header button {
    border: 0;
    color: var(--color-primary);
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
}

.legal-dialog__content {
    padding: 1.25rem;
}

.account-home dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1rem;
}

.account-home dt {
    font-weight: 700;
}

.account-home dd {
    margin: 0;
}

.account-shell {
    display: grid;
    grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    width: min(100%, 64rem);
    margin: 0 auto;
}

.account-shell .account-home {
    width: 100%;
    margin: 2rem 0;
}

.account-table-wrap {
    overflow-x: auto;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
}

.account-table th,
.account-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #d7e3e8;
    text-align: left;
    vertical-align: top;
}

.account-table th {
    color: #256C86;
}

.prescriber-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid #d7e3e8;
    border-radius: 0.35rem;
    color: #256C86;
    background: #fff;
    cursor: pointer;
}

.prescriber-copy svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prescriber-copy [hidden] {
    display: none;
}

.prescriber-copy:hover,
.prescriber-copy:focus-visible,
.prescriber-copy.is-copied {
    color: #fff;
    background: #256C86;
    border-color: #256C86;
}

a.prescriber-copy {
    text-decoration: none;
}

.prescriber-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.prescriber-pdf__open {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid #256C86;
    border-radius: 0.5rem;
    color: #256C86;
    font-weight: 600;
    text-decoration: none;
}

.prescriber-pdf__open svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prescriber-pdf__open:hover,
.prescriber-pdf__open:focus-visible {
    color: #fff;
    background: #256C86;
}

.prescriber-pdf__size {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
}

.account-home > .prescriber-toast,
.prescriber-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    z-index: 60;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    color: #fff;
    background: #256C86;
    box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 18%);
    font-weight: 600;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0.75rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.prescriber-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
    .prescriber-toast {
        transition: none;
    }
}

.prescriber-video {
    position: relative;
    width: min(100%, 16rem);
}

.prescriber-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    pointer-events: none;
}

.prescriber-video__open {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: zoom-in;
}

.prescriber-video__open svg {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0.45rem;
    border-radius: 999px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: #256C86;
}

.prescriber-video__open:hover svg,
.prescriber-video__open:focus-visible svg {
    background: #58A24E;
}

.prescriber-video-dialog {
    width: min(56rem, calc(100vw - 2rem));
    padding: 0;
    border: 0;
    background: #111;
    overflow: visible;
}

.prescriber-video-dialog::backdrop {
    background: rgb(11 22 28 / 78%);
}

.prescriber-video-dialog__frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.prescriber-video-dialog__close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 1;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgb(23 49 58 / 72%);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.order-lines {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.account-nav {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    margin: 2rem 0;
}

.account-nav a,
.account-nav > span,
.account-nav button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.75rem;
    border: 0;
    border-radius: 0.65rem;
    padding: 0.65rem 0.8rem;
    color: var(--color-primary);
    background: transparent;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.account-nav form {
    margin: 0;
}

.account-nav a:hover,
.account-nav a:focus-visible,
.account-nav button:hover,
.account-nav button:focus-visible,
.account-nav a[aria-current="page"] {
    color: var(--color-white);
    background: var(--color-primary);
}

.account-nav > span {
    color: var(--color-muted);
    background: #f3f6f7;
}

.account-nav small {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.account-home__status {
    margin: 1.5rem 0;
    border: 1px solid #dce6e9;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.account-home__status h2 {
    margin-top: 0;
    color: var(--color-primary);
}

.account-readonly-label {
    display: block;
    color: var(--color-primary);
    font-weight: 650;
}

.address-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    align-items: stretch;
}

.address-card,
.address-create,
.address-editor {
    border: 1px solid #d5e1e6;
    border-radius: 0.75rem;
    background: #fff;
}

.address-card {
    display: flex;
    flex-direction: column;
    min-height: 16rem;
    padding: 0;
    overflow: hidden;
}

.address-card--primary {
    border-color: #256c86;
    box-shadow: inset 0 0 0 1px #256c86;
}

.address-card--editing {
    box-shadow: 0 0 0 3px rgb(37 108 134 / 28%);
}

.address-card--primary.address-card--editing {
    box-shadow: inset 0 0 0 1px #256c86, 0 0 0 3px rgb(37 108 134 / 28%);
}

.address-card__role {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0.7rem 1rem;
    background: #e7f1f4;
    font-size: 0.88rem;
    font-weight: 650;
}

.address-card__badge {
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    color: var(--color-primary);
    background: #fff;
}

.address-card--primary .address-card__role {
    background: #256c86;
}

.address-card--primary .address-card__badge {
    color: #fff;
    background: rgb(255 255 255 / 18%);
}

.address-card--billing .address-card__role {
    background: #e7f3e4;
}

.address-card--billing .address-card__badge--billing {
    color: #2f6a28;
}

.address-card__body {
    flex: 1;
    padding: 1rem 1rem 0.25rem;
}

.address-card__body p {
    margin: 0;
}

.address-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
    padding: 0.75rem 1rem 1rem;
}

.address-card__actions .button {
    margin-top: 0;
}

.address-toolbar {
    margin: 1rem 0 0;
}

.address-toolbar .button {
    margin-top: 0;
}

.address-dialog {
    width: min(92vw, 40rem);
    max-height: min(90vh, 48rem);
    margin: auto;
    border: 0;
    border-radius: 0.75rem;
    padding: 0;
    color: var(--color-text);
}

.address-dialog[open] {
    display: flex;
    flex-direction: column;
}

.address-dialog::backdrop {
    background: rgb(10 30 38 / 60%);
}

.address-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #dce6e9;
    padding: 1rem 1.25rem;
}

.address-dialog__header h2 {
    margin: 0;
    color: var(--color-primary);
}

.address-dialog__header a {
    color: var(--color-primary);
    font-weight: 650;
}

.address-dialog__body {
    overflow: auto;
    padding: 0 1.25rem 1.25rem;
}

.address-card__actions form,
.address-form {
    margin-top: 1rem;
}

.address-card__actions form {
    margin-top: 0;
}

.checkout > h1 {
    margin: 0 0 1.25rem;
    color: var(--color-primary);
    font-size: clamp(1.65rem, 4.5vw, 2.2rem);
}

.checkout__layout {
    display: grid;
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    grid-template-areas: "steps summary";
    gap: 1.5rem;
    align-items: start;
}

.checkout__steps {
    display: grid;
    grid-area: steps;
    gap: 1rem;
}

.checkout-summary {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    grid-area: summary;
    border: 1px solid #d5e1e6;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
}

.checkout-summary__toggle {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    list-style: none;
    cursor: default;
}

.checkout-summary__toggle::-webkit-details-marker {
    display: none;
}

.checkout-summary__toggle-total {
    display: none;
}

.checkout-summary__lines {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.checkout-summary__edit {
    margin: 0.75rem 0 0;
}

.checkout-summary__line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.checkout-summary__qty {
    color: var(--color-muted);
    white-space: nowrap;
}

.checkout-summary .cart__row--vat {
    margin-top: 0.15rem;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.checkout-step {
    border: 1px solid #d5e1e6;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
}

.checkout-step h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.75rem;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.checkout-step__number {
    display: inline-grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--color-primary);
    font-size: 0.95rem;
}

.checkout-step--upcoming {
    color: var(--color-muted);
    background: #f7fafb;
}

.checkout-step--upcoming h2 {
    color: var(--color-muted);
}

.checkout-step--upcoming .checkout-step__number {
    background: #9fb3ba;
}

.checkout-step--upcoming p {
    margin: 0;
}

.checkout-payment {
    display: grid;
    gap: 1rem;
}

.checkout-payment__terms {
    margin: 0;
}

.checkout-payment__element {
    min-height: 8rem;
}

.checkout-payment__error {
    margin: 0;
}

.checkout-payment__submit {
    width: 100%;
    min-height: 3rem;
    font-size: 1.05rem;
}

.checkout-payment__submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.checkout-payment__secure {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.85rem;
    text-align: center;
}

.checkout-payment__legal {
    margin: -0.5rem 0 0;
    text-align: center;
}

.checkout-confirmation {
    max-width: 40rem;
    margin: 0 auto;
}

.checkout-confirmation__card {
    padding: 1.25rem 1.5rem;
    border: 1px solid #d8e4e8;
    border-left: 4px solid var(--color-secondary);
    border-radius: 12px;
    background: var(--color-white);
}

.checkout-confirmation__card p {
    margin: 0 0 0.6rem;
}

.checkout-confirmation__card p:last-child {
    margin-bottom: 0;
}

.checkout-confirmation__lead {
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 600;
}

.checkout-confirmation__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.checkout-confirmation__actions[hidden],
.checkout-confirmation__delay[hidden] {
    display: none;
}

.checkout-confirmation__card--en_attente {
    border-left-color: var(--color-primary);
}

.checkout-confirmation__card--payee {
    border-left-color: var(--color-secondary);
}

.checkout-confirmation__card--payee .checkout-confirmation__lead {
    color: var(--color-secondary);
}

.checkout-confirmation__card--refusee,
.checkout-confirmation__card--annulee {
    border-left-color: var(--color-muted);
    background: #f4f7f8;
}

.checkout-confirmation__card--refusee .checkout-confirmation__lead,
.checkout-confirmation__card--annulee .checkout-confirmation__lead {
    color: var(--color-text);
}

.checkout-confirmation__delay {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.checkout-addresses fieldset {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    border: 0;
    padding: 0;
}

.checkout-address {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
    border: 1px solid #d5e1e6;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
}

.checkout-address--selected,
.checkout-address:has(input:checked) {
    border-color: var(--color-primary);
    box-shadow: inset 0 0 0 1px var(--color-primary);
}

.checkout-address__choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.4rem 0.75rem;
    cursor: pointer;
}

.checkout-address__choice input {
    margin-top: 0.3rem;
    accent-color: var(--color-primary);
}

.checkout-address__text {
    color: #4d6470;
    font-size: 0.92rem;
}

.checkout-address__text strong {
    color: var(--color-text);
    font-size: 1rem;
}

.checkout-address__badges {
    display: flex;
    flex-wrap: wrap;
    grid-column: 2;
    gap: 0.4rem;
    font-size: 0.82rem;
}

.checkout-address__badges .address-card__badge {
    background: #e7f1f4;
}

.checkout-address__badges .address-card__badge--billing {
    color: #2f6a28;
    background: #e7f3e4;
}

.checkout-address__edit {
    align-self: start;
}

.checkout-addresses__submit,
.checkout-addresses__add {
    margin: 0.75rem 0 0;
}

.checkout-billing {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.checkout-shipping__option {
    grid-template-columns: minmax(0, 1fr);
}

.checkout-shipping__choice {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
}

.checkout-shipping__description {
    display: block;
    margin-top: 0.2rem;
    color: #4d6470;
    font-size: 0.92rem;
}

.checkout-shipping__price {
    font-weight: 700;
    white-space: nowrap;
}

.checkout-shipping__price--free {
    color: #2f6a28;
}

.checkout-shipping__blocked {
    border: 1px solid #e3b3a8;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fdf2ef;
}

.checkout-shipping__blocked p {
    margin: 0 0 0.6rem;
}

.checkout-shipping__blocked p:last-child {
    margin-bottom: 0;
}

.checkout-billing a {
    color: var(--color-primary);
    font-weight: 650;
}

.checkout-relay__current {
    margin: 0 0 1rem;
    border-left: 4px solid var(--color-secondary);
    border-radius: 0.5rem;
    padding: 0.7rem 0.9rem;
    background: #eef6ec;
}

.checkout-relay__search {
    margin: 0 0 1rem;
}

.checkout-relay__search label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 650;
}

.checkout-relay__search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.checkout-relay__search-row input {
    width: 8rem;
    min-height: 2.85rem;
    border: 1px solid #aabdc3;
    border-radius: 0.4rem;
    padding: 0.6rem 0.75rem;
    color: var(--color-text);
    background: var(--color-white);
    font: inherit;
}

.checkout-relay__search-row input:focus {
    outline: 0.2rem solid rgb(150 193 31 / 35%);
    outline-offset: 0.1rem;
    border-color: var(--color-primary);
}

.checkout-relay__search-row input[aria-invalid="true"] {
    border-color: #b3261e;
}

.checkout-relay__search .field-feedback {
    margin: 0.4rem 0 0;
}

.checkout-relay__notice {
    margin: 0;
    border: 1px solid #e3b3a8;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fdf2ef;
}

.checkout-relay__notice p {
    margin: 0 0 0.75rem;
}

.checkout-relay__legend {
    margin-bottom: 0.25rem;
    padding: 0;
    color: #4d6470;
    font-size: 0.92rem;
}

.checkout-relay__option {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
}

.checkout-relay__choice {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
}

.checkout-relay__address {
    display: block;
    color: #4d6470;
    font-size: 0.92rem;
}

.checkout-relay__distance {
    color: var(--color-primary);
    font-weight: 700;
    white-space: nowrap;
}

.checkout-relay__extra {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    align-items: baseline;
    padding-left: 1.75rem;
    font-size: 0.92rem;
}

.checkout-relay__hours summary,
.checkout-relay__plan summary {
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}

.checkout-relay__extra details[open] {
    flex-basis: 100%;
}

/* The Mondial Relay map is 390 × 230 px; the extra 2 px make room for the border. */
.checkout-relay__plan-frame iframe {
    display: block;
    width: min(100%, 392px);
    height: 232px;
    margin: 0.5rem 0;
    border: 1px solid #d5e1e6;
    border-radius: 0.5rem;
    background: #f3f7f8;
}

.checkout-relay__hours dl {
    display: grid;
    gap: 0.15rem;
    margin: 0.5rem 0 0;
}

.checkout-relay__hours dl div {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.5rem;
}

.checkout-relay__hours dt {
    font-weight: 600;
}

.checkout-relay__hours dd {
    margin: 0;
}

.checkout-relay__map {
    color: var(--color-primary);
    font-size: 0.85rem;
}

@media (max-width: 50rem) {
    .checkout__layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "summary"
            "steps";
    }

    .checkout-summary {
        position: static;
    }

    .checkout-summary__toggle {
        cursor: pointer;
    }

    .checkout-summary__toggle::after {
        content: "▾";
    }

    .checkout-summary__panel[open] .checkout-summary__toggle::after {
        content: "▴";
    }

    .checkout-summary__toggle-total {
        display: inline;
        margin-left: auto;
    }

    .checkout-address {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-relay__extra {
        padding-left: 0;
    }
}

.order-preview {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

.order-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    align-items: stretch;
}

.order-card {
    display: flex;
    flex-direction: column;
    min-height: 14rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5e1e6;
    border-radius: 0.75rem;
    background: #fff;
}

.order-card__role {
    margin: 0;
    padding: 0.7rem 1rem;
    color: var(--color-primary);
    background: #e7f1f4;
    font-size: 0.88rem;
    font-weight: 650;
}

.order-card--confirmed {
    border-color: #256c86;
    box-shadow: inset 0 0 0 1px #256c86;
}

.order-card--confirmed .order-card__role {
    color: var(--color-white);
    background: #256c86;
}

.order-card--shipped .order-card__role {
    color: #2f6a28;
    background: #e7f3e4;
}

.order-card--cancelled .order-card__role {
    color: var(--color-muted);
    background: #f3f6f7;
}

.order-card__body {
    flex: 1;
    padding: 1rem 1rem 0.25rem;
}

.order-card__body h2,
.order-card__body p {
    margin: 0 0 0.35rem;
}

.order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
    padding: 0.75rem 1rem 1rem;
}

.order-card__actions .button {
    margin-top: 0;
}

.order-lines {
    width: 100%;
    border-collapse: collapse;
}

.order-lines th,
.order-lines td {
    padding: 0.45rem 0.35rem;
    border-bottom: 1px solid #d5e1e6;
    text-align: left;
}

.order-invoices {
    display: grid;
    gap: 0.75rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.order-invoices li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    align-items: center;
}

.order-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    margin-top: 1rem;
}

@media (max-width: 40rem) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .account-home {
        margin: 1rem auto;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .account-shell {
        grid-template-columns: 1fr;
    }

    .address-list,
    .order-list {
        grid-template-columns: 1fr;
    }

    .address-dialog {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .account-nav {
        display: flex;
        overflow-x: auto;
        margin: 1rem 0 0;
        padding: 0 0.75rem 0.25rem;
    }

    .account-nav form,
    .account-nav a,
    .account-nav > span {
        flex: 0 0 auto;
    }

    .account-nav button {
        width: auto;
        white-space: nowrap;
    }

    .account-shell .account-home {
        margin-top: 0;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: -9999px;
    z-index: 100;
    border-radius: 0.25rem;
    padding: 0.65rem 1rem;
    color: var(--color-white);
    background: var(--color-primary);
}

.skip-link:focus {
    left: 0.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-height);
    border-bottom: 1px solid #dce6e9;
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 0.25rem 1rem rgb(37 108 134 / 8%);
    backdrop-filter: blur(0.5rem);
}

.site-header__inner {
    display: flex;
    min-height: var(--header-height);
    max-width: var(--content-width);
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
}

.logo,
.site-footer__logo {
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
}

.logo {
    width: 12.5rem;
    height: 3.5rem;
}

.logo img,
.site-footer__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.logo img {
    transform: scale(1.48);
}

.nav {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
}

.nav__main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 1.35rem;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    padding-left: 1rem;
    border-left: 1px solid #dce6e9;
}

.nav a {
    position: relative;
    color: var(--color-primary);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.header-actions__link {
    display: grid;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: var(--color-primary);
    place-items: center;
    transition: color 160ms ease, background-color 160ms ease;
}

.header-actions__count {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    min-width: 1.1rem;
    border-radius: 999px;
    padding: 0.05rem 0.28rem;
    color: var(--color-white);
    background: var(--color-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.header-actions__link:hover,
.header-actions__link:focus-visible {
    color: var(--color-white);
    background: var(--color-primary);
}

.header-actions__icon {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    fill: currentcolor;
}

.header-actions__icon--stroke {
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 0.15rem;
    content: "";
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.3rem;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    background: var(--color-white);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 1.15rem;
    height: 0.12rem;
    background: currentcolor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
    transform: translateY(0.42rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
    transform: translateY(-0.42rem) rotate(-45deg);
}

.page {
    width: 100%;
    max-width: var(--content-width);
    flex: 1 0 auto;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 5rem) 1.25rem;
}

.page:has(.home-slogan) {
    padding-top: clamp(0.85rem, 2vw, 1.35rem);
}

.error h1 {
    margin-top: 0;
    color: var(--color-primary);
}

.catalog {
    margin-top: 0;
}

.home-slogan {
    margin: 0 0 clamp(1.15rem, 3vw, 1.85rem);
    color: var(--color-primary);
    font-size: clamp(1.42rem, 3.2vw, 2.25rem);
    line-height: 1.15;
    text-align: center;
}

.catalog__title {
    margin: 0 0 1.5rem;
    color: var(--color-primary);
    font-size: clamp(1.35rem, 3.6vw, 1.8rem);
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dce6e9;
    border-radius: 0.85rem;
    background: var(--color-white);
}

.product-card__media {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    background: #f3f7f8;
    text-decoration: none;
}

.product-card__media img,
.product__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__placeholder,
.product__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    color: var(--color-primary);
    background: linear-gradient(160deg, #e7f1f4, #d5e8c8);
    font-size: 3rem;
    font-weight: 700;
    place-items: center;
}

.product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.1rem 1.2rem;
}

.product-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.product-card__title a {
    color: var(--color-primary);
    text-decoration: none;
}

.product-card__title a:hover,
.product-card__title a:focus-visible {
    color: var(--color-secondary);
}

.product-card__excerpt,
.product-card__pack,
.product-card__stock {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.product-card__price,
.product__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.7rem;
    margin: 0.15rem 0 0.35rem;
}

.price {
    color: var(--color-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.price--sale {
    color: var(--color-secondary);
    font-size: 1.25rem;
}

.price--was {
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.price-badge {
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    color: var(--color-white);
    background: var(--color-secondary);
    font-size: 0.75rem;
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border: 0;
    border-radius: 0.4rem;
    padding: 0.7rem 1rem;
    color: var(--color-white);
    background: var(--color-primary);
    font: inherit;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    background: #1d5770;
}

.button--large {
    width: 100%;
    max-width: 18rem;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
}

a.login-create.button--large {
    max-width: none;
}

.add-to-cart {
    display: flex;
    margin-top: auto;
}

.add-to-cart .button {
    width: 100%;
    margin-top: 0;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.button--quiet {
    margin-top: 0;
    padding: 0.45rem 0.75rem;
    color: var(--color-primary);
    background: #e7f1f4;
    font-size: 0.85rem;
}

.button--quiet:hover,
.button--quiet:focus-visible {
    color: var(--color-white);
    background: var(--color-primary);
}

.product {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3.5rem);
}

.product__intro {
    display: grid;
    grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.product__gallery,
.product__placeholder {
    width: min(100%, 24rem);
    overflow: hidden;
    border-radius: 1rem;
    background: #f3f7f8;
    aspect-ratio: 1;
}

.product__buy h1 {
    margin: 0 0 0.75rem;
    color: var(--color-primary);
    font-size: clamp(1.65rem, 4.5vw, 2.35rem);
    line-height: 1.15;
}

.product__lead p {
    margin: 0 0 0.85rem;
    color: var(--color-muted);
    font-size: 0.98rem;
}

.product__pack {
    margin: 0 0 0.85rem;
    font-weight: 650;
}

.product__stock {
    margin: 0 0 1rem;
    color: var(--color-secondary);
    font-weight: 650;
}

.product__stock--out {
    color: #8a3a32;
}

.product-tabs__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid #dce6e9;
}

.product-tabs__tab {
    flex: 0 0 auto;
    margin: 0;
    border: 0;
    border-bottom: 0.2rem solid transparent;
    padding: 0.7rem 1rem;
    color: var(--color-muted);
    background: transparent;
    font: inherit;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}

.product-tabs__tab:hover,
.product-tabs__tab:focus-visible {
    color: var(--color-primary);
}

.product-tabs__tab:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.product-tabs__tab[aria-selected="true"] {
    color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
}

.product-tabs__panel {
    max-width: 55rem;
    margin-inline: auto;
    padding: 1.25rem 0 0;
}

.product-section__content p,
.product-section__content li {
    line-height: 1.7;
}

.product-section__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
}

.product-section__content th,
.product-section__content td {
    border: 1px solid #dce6e9;
    padding: 0.55rem 0.75rem;
    text-align: left;
}

.product-section__content thead th {
    background: #f3f7f8;
    color: var(--color-primary);
}

.cart > h1 {
    margin: 0 0 1.25rem;
    color: var(--color-primary);
    font-size: clamp(1.65rem, 4.5vw, 2.2rem);
}

.cart-notice {
    margin: 0 0 1.25rem;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--color-primary);
    background: #e7f1f4;
}

.cart__flash {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--color-primary);
    background: #e7f1f4;
}

.cart__empty {
    color: var(--color-muted);
}

.cart__lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-line {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #dce6e9;
    border-radius: 0.85rem;
    padding: 0.85rem;
}

.cart-line__media {
    display: grid;
    width: 6.5rem;
    height: 6.5rem;
    overflow: hidden;
    border-radius: 0.6rem;
    background: #f3f7f8;
    place-items: center;
    text-decoration: none;
}

.cart-line__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line__placeholder {
    color: var(--color-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.cart-line__title {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
}

.cart-line__title a {
    color: var(--color-primary);
    text-decoration: none;
}

.cart-line__pack,
.cart-line__unit {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.cart-line__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cart-line__qty {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.cart-qty__btn {
    display: grid;
    width: 2rem;
    height: 2rem;
    border: 1px solid #dce6e9;
    border-radius: 0.35rem;
    color: var(--color-primary);
    background: var(--color-white);
    font: inherit;
    font-weight: 700;
    line-height: 1;
    place-items: center;
    cursor: pointer;
}

.cart-qty__btn:hover,
.cart-qty__btn:focus-visible {
    border-color: var(--color-primary);
}

.cart-qty__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-qty__value {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 650;
}

.cart-line__remove-form {
    margin: 0;
}

.cart-line__remove {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 0.35rem;
    padding: 0;
    color: var(--color-muted);
    background: transparent;
    place-items: center;
    cursor: pointer;
}

.cart-line__remove:hover,
.cart-line__remove:focus-visible {
    color: var(--color-primary);
    background: #e7f1f4;
}

.cart-line__trash {
    display: block;
}

.cart-line__total {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
}

.cart__summary {
    max-width: 24rem;
    margin: 1.75rem 0 0 auto;
}

.cart__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.5rem;
}

.cart__row--offered,
.cart__row--code {
    color: #2f6a28;
    font-weight: 650;
}

.checkout-code {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.checkout-code summary {
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}

.checkout-code__form {
    margin-top: 0.6rem;
}

.checkout-code__form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.checkout-code__row,
.checkout-code__current {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
}

.checkout-code__current {
    justify-content: space-between;
}

.checkout-code__row input {
    flex: 1 1 8rem;
    min-width: 0;
    min-height: 2.6rem;
    border: 1px solid #aabdc3;
    border-radius: 0.4rem;
    padding: 0.5rem 0.7rem;
    color: var(--color-text);
    background: var(--color-white);
    font: inherit;
    text-transform: uppercase;
}

.checkout-code__row input:focus {
    outline: 0.2rem solid rgb(150 193 31 / 35%);
    outline-offset: 0.1rem;
    border-color: var(--color-primary);
}

.checkout-code__row input[aria-invalid="true"] {
    border-color: #b3261e;
}

.checkout-code .field-feedback,
.checkout-code__notice {
    margin: 0.45rem 0 0;
}

.checkout-code__notice--success {
    color: #2f6a28;
    font-weight: 600;
}

.checkout-code__notice--info {
    color: #4d6470;
}

.cart__row--total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dce6e9;
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.cart__checkout {
    margin: 1.25rem 0 0;
}

.cart__checkout .button {
    width: 100%;
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.cart-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgb(23 49 58 / 42%);
}

.cart-drawer__panel {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    width: min(26rem, 100%);
    height: 100%;
    flex-direction: column;
    background: var(--color-white);
    box-shadow: -0.5rem 0 1.5rem rgb(23 49 58 / 16%);
}

.cart-drawer__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #dce6e9;
}

.cart-drawer__header h2 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.15rem;
}

.cart-drawer__close {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    color: var(--color-primary);
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    place-items: center;
    cursor: pointer;
}

.cart-drawer__close:hover,
.cart-drawer__close:focus-visible {
    background: #e7f1f4;
}

.cart-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.15rem 1.5rem;
}

.cart-drawer .cart-line {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.cart-drawer .cart-line__media {
    width: 4.5rem;
    height: 4.5rem;
}

.cart-drawer .cart-line__title {
    font-size: 0.98rem;
}

.cart-drawer .cart-line__pack {
    display: none;
}

.cart-drawer .cart-line__actions {
    flex-direction: row;
    align-items: center;
    grid-column: 2;
}

.cart-drawer .cart-line__total {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.98rem;
}

.cart-drawer .cart__summary {
    max-width: none;
    margin-top: 1.25rem;
}

.cart--checkout .cart__lines {
    gap: 0.65rem;
}

.cart--checkout .cart-line {
    grid-template-columns: 4.25rem minmax(0, 1fr) auto auto;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
}

.cart--checkout .cart-line__media {
    width: 4.25rem;
    height: 4.25rem;
}

.cart--checkout .cart-line__title {
    margin-bottom: 0.1rem;
    font-size: 0.95rem;
}

.site-page {
    max-width: 52rem;
    margin: 0 auto;
}

.site-page > h1 {
    margin: 0 0 clamp(1.25rem, 3.5vw, 2rem);
    color: var(--color-primary);
    font-size: clamp(1.4rem, 3.6vw, 2.05rem);
    line-height: 1.2;
}

.site-page__content {
    color: var(--color-text);
}

.site-page__content h2,
.site-page__content h3 {
    margin: 1.75rem 0 0.7rem;
    color: var(--color-primary);
    line-height: 1.3;
}

.site-page__content h2 {
    font-size: clamp(1.1rem, 2.35vw, 1.35rem);
}

.site-page__content h3 {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
}

.site-page__content p,
.site-page__content li {
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: justify;
    text-align-last: start;
    hyphens: auto;
}

@media (max-width: 40rem) {
    .site-page__content p,
    .site-page__content li {
        text-align: left;
        hyphens: none;
    }
}

.site-page__content ul,
.site-page__content ol,
.info-dialog__body ul,
.info-dialog__body ol {
    padding-left: 1.4rem;
}

.site-page__content a,
.info-dialog__body a {
    text-underline-offset: 0.2rem;
}

.faq-page {
    max-width: 52rem;
    margin: 0 auto;
}

.about-video {
    margin: 0 0 1rem;
}

.about-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #17313a;
}

.faq-page__header {
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.faq-page__header h1 {
    margin: 0 0 0.75rem;
    color: var(--color-primary);
    font-size: clamp(1.4rem, 3.6vw, 2.05rem);
    line-height: 1.2;
}

.faq-page__header p {
    margin: 0;
    color: var(--color-muted);
}

.faq-page__groups,
.faq-group__items {
    display: grid;
    gap: 1rem;
}

.faq-page__groups {
    gap: clamp(2rem, 5vw, 3rem);
}

.faq-group h2 {
    margin: 0 0 1rem;
    color: var(--color-primary);
    font-size: clamp(1.1rem, 2.35vw, 1.35rem);
    line-height: 1.3;
}

.faq-item {
    overflow: clip;
    border: 1px solid #cddde2;
    border-radius: 0.65rem;
    background: var(--color-white);
}

.faq-item summary {
    padding: 1rem 1.25rem;
    color: var(--color-text);
    font-weight: 700;
    cursor: pointer;
}

.faq-item summary:hover {
    color: var(--color-primary);
    background: #f4f9fa;
}

.faq-item summary:focus-visible {
    outline: 0.2rem solid var(--color-accent);
    outline-offset: -0.2rem;
}

.faq-item[open] summary {
    border-bottom: 1px solid #dce6e9;
    color: var(--color-primary);
    background: #f4f9fa;
}

.faq-item__answer {
    min-height: 1rem;
    padding: 1rem 1.25rem;
}

.faq-item__answer p,
.faq-item__answer li {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: justify;
    text-align-last: start;
    hyphens: auto;
}

@media (max-width: 40rem) {
    .faq-item summary,
    .faq-item__answer {
        padding: 0.9rem 1rem;
    }

    .faq-item__answer p,
    .faq-item__answer li {
        text-align: left;
        hyphens: none;
    }
}

.info-dialog__body li + li {
    margin-top: 0.65rem;
}

.home-benefits {
    margin-top: clamp(3rem, 8vw, 7rem);
}

.home-benefits__grid {
    display: grid;
    max-width: 62rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.5rem);
    margin: 0 auto;
}

.benefit-card {
    position: relative;
    display: flex;
    min-width: 0;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    border: 0;
    padding: 1.5rem;
    color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0.35rem 1.25rem rgb(23 49 58 / 14%);
    cursor: pointer;
    font: inherit;
    text-align: center;
    text-decoration: none;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.benefit-card::before {
    position: absolute;
    inset: 0.85rem;
    border: 1px solid rgb(37 108 134 / 45%);
    content: "";
    pointer-events: none;
}

.benefit-card:hover,
.benefit-card:focus-visible {
    box-shadow: 0 0.55rem 1.5rem rgb(23 49 58 / 20%);
    outline: 0.15rem solid var(--color-accent);
    outline-offset: 0.2rem;
    transform: translateY(-0.2rem);
}

.benefit-card__icon {
    z-index: 1;
    width: clamp(2.5rem, 4vw, 3.5rem);
    height: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 0.35rem;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.benefit-card__title,
.benefit-card__text {
    z-index: 1;
}

.benefit-card__title {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 650;
    line-height: 1.2;
}

.benefit-card__text {
    color: var(--color-muted);
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    line-height: 1.35;
}

.info-dialog {
    width: min(36rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    border: 0;
    border-radius: 0.4rem;
    padding: 0;
    color: var(--color-text);
    background: var(--color-white);
    box-shadow: 0 1rem 3rem rgb(23 49 58 / 28%);
}

.info-dialog::backdrop {
    background: rgb(23 49 58 / 62%);
    backdrop-filter: blur(0.15rem);
}

.info-dialog__content {
    position: relative;
    padding: clamp(1.5rem, 5vw, 2.5rem);
}

.info-dialog h2 {
    margin: 0 2.5rem 1rem 0;
    color: var(--color-primary);
    font-size: clamp(1.22rem, 3.5vw, 1.62rem);
}

.info-dialog__body {
    color: var(--color-muted);
}

.info-dialog__body > :last-child {
    margin-bottom: 0;
}

.info-dialog__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgb(37 108 134 / 30%);
    border-radius: 50%;
    color: var(--color-primary);
    background: var(--color-white);
    cursor: pointer;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    place-items: center;
}

.info-dialog__close:hover,
.info-dialog__close:focus-visible {
    color: var(--color-white);
    background: var(--color-primary);
}

.request-id {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.site-footer {
    border-top: 0.35rem solid var(--color-accent);
    color: var(--color-white);
    background: var(--color-primary);
}

.site-footer__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 1.25rem 1.25rem;
}

.site-footer__main {
    display: grid;
    grid-template-columns:
        minmax(12rem, 1.1fr)
        minmax(10rem, 1fr)
        minmax(10rem, 1fr)
        minmax(17rem, 1.5fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-bottom: 2rem;
}

.site-footer__logo {
    width: 12rem;
    height: auto;
}

.site-footer__logo img {
    object-fit: contain;
}

.site-footer__column h2,
.site-footer__newsletter h2 {
    margin: 0 0 0.8rem;
    color: var(--color-white);
    font-size: 0.94rem;
}

.site-footer__column nav {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
}

.site-footer__column a {
    color: var(--color-white);
    font-size: 0.85rem;
    text-decoration: none;
}

.site-footer__column a:hover,
.site-footer__column a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.site-footer__newsletter p {
    max-width: 26rem;
    margin: 0 0 0.8rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.newsletter-form__controls {
    display: flex;
    width: 100%;
}

.newsletter-form input {
    min-width: 0;
    flex: 1 1 auto;
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 0.25rem 0 0 0.25rem;
    padding: 0.65rem 0.75rem;
    color: var(--color-text);
    background: var(--color-white);
    font: inherit;
    font-size: 0.82rem;
    opacity: 1;
}

.newsletter-form button {
    flex: 0 0 auto;
    border: 1px solid var(--color-accent);
    border-radius: 0 0.25rem 0.25rem 0;
    padding: 0.65rem 0.85rem;
    color: var(--color-text);
    background: var(--color-accent);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    opacity: 0.78;
}

.newsletter-form small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.7rem;
    opacity: 0.82;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(255 255 255 / 25%);
}

.site-footer__legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.site-footer__legal-links a {
    color: var(--color-white);
    font-size: 0.75rem;
    text-decoration: none;
}

.site-footer__social {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

.site-footer__social a {
    display: grid;
    width: 2rem;
    height: 2rem;
    color: var(--color-white);
    opacity: 0.82;
    place-items: center;
    transition: opacity 160ms ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
    opacity: 1;
}

.site-footer__social-icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentcolor;
}

.site-footer__social-icon--stroke {
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.site-footer__social-icon-fill {
    fill: currentcolor;
    stroke: none;
}

@media (max-width: 50rem) {
    .home-benefits__grid {
        max-width: 32rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product__intro {
        grid-template-columns: 1fr;
    }

    .cart-line {
        grid-template-columns: 5rem minmax(0, 1fr);
    }

    .cart-line__media {
        width: 5rem;
        height: 5rem;
    }

    .cart-line__actions,
    .cart-line__total {
        grid-column: 1 / -1;
    }

    .cart-line__total {
        text-align: left;
    }

    .cart-drawer .cart-line {
        grid-template-columns: 4.25rem minmax(0, 1fr) auto;
    }

    .cart-drawer .cart-line__media {
        width: 4.25rem;
        height: 4.25rem;
    }

    .cart-drawer .cart-line__actions {
        grid-column: 2 / -1;
    }

    .cart-drawer .cart-line__total {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
    }

    .cart--checkout .cart-line {
        grid-template-columns: 4.25rem minmax(0, 1fr) auto;
    }

    .cart--checkout .cart-line__actions {
        flex-direction: row;
        align-items: center;
        grid-column: 2;
    }

    .cart--checkout .cart-line__total {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
    }

    .cart--checkout .cart-line__pack {
        display: none;
    }
}

@media (max-width: 62rem) {
    .site-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 68rem) {
    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem;
    }

    .logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .nav-toggle {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .nav[hidden] {
        display: none;
    }

    .nav:not([hidden]) {
        position: fixed;
        inset: var(--header-height) 0 0;
        z-index: 45;
        display: flex;
        width: 100%;
        height: calc(100dvh - var(--header-height));
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
        padding: 1.25rem;
        background: var(--color-white);
    }

    .nav__main {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        flex: 0 0 auto;
        flex-direction: column;
        gap: 0;
    }

    .nav a {
        border-bottom: 1px solid #dce6e9;
        padding: 1rem 0;
        font-size: 1.05rem;
    }

    .nav a::after {
        display: none;
    }
}

@media (min-width: 68.01rem) {
    .nav[hidden] {
        display: flex;
    }
}

@media (max-width: 30rem) {
    :root {
        --header-height: 4.5rem;
    }

    .site-header__inner {
        padding-inline: 0.9rem;
    }

    .logo {
        width: 9rem;
        height: 2.8rem;
    }

    .header-actions {
        gap: 0;
    }

    .header-actions__link {
        width: 2.25rem;
        height: 2.25rem;
    }

    .benefit-card {
        padding: 1rem;
    }

    .benefit-card::before {
        inset: 0.55rem;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__main {
        grid-template-columns: 1fr;
    }

    .site-footer__social {
        margin-left: 0;
    }
}

@media (max-width: 22rem) {
    .home-benefits__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
