.customer-menu-trigger {
    position: fixed;
    z-index: 850;
    top: calc(2px + env(safe-area-inset-top));
    right: 16px;
    display: grid;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: 1px solid rgba(0, 124, 190, .18);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 67, 105, .12);
}

.customer-menu-trigger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--azul);
}

.customer-menu-trigger,
.flow-back-button {
    top: calc(10px + env(safe-area-inset-top)) !important;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin-top: 0;
    box-sizing: border-box;
}

.flow-back-button > span {
    display: block;
    line-height: 1;
    transform: translateY(-2px);
}

.customer-menu-overlay {
    position: fixed;
    z-index: 900;
    inset: 0;
    background: rgba(2, 26, 40, .42);
    backdrop-filter: blur(2px);
}

.customer-menu {
    position: fixed;
    z-index: 910;
    top: 0;
    right: 0;
    width: min(88vw, 390px);
    height: 100dvh;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
    background: #f7fbfd;
    box-shadow: -12px 0 35px rgba(0, 45, 70, .18);
    transform: translateX(105%);
    transition: transform .24s ease;
}

.customer-menu.is-open { transform: translateX(0); }

.customer-menu > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.customer-menu-logo {
    width: 133px;
    height: 32px;
    margin-right: auto;
    overflow: hidden;
}

.customer-menu-logo img {
    display: block;
    width: 231px;
    max-width: none;
    transform: translate(-54px, -11px);
}

.customer-menu > header button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #26434f;
    font-size: 31px;
    line-height: 1;
}

#btn-fechar-menu-cliente {
    transform: translateY(-10px);
}

.customer-account-welcome h2,
.customer-account-login h2 {
    margin: 0 0 5px;
    color: var(--azul);
    font-family: var(--fonte-destaque);
}

.customer-account-welcome p,
.customer-account-login p { margin: 0 0 18px; color: #52656e; }

.customer-account-whatsapp {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 3px 0 12px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #eef8fc;
    color: #52656e;
    font-size: 13px;
}

.customer-account-whatsapp strong {
    color: var(--azul);
    font-family: var(--fonte-media);
    font-size: 15px;
    white-space: nowrap;
}

.customer-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 22px;
}

.customer-account-stat {
    padding: 13px;
    border: 1px solid #dceaf0;
    border-radius: 10px;
    background: #fff;
}

.customer-account-stat strong {
    display: block;
    color: var(--azul);
    font-family: var(--fonte-destaque);
    font-size: 21px;
}

