/* Shoppi 18+ lane — consumer gate styles (03/11/2026).

   Its own file rather than a block in market.css: the gate markup is shared by
   /search, the store page and the item page, and each of those pins market.css
   to its own ?v=. A rule added there would reach one page and miss the others
   until every cache key moved. Tokens are the design system's (market.css
   :root), so the gate reads as part of the page it sits on. */

/* ---------------------------- badge ---------------------------- */

.mk-ag-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: var(--mk-ink, #0B1B33);
    color: #fff;
    vertical-align: middle;
    cursor: default;
}

/* On a result card the "near you" badge owns the top-left corner; the age
   mark takes the right one so both can show on the same photo. */
.mk-card-badge--adult {
    left: auto;
    right: 10px;
    background: var(--mk-ink, #0B1B33);
}

/* ---------------------------- notice ---------------------------- */

.mk-ag-notice {
    margin: 14px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--mk-line, #D7DEE8);
    border-radius: 14px;
    background: var(--mk-soft, #F4F6FA);
    color: var(--mk-text-2, #46536B);
    font-size: 13.5px;
    line-height: 1.5;
}

.mk-ag-notice[hidden] {
    display: none;
}

.mk-ag-notice p {
    margin: 0;
}

.mk-ag-notice b {
    color: var(--mk-ink, #0B1B33);
}

.mk-ag-notice .mk-ag-badge {
    margin-right: 8px;
}

.mk-ag-acts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* ---------------------------- buttons ---------------------------- */

.mk-ag-btn {
    display: inline-block;
    border: none;
    border-radius: 11px;
    padding: 10px 20px;
    background: var(--mk-red, #E8113C);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.mk-ag-btn:hover {
    background: var(--mk-red-dark, #C40E32);
    color: #fff;
}

.mk-ag-btn:disabled {
    background: var(--mk-disabled, #C6CEDA);
    cursor: not-allowed;
}

.mk-ag-btn--ghost {
    background: #fff;
    color: var(--mk-ink, #0B1B33);
    border: 1.5px solid var(--mk-line, #D7DEE8);
}

.mk-ag-btn--ghost:hover {
    background: var(--mk-soft, #F4F6FA);
    color: var(--mk-ink, #0B1B33);
}

/* ---------------------------- form ---------------------------- */

.mk-ag-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.mk-ag-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--mk-ink, #0B1B33);
    cursor: pointer;
}

.mk-ag-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--mk-red, #E8113C);
}

.mk-ag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.mk-ag-year {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-muted, #6B7689);
}

.mk-ag-year input {
    width: 96px;
    border: 1.5px solid var(--mk-line, #D7DEE8);
    border-radius: 10px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--mk-ink, #0B1B33);
    background: #fff;
}

.mk-ag-year input:focus {
    outline: none;
    border-color: var(--mk-ink, #0B1B33);
}

.mk-ag-err {
    font-size: 13px;
    font-weight: 600;
    color: var(--mk-red, #E8113C);
}

.mk-ag-err[hidden] {
    display: none;
}

.mk-ag-form.is-closed .mk-ag-check,
.mk-ag-form.is-closed .mk-ag-year {
    opacity: .5;
}

.mk-ag-form.is-done {
    opacity: .6;
    pointer-events: none;
}

/* ---------------------------- interstitial ---------------------------- */

.mk-ag-gate {
    max-width: 560px;
    margin: 48px auto 72px;
    padding: 36px 28px;
    border: 1px solid var(--mk-line, #D7DEE8);
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 28px rgba(11, 27, 51, .06);
}

.mk-ag-gate-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mk-pink, #FDEBEF);
    color: var(--mk-red, #E8113C);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.mk-ag-gate--quarantine .mk-ag-gate-ico {
    background: var(--mk-soft, #F4F6FA);
    color: var(--mk-muted, #6B7689);
    font-size: 26px;
}

.mk-ag-gate h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--mk-ink, #0B1B33);
    overflow-wrap: anywhere;
}

.mk-ag-gate h2 {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--mk-muted, #6B7689);
}

.mk-ag-gate p {
    margin: 14px auto 0;
    max-width: 440px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--mk-text-2, #46536B);
}

.mk-ag-gate .mk-ag-acts {
    justify-content: center;
    margin-top: 20px;
}

.mk-ag-gate .mk-ag-form {
    max-width: 360px;
    margin: 20px auto 0;
    text-align: left;
}

.mk-ag-gate .mk-ag-form .mk-ag-row {
    justify-content: space-between;
}

.mk-ag-gate-home {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mk-muted, #6B7689);
    text-decoration: none;
}

.mk-ag-gate-home:hover {
    color: var(--mk-ink, #0B1B33);
}

/* ---------------------------- search sidebar chip ---------------------------- */

/* Same shape as the "near you" and "express" switches above it. The anchor
   variant (anonymous: sign in) needs the block display a button gets for free.
   No "18+" prefix here: the group label (%_ADULT_GROUP%) and the labels
   themselves already say it. */
.mk-sr-toggle--adult {
    display: block;
    box-sizing: border-box;
    text-decoration: none;
}

.mk-sr-toggle--adult.is-active {
    border-color: var(--mk-ink, #0B1B33);
    background: var(--mk-ink, #0B1B33);
    color: #fff;
}

.mk-sr-side .mk-ag-form {
    margin-top: 8px;
}

.mk-sr-side .mk-ag-form[hidden] {
    display: none;
}

.mk-sr-side .mk-ag-year input {
    width: 100%;
    box-sizing: border-box;
}

.mk-sr-side .mk-ag-row {
    flex-direction: column;
    align-items: stretch;
}

@media (max-width: 640px) {
    .mk-ag-gate {
        margin: 24px 0 48px;
        padding: 28px 18px;
        border-radius: 18px;
    }
}
