/**
 * DeliveryOK — Design 3 desktop.
 *
 * Everything is scoped by the root marker resolved from the published domain.
 */
body[data-desktop-design="model_3"] {
    --okd3-orange: #ff9700;
    --okd3-coral: #ff464f;
    --okd3-ink: #201711;
    --okd3-muted: #71675f;
    --okd3-paper: #fffdf9;
    --okd3-surface: #ffffff;
    --okd3-line: #eadfd6;
    --okd3-soft: #fff4e4;
    --okd3-success: #16865a;
    --okd3-shadow-sm: 0 8px 24px rgb(73 43 23 / 8%);
    --okd3-shadow-md: 0 20px 55px rgb(73 43 23 / 14%);
    --okd3-radius-sm: 12px;
    --okd3-radius-md: 18px;
    --okd3-radius-lg: 26px;
    margin: 0;
    color: var(--okd3-ink);
    background: var(--okd3-paper);
}

body[data-desktop-design="model_3"] :where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgb(255 151 0 / 36%);
    outline-offset: 3px;
}

/* ------------------------------------------------------------- cabeçalho */

body[data-desktop-design="model_3"] .okd-head {
    --okd-head-bg: #ffffff !important;
    --okd-head-fg: var(--okd3-ink);
    --okd-head-h: 72px;
    --okd-head-h-min: 60px;
    background: var(--okd3-surface);
    color: var(--okd3-ink);
    border-bottom: 1px solid var(--okd3-line);
    box-shadow: 0 2px 14px rgb(73 43 23 / 5%);
}

body[data-desktop-design="model_3"] .okd-head.is-condensed {
    box-shadow: 0 8px 28px rgb(73 43 23 / 10%);
}

body[data-desktop-design="model_3"] .okd-head__inner {
    width: min(1320px, calc(100% - 40px));
    gap: 16px;
}

body[data-desktop-design="model_3"] .okd-mark {
    width: 116px;
    height: 44px;
    background: var(--okd3-logo) no-repeat left center / contain;
    -webkit-mask: none;
    mask: none;
}

body[data-desktop-design="model_3"] .okd-head.is-condensed .okd-mark {
    transform: scale(0.9);
}

body[data-desktop-design="model_3"] .okd-head__brand {
    min-width: 116px;
}

body[data-desktop-design="model_3"] .okd-head__brand.okd-reveal {
    width: 116px;
    margin-right: 0;
    opacity: 1;
}

body[data-desktop-design="model_3"] .okd-head__rule {
    height: 34px;
    background: var(--okd3-line);
}

body[data-desktop-design="model_3"] .okd-head__store {
    padding: 5px 8px 5px 5px;
    border-radius: 13px;
    transition: background-color 160ms ease;
}

body[data-desktop-design="model_3"] .okd-head__store:hover {
    background: var(--okd3-soft);
}

body[data-desktop-design="model_3"] .okd-head__store-logo {
    border: 1px solid var(--okd3-line);
    border-radius: 10px;
}

body[data-desktop-design="model_3"] .okd-head__store-name {
    color: var(--okd3-ink);
    font-weight: 800;
}

body[data-desktop-design="model_3"] .okd-status {
    color: var(--okd3-muted);
    background: #f5f2ee;
}

body[data-desktop-design="model_3"] .okd-status.is-open {
    color: #116944;
    background: #e8f7ef;
}

body[data-desktop-design="model_3"] .okd-status__dot {
    background: var(--okd3-coral);
}

body[data-desktop-design="model_3"] .okd-status.is-open .okd-status__dot {
    background: var(--okd3-success);
}

body[data-desktop-design="model_3"] .okd-head__nav {
    gap: 4px;
    min-width: 0;
}

body[data-desktop-design="model_3"] .okd-head--landing:has(.okd3-market-tools) .okd-head__inner {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) auto;
}

.okd3-market-tools {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(170px, 220px) minmax(250px, 1fr);
    align-items: center;
    gap: 11px;
}

.okd3-market-panel-link {
    flex: 0 0 auto;
    white-space: nowrap;
}

.okd3-location {
    position: relative;
    min-width: 0;
}

