/* Cart access: scoped to the shared header/footer; does not alter content, galleries or service layouts. */
.mara-header .mara-cart-link {
    align-items: center;
    background: color-mix(in srgb, var(--mara-teal) 16%, var(--mara-paper));
    border: 1px solid color-mix(in srgb, var(--mara-teal-deep) 26%, var(--mara-line));
    border-radius: 999px;
    color: var(--mara-ink);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .76rem;
    font-weight: 800;
    gap: .42rem;
    line-height: 1;
    min-height: 2.55rem;
    padding: .48rem .72rem;
    text-decoration: none;
    white-space: nowrap;
}

.mara-header .mara-cart-link:hover,
.mara-header .mara-cart-link:focus-visible {
    background: color-mix(in srgb, var(--mara-teal) 28%, var(--mara-paper));
    color: var(--mara-ink);
}

.mara-cart-link__icon {
    display: block;
    flex: 0 0 1.18rem;
    height: 1.18rem;
    width: 1.18rem;
}

.mara-cart-link__count {
    align-items: center;
    background: var(--mara-orange);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .67rem;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    min-height: 1.22rem;
    min-width: 1.22rem;
    padding: 0 .2rem;
}

.mara-footer__links .mara-footer-cart-link {
    text-decoration: none;
}

.mara-footer__links .mara-footer-cart-link:hover,
.mara-footer__links .mara-footer-cart-link:focus-visible {
    color: var(--mara-peach);
}

.mara-header .mara-cart-link:focus-visible,
.mara-footer__links .mara-footer-cart-link:focus-visible {
    outline: 3px solid var(--mara-accent);
    outline-offset: 3px;
}

@media (min-width: 701px) and (max-width: 1023px) {
    .mara-header .mara-header__row {
        display: grid;
        gap: .55rem;
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 4.85rem;
    }

    .mara-header .mara-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .mara-header .mara-nav-checkbox {
        opacity: 0;
        pointer-events: none;
        position: absolute;
    }

    .mara-header .mara-nav-trigger {
        align-items: center;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: .25rem;
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        justify-self: center;
        min-height: 2.5rem;
        width: 2.5rem;
    }

    .mara-header .mara-nav-trigger span {
        background: var(--mara-ink);
        height: 2px;
        transition: transform .18s ease;
        width: 1.2rem;
    }

    .mara-header .mara-nav {
        background: var(--mara-paper);
        border: 1px solid var(--mara-line);
        border-radius: .8rem;
        box-shadow: 0 1.2rem 2.5rem color-mix(in srgb, var(--mara-ink) 15%, transparent);
        left: auto;
        min-width: 15rem;
        padding: 1rem;
        position: absolute;
        right: 5rem;
        top: 4.85rem;
        transform: none;
    }

    .mara-header .mara-nav-checkbox:not(:checked) ~ .mara-nav {
        display: none;
    }

    .mara-header .mara-menu {
        align-items: stretch;
        flex-direction: column;
        gap: .15rem;
    }

    .mara-header .mara-menu a {
        display: block;
        padding: .55rem;
    }

    .mara-header .mara-header__actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .mara-header .mara-header-action {
        font-size: .7rem;
        padding: .6rem .7rem;
    }
}

@media (max-width: 940px) {
    .mara-header .mara-cart-link__label {
        display: none;
    }

    .mara-header .mara-cart-link {
        gap: .3rem;
        padding-inline: .55rem;
    }
}

@media (max-width: 700px) {
    .mara-header .mara-header__row {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
    }

    .mara-header .mara-header__actions {
        display: contents;
    }

    .mara-header .mara-cart-link {
        grid-column: 3;
        grid-row: 1;
        justify-self: center;
        min-height: 2.45rem;
        padding: .4rem .5rem;
    }

    .mara-header .mara-cart-link__icon {
        height: 1.2rem;
        width: 1.2rem;
    }

    .mara-header .mara-header-action--chat {
        font-size: .6rem;
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
        padding: .5rem .42rem;
    }
}