.customer-account-stat span { color: #647780; font-size: 13px; }

.customer-account-section { margin-top: 22px; }
.customer-account-section h3 { margin: 0 0 10px; color: #244653; }

.customer-account-collapsible {
    border: 1px solid #dceaf0;
    border-radius: 9px;
    background: #f8fbfc;
    overflow: hidden;
}

.customer-account-collapsible > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    color: #244653;
    font-family: var(--fonte-destaque);
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.customer-account-collapsible > summary::-webkit-details-marker {
    display: none;
}

.customer-account-collapsible > summary::after {
    content: '+';
    color: var(--azul);
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.customer-account-collapsible[open] > summary::after {
    content: '−';
}

.customer-account-collapsible > summary:focus,
.customer-account-collapsible > summary:active {
    background: transparent;
    outline: 0;
}

.customer-account-section-content {
    padding: 0 10px 10px;
}

.customer-account-item {
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #dceaf0;
    border-radius: 9px;
    background: #fff;
}

.customer-account-item strong { color: #263f49; }
.customer-account-item span { display: block; margin-top: 3px; color: #687b83; font-size: 13px; }

.customer-recent-order { padding: 0; overflow: hidden; }
.customer-recent-order > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; cursor: pointer; list-style: none; }
.customer-recent-order > summary::-webkit-details-marker { display: none; }
.customer-recent-order > summary > span { flex: 1; min-width: 0; margin: 0; }
.customer-recent-order > summary small { display: block; margin-top: 3px; color: #687b83; font-size: 13px; }
.customer-recent-order > summary .customer-recent-order-date { margin-top: 2px; }
.customer-recent-order > summary .customer-recent-order-rating { margin-top: 5px; color: var(--azul); font-weight: 600; }
.customer-recent-order > summary .customer-recent-order-rating.is-rated { color: #687b83; font-weight: 400; }
.customer-recent-order > summary .customer-recent-order-rating b { color: #e69b0b; }
.customer-recent-order > summary .customer-recent-order-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 5px; }
.customer-recent-order > summary .customer-recent-order-footer small { margin: 0; }
.customer-recent-order-loyalty { display: inline-flex !important; align-items: center; gap: 4px; color: var(--azul) !important; }
.customer-recent-order-loyalty img { width: 17px; height: 17px; object-fit: contain; }
.customer-recent-order > summary::after { content: '+'; color: var(--azul); font-size: 20px; line-height: 1; }
.customer-recent-order[open] > summary::after { content: '−'; }
.customer-recent-order[open] { border-color: #bcdce9; background: #f1f9fc; box-shadow: 0 3px 12px rgba(28, 133, 178, .08); }
.customer-recent-order[open] > summary { background: #eaf6fb; }
.customer-recent-order-detail { padding: 0 12px 12px; border-top: 1px solid #e5eef2; }
.customer-order-detail-loading, .customer-order-detail-error { padding: 12px 0 2px; color: #687b83; font-size: 13px; }
.customer-order-detail-error { color: #b52836; }
.customer-order-products { padding-top: 10px; }
.customer-order-products > div { padding: 7px 0; border-bottom: 1px solid #edf3f5; }
.customer-order-products strong { font-size: 14px; }
.customer-order-products span { margin-top: 2px; }
.customer-order-bottles { margin: 5px 0 0; padding: 2px 0 2px 17px; color: #687b83; font-size: 12px; }
.customer-order-bottles li + li { margin-top: 3px; }
.customer-order-metadata { margin: 9px 0 0; }
.customer-order-metadata > div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; padding-top: 7px; font-size: 13px; }
.customer-order-metadata dt { color: #687b83; }
.customer-order-metadata dd { margin: 0; color: #263f49; overflow-wrap: anywhere; }
.customer-order-rating { margin-top: 14px; padding-top: 12px; border-top: 1px solid #d7e8ee; text-align: center; }
.customer-order-rating > strong { display: block; margin: 0; font-size: 14px; line-height: 1.1; }
.customer-order-stars { display: flex; justify-content: center; gap: 4px; margin: 0; line-height: 1; }
.customer-order-stars button { width: auto; min-width: 0; min-height: 0; margin: 0; padding: 0 2px; border: 0; border-radius: 0; appearance: none; -webkit-appearance: none; background: transparent !important; color: #c7d2d7; font-size: 29px; line-height: 1; cursor: pointer; transition: color .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; }
.customer-order-stars button:hover,
.customer-order-stars button:focus,
.customer-order-stars button:focus-visible,
.customer-order-stars button:active { background: transparent !important; outline: 0 !important; box-shadow: none !important; }
.customer-order-stars button.is-selected { color: #f5ad22; }
.customer-order-stars button:active { transform: scale(.9); }
.customer-order-stars button:disabled { cursor: wait; opacity: .65; }
.customer-order-rating-status { display: block; min-height: 16px; margin-top: 5px; color: #687b83; font-size: 12px; }
.customer-order-rating-status.is-error { color: #b52836; }

.customer-account-action,
.customer-account-contact,
.customer-account-logout {
    width: 100%;
    min-height: 46px;
    border-radius: 8px;
    font-family: var(--fonte-destaque);
}

.customer-account-action { border: 0; background: var(--azul); color: #fff; }
.customer-account-contact { margin-top: 24px; border: 1px solid var(--azul); background: #fff; color: var(--azul); }
.customer-account-action:disabled { background: #b7c5ca; cursor: not-allowed; }
.customer-reward-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin-top: 11px;
    font-size: 14px;
}

.customer-reward-action img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.customer-loyalty-reward small { display: block; margin-top: 9px; color: #52656e; }

.customer-loyalty-points {
    display: grid;
    grid-template-columns: repeat(5, 24px);
    gap: 5px;
    margin-top: 12px;
}

.customer-loyalty-point {
    width: 24px;
    height: 24px;
}

.customer-loyalty-point img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.customer-loyalty-point.earned {
    opacity: 1;
}

.customer-loyalty-point.pending img {
    opacity: .48;
    filter: grayscale(1);
}
.customer-account-logout { margin-top: 24px; border: 1px solid #e2aeb3; background: #fff4f5; color: #b52836; }
.customer-account-loading { padding: 30px 0; color: #687b83; text-align: center; }

.customer-login-modal .modal-panel { max-width: 390px; }
.customer-login-modal input { width: 100%; box-sizing: border-box; }
.customer-login-modal #cliente-login-codigo-wrap { margin-top: 14px; }
.customer-contact-modal .modal-panel { max-width: 430px; }
.customer-contact-modal select,
.customer-contact-modal textarea { width: 100%; box-sizing: border-box; font-size: 16px !important; }
.customer-contact-modal label { display: block; margin: 15px 0 7px; color: #294854; font-family: var(--fonte-media); font-size: 14px; font-weight: 700; }
.customer-contact-modal select {
    min-height: 50px;
    padding: 0 44px 0 14px;
    border: 1px solid #b9d5e0;
    border-radius: 9px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #f7fbfd;
    background-image: linear-gradient(45deg, transparent 50%, var(--azul) 50%), linear-gradient(135deg, var(--azul) 50%, transparent 50%);
    background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    color: #263f49;
    font-family: var(--fonte-media);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.customer-contact-modal select:focus {
    border-color: var(--azul);
    outline: 3px solid rgba(0, 124, 190, .14);
}
.customer-contact-modal .customer-contact-warning { display: block; margin: -2px 0 8px; color: #9a5b16; font-size: 13px; line-height: 1.4; }
.customer-contact-modal textarea { resize: vertical; }
.customer-contact-modal #cliente-contato-contador { display: block; margin: 5px 0 10px; color: #687b83; text-align: right; }
.customer-contact-modal .customer-account-action.is-loading { display: flex; align-items: center; justify-content: center; gap: 9px; }
.customer-contact-modal .customer-account-action.is-loading::before {
    content: '';
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: customer-contact-spin .7s linear infinite;
}
@keyframes customer-contact-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .customer-contact-modal .customer-account-action.is-loading::before { animation-duration: 1.4s; } }

.customer-pwa-menu { margin-top: 24px; padding: 14px; border: 1px solid #b9dce9; border-radius: 10px; background: linear-gradient(135deg, #f1f9fc, #fff); }
.customer-pwa-menu strong,
.customer-pwa-menu small { display: block; }
.customer-pwa-menu strong { color: #244653; font-size: 14px; }
.customer-pwa-menu small { margin-top: 5px; color: #687b83; font-size: 12px; line-height: 1.45; }
.customer-pwa-menu button { width: 100%; min-height: 42px; margin-top: 12px; border: 0; border-radius: 8px; background: var(--azul); color: #fff; font-family: var(--fonte-destaque); font-size: 14px; }
.customer-push-menu { margin-top:12px; padding:14px; border:1px solid #cfe5d9; border-radius:10px; background:#f1faf6; }
.customer-push-menu strong,.customer-push-menu small { display:block; }
.customer-push-menu strong { color:#285646; font-size:14px; }
.customer-push-menu small { margin-top:5px; color:#587268; font-size:12px; line-height:1.45; }
.customer-push-menu button { width:100%; min-height:42px; margin-top:11px; border:0; border-radius:8px; background:#159269; color:#fff; font-weight:800; }
#secao-acompanhamento .customer-pwa-tracking { position: relative; margin: 20px 0 14px; padding: 20px 17px 16px; border: 1px solid #b9dce9; border-radius: 12px; background: linear-gradient(145deg, #eff9fd, #fff); text-align: left; box-shadow: 0 8px 24px rgba(0, 91, 137, .09); }
#secao-acompanhamento .customer-pwa-tracking h2 { margin: 0 30px 5px 0; color: var(--azul); font-family: var(--fonte-destaque); font-size: 20px; line-height: 1.15; }
#secao-acompanhamento .customer-pwa-tracking > p { margin: 0; color: #52656e; font-size: 14px; line-height: 1.45; }
#secao-acompanhamento .customer-pwa-tracking ul { display: grid; gap: 7px; margin: 15px 0; padding: 0; color: #294854; font-size: 13px; list-style: none; }
#secao-acompanhamento .customer-pwa-tracking li::before { content: '✓'; margin-right: 7px; color: #159269; font-weight: 800; }
#secao-acompanhamento .customer-pwa-install { width: 100%; min-height: 46px; border: 0; border-radius: 8px; background: var(--azul); color: #fff; font-family: var(--fonte-destaque); font-size: 15px; }
#secao-acompanhamento .customer-pwa-later { display: block; min-height: 34px; margin: 6px auto 0; padding: 0 12px; border: 0; background: transparent; color: #687b83; font-size: 12px; }
#secao-acompanhamento .customer-pwa-dismiss { position: absolute; top: 6px; right: 7px; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; color: #58727d; font: 25px/1 Arial, sans-serif; }
#secao-acompanhamento .customer-push-tracking { margin:14px 0; padding:16px; border:1px solid #c9e4d5; border-radius:11px; background:#eff9f4; text-align:left; }
#secao-acompanhamento .customer-push-tracking h2 { margin:0; color:#285646; font-size:17px; }
#secao-acompanhamento .customer-push-tracking p { margin:6px 0 12px; color:#587268; font-size:13px; line-height:1.45; }
#secao-acompanhamento .customer-push-tracking button { width:100%; min-height:44px; border:0; border-radius:8px; background:#159269; color:#fff; font-weight:800; }