.okd3-location > summary {
    display: grid;
    min-height: 46px;
    padding: 6px 9px;
    grid-template-columns: 18px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 9px;
    color: var(--okd3-ink);
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
    transition: background-color 160ms ease;
}

.okd3-location > summary::-webkit-details-marker {
    display: none;
}

.okd3-location > summary:hover,
.okd3-location[open] > summary {
    background: var(--okd3-soft);
}

.okd3-location > summary > i:first-child {
    color: var(--okd3-coral);
    font-size: 17px;
}

.okd3-location > summary > i:last-child {
    color: #978b84;
    font-size: 10px;
    transition: transform 160ms ease;
}

.okd3-location[open] > summary > i:last-child {
    transform: rotate(180deg);
}

.okd3-location > summary span {
    min-width: 0;
}

.okd3-location > summary small,
.okd3-location > summary strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.okd3-location > summary small {
    color: var(--okd3-muted);
    font-size: 9px;
    font-weight: 650;
}

.okd3-location > summary strong {
    margin-top: 1px;
    color: var(--okd3-ink);
    font-size: 11px;
    font-weight: 800;
}

.okd3-location__panel {
    position: absolute;
    top: calc(100% + 11px);
    left: 0;
    z-index: 20;
    width: min(360px, calc(100vw - 32px));
    padding: 18px;
    color: var(--okd3-ink);
    background: #fff;
    border: 1px solid var(--okd3-line);
    border-radius: 17px;
    box-shadow: var(--okd3-shadow-md);
}

.okd3-location__panel > strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.okd3-location__panel > p {
    margin: 4px 0 13px;
    color: var(--okd3-muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.okd3-location__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.okd3-location__form input {
    min-width: 0;
    height: 41px;
    padding: 0 11px;
    color: var(--okd3-ink);
    background: #f7f3ef;
    border: 1px solid transparent;
    border-radius: 10px;
    outline: 0;
    font-size: 11px;
}

.okd3-location__form input:focus {
    background: #fff;
    border-color: var(--okd3-orange);
}

.okd3-location__form button,
.okd3-location__gps {
    min-height: 41px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 800;
}

.okd3-location__form button {
    padding: 0 13px;
    color: #fff;
    background: var(--okd3-coral);
}

.okd3-location__gps {
    display: flex;
    width: 100%;
    margin-top: 8px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9a5100;
    background: #fff2dd;
}

.okd3-location__gps:disabled {
    cursor: progress;
    opacity: 0.6;
}

.okd3-location__feedback {
    min-height: 0;
    margin: 7px 0 0 !important;
    color: var(--okd3-muted);
    font-size: 9.5px !important;
}

.okd3-location__feedback:empty {
    display: none;
}

.okd3-location__clear {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--okd3-line);
}

.okd3-location__clear button {
    padding: 0;
    color: #a02d34;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 9.5px;
    font-weight: 700;
}

.okd3-head-search {
    display: flex;
    min-width: 0;
    height: 46px;
    padding: 0 8px 0 14px;
    align-items: center;
    gap: 10px;
    color: #746a64;
    background: #f4f1ef;
    border: 1px solid transparent;
    border-radius: 14px;
}

.okd3-head-search:focus-within {
    color: #9a5100;
    background: #fff;
    border-color: var(--okd3-orange);
    box-shadow: 0 0 0 3px rgb(255 151 0 / 12%);
}

.okd3-head-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--okd3-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 11.5px;
}

/* O formulário já desenha um anel arredondado com :focus-within. Evita que o
   foco global crie um segundo contorno retangular dentro do campo. */
body[data-desktop-design="model_3"] .okd3-head-search input[type="search"]:focus-visible {
    outline: 0;
    outline-offset: 0;
}

.okd3-head-search input[type="search"]::-webkit-search-cancel-button {
    width: 0;
    height: 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* O contêiner é o único responsável pelo foco visual da busca. O botão próprio
   mantém o desenho igual entre Chrome, Edge e Firefox. */
body[data-desktop-design="model_3"] .product-discovery--search-results .discovery-field--search .discovery-field__control {
    position: relative;
    padding-right: 8px;
}

body[data-desktop-design="model_3"] .product-discovery--search-results .discovery-field--search input[type="search"] {
    padding-right: 4px;
    outline: 0;
    outline-offset: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

body[data-desktop-design="model_3"] .product-discovery--search-results .discovery-field--search input[type="search"]:focus-visible {
    outline: 0;
    outline-offset: 0;
    box-shadow: none;
}

body[data-desktop-design="model_3"] .product-discovery--search-results .discovery-field--search input[type="search"]::-webkit-search-cancel-button,
body[data-desktop-design="model_3"] .product-discovery--search-results .discovery-field--search input[type="search"]::-webkit-search-decoration {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

.okd3-search-clear {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 0;
    place-items: center;
    color: #6f625a;
    background: #eee8e3;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.okd3-search-clear[hidden] {
    display: none;
}

.okd3-search-clear:hover {
    color: #fff;
    background: var(--okd3-coral);
}

.okd3-search-clear:active {
    transform: scale(.94);
}

.okd3-search-clear svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.okd3-head-search button {
    min-width: 64px;
    height: 34px;
    padding: 0 11px;
    color: #fff;
    background: var(--okd3-coral);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

body[data-desktop-design="model_3"] .okd-chrome .okd-act {
    min-height: 42px;
    padding: 0 13px;
    color: var(--okd3-ink);
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
}

body[data-desktop-design="model_3"] .okd-chrome .okd-act:hover {
    color: var(--okd3-ink);
    background: var(--okd3-soft);
    transform: none;
}

body[data-desktop-design="model_3"] .okd-chrome .okd-act.is-active {
    color: #a84f00;
    background: #fff1dc;
}

body[data-desktop-design="model_3"] .okd-act.is-active::after {
    display: none;
}

body[data-desktop-design="model_3"] .okd-chrome .okd-act--solid {
    min-height: 44px;
    padding-inline: 18px;
    color: #ffffff;
    background: var(--okd3-coral);
    box-shadow: 0 8px 18px rgb(255 70 79 / 18%);
}

body[data-desktop-design="model_3"] .okd-chrome .okd-act--solid:hover {
    color: #ffffff;
    background: #eb303b;
    box-shadow: 0 10px 24px rgb(255 70 79 / 24%);
    transform: translateY(-1px);
}

body[data-desktop-design="model_3"] .okd-points,
body[data-desktop-design="model_3"] .okd-points:hover {
    color: #875000;
    background: #fff4df;
}

body[data-desktop-design="model_3"] .okd-cart {
    min-width: 44px;
    justify-content: center;
    border: 1px solid var(--okd3-line);
}

body[data-desktop-design="model_3"] .okd-cart__count,
body[data-desktop-design="model_3"] .okd-chrome .attention-bell__badge {
    background: var(--okd3-coral);
}

body[data-desktop-design="model_3"] .okd-chrome .attention-bell {
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    color: var(--okd3-ink);
    background: #f7f3ef;
    border: 1px solid var(--okd3-line);
    border-radius: 12px;
}

body[data-desktop-design="model_3"] .okd-chrome .attention-bell:hover {
    color: #a84f00;
    background: var(--okd3-soft);
    transform: none;
}

body[data-desktop-design="model_3"] .okd-more__panel {
    top: calc(100% + 10px);
    padding: 8px;
    color: var(--okd3-ink);
    border: 1px solid var(--okd3-line);
    border-radius: 15px;
    box-shadow: var(--okd3-shadow-md);
}

body[data-desktop-design="model_3"] .okd-chrome .okd-more__item {
    min-height: 42px;
    border-radius: 10px;
}

body[data-desktop-design="model_3"] .okd-progress {
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--okd3-orange), var(--okd3-coral));
}

@media (max-width: 1180px) and (min-width: 901px) {
    body[data-desktop-design="model_3"] .okd-head__inner {
        width: min(100% - 24px, 1320px);
        gap: 10px;
    }

    body[data-desktop-design="model_3"] .okd-chrome .okd-act {
        padding-inline: 9px;
        font-size: 12px;
    }

    body[data-desktop-design="model_3"] .okd-act__icon {
        font-size: 15px;
    }

    .okd3-market-tools {
        grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    }
}

/*
 * Barra da landing com zoom do navegador.
 *
 * O zoom estreita a janela em px de CSS (200% numa tela de 1440 = 720 px,
 * 400% = 360 px) sem trocar o canal: o User-Agent continua o do computador.
 * Até 24/09/2026 só havia a faixa de cima, que escondia a localização e
 * deixava "Meu painel" num quadrado vermelho sem nome; abaixo de 901 px tudo
 * voltava por inteiro e o botão cobria a busca.
 */
@media (max-width: 900px) {
    body[data-desktop-design="model_3"] .okd-head--landing:has(.okd3-market-tools) .okd-head__inner {
        width: calc(100% - 28px);
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
    }

    .okd3-market-tools {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px;
    }

    /* A localização vira o alfinete: o texto sai da vista, não do leitor de
       tela (o summary já tem aria-label). */
    .okd3-location > summary {
        grid-template-columns: 18px 10px;
        gap: 6px;
        padding-inline: 10px;
    }

    .okd3-location > summary > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* Duas linhas: marca e ações em cima, localização e busca embaixo. E a barra
   deixa de grudar no topo: com zoom alto ela cobriria metade da tela. */
@media (max-width: 720px) {
    body[data-desktop-design="model_3"] .okd-head--landing:has(.okd3-market-tools) {
        position: relative;
    }

    body[data-desktop-design="model_3"] .okd-head--landing:has(.okd3-market-tools) .okd-head__inner {
        grid-template-areas:
            "brand nav"
            "tools tools";
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 8px;
        padding-block: 10px;
    }

    .okd-head--landing .okd-head__brand {
        grid-area: brand;
    }

    .okd-head--landing .okd3-market-tools {
        grid-area: tools;
    }

    .okd-head--landing .okd-head__nav {
        grid-area: nav;
    }
}

/* 500% de zoom: a marca e o botão cheio encolhem para caber com o tema. */
@media (max-width: 380px) {
    body[data-desktop-design="model_3"] .okd-head--landing .okd-head__brand {
        min-width: 96px;
    }

    body[data-desktop-design="model_3"] .okd-head--landing .okd-mark {
        width: 96px;
        height: 36px;
    }

    body[data-desktop-design="model_3"] .okd-head--landing .okd-act--solid {
        padding-inline: 12px;
    }
}

/* -------------------------------------------------------- central de ajuda */

body.hc-desktop[data-desktop-design="model_3"] {
    background: var(--okd3-paper);
}

body.hc-desktop[data-desktop-design="model_3"] .hc-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--okd3-line);
    box-shadow: 0 2px 14px rgb(73 43 23 / 5%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.hc-desktop[data-desktop-design="model_3"] .hc-header__inner {
    width: min(1320px, calc(100% - 40px));
    min-height: 72px;
}

body.hc-desktop[data-desktop-design="model_3"] .hc-header__logo-surface {
    width: 128px;
    height: 52px;
}

body.hc-desktop[data-desktop-design="model_3"] .hc-header__logo-surface img {
    width: 116px;
    max-height: 44px;
}

body.hc-desktop[data-desktop-design="model_3"] .hc-header__divider {
    height: 30px;
    background: var(--okd3-line);
}

body.hc-desktop[data-desktop-design="model_3"] .hc-header__name {
    color: var(--okd3-ink);
    font-size: 13px;
    font-weight: 800;
}

body.hc-desktop[data-desktop-design="model_3"] .hc-header__nav > a {
    color: var(--okd3-muted);
    border-radius: 11px;
    font-size: 12px;
}

body.hc-desktop[data-desktop-design="model_3"] .hc-header__nav > a:hover,
body.hc-desktop[data-desktop-design="model_3"] .hc-header__nav > a.is-active {
    color: #a84f00;
    background: var(--okd3-soft);
}

body.hc-desktop[data-desktop-design="model_3"] .hc-header__nav .hc-header__home {
    color: #fff;
    background: var(--okd3-coral);
}

body.hc-desktop[data-desktop-design="model_3"] .hc-header__nav .hc-header__home:hover {
    color: #fff;
    background: #eb303b;
}

@media (prefers-reduced-motion: reduce) {
    body[data-desktop-design="model_3"] *,
    body[data-desktop-design="model_3"] *::before,
    body[data-desktop-design="model_3"] *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
