/* Xavier Lens Drawer v1.3.4 | Fixed beige colors | 2026-07-24 */

.xavier-lens-botoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.xavier-lens-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #12291f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    line-height: 1.3;
    transition: background 0.2s ease, opacity 0.2s ease;
    min-height: 46px;
}

.xavier-lens-trigger:hover {
    background: #0f2218;
    opacity: 0.95;
}

.xavier-lens-trigger:active {
    opacity: 0.9;
}

.xavier-lens-trigger-com-lentes {
    background: #12291f;
}

.xavier-lens-trigger-com-lentes:hover {
    background: #0f2218;
}

.xavier-lens-trigger-sem-lentes {
    background: #1a4d3e;
}

.xavier-lens-trigger-sem-lentes:hover {
    background: #0f3d2f;
}

.xavier-lens-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 99998;
    backdrop-filter: blur(2px);
}
.xavier-lens-overlay[hidden] {
    display: none;
}

.xavier-lens-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 100vw);
    height: 100vh;
    background: #faf8f6;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -12px 0 48px rgba(50, 45, 42, 0.1);
}
.xavier-lens-drawer.is-open {
    transform: translateX(0);
}
.xavier-lens-drawer[hidden] {
    display: none;
}

.xavier-lens-drawer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    background: #fdfcfb;
    border-bottom: 1px solid #ebe7e2;
}
.xavier-lens-back {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #12291f;
    padding: 6px;
    transition: opacity 0.2s ease;
    line-height: 1;
}
.xavier-lens-back:hover {
    opacity: 0.7;
}
.xavier-lens-back[hidden] {
    visibility: hidden;
}
.xavier-lens-progress {
    flex: 1;
    display: flex;
    gap: 8px;
}
.xavier-lens-progress-dot {
    flex: 1;
    height: 3px;
    background: #ddd6cf;
    border-radius: 2px;
    transition: background 0.3s ease;
}
.xavier-lens-progress-dot.is-active {
    background: #12291f;
    box-shadow: 0 0 8px rgba(18, 41, 31, 0.15);
}
.xavier-lens-progress-dot.is-done {
    background: #12291f;
}
.xavier-lens-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #9d9995;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}
.xavier-lens-close:hover {
    color: #12291f;
}

.xavier-lens-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 20px;
}

.xavier-lens-step-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #12291f;
    letter-spacing: -0.5px;
}

.xavier-lens-option {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    text-align: left !important;
    border: 2px solid #ebe7e2 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    background: #fdfcfb !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.xavier-lens-option:hover {
    border-color: #d4cec6 !important;
    background: #f5f1ed !important;
    box-shadow: 0 4px 12px rgba(18, 41, 31, 0.06) !important;
}
.xavier-lens-option.is-selected {
    border-color: #12291f !important;
    background: #f5f1ed !important;
    box-shadow: 0 4px 16px rgba(18, 41, 31, 0.1) !important;
}
.xavier-lens-option::before {
    content: '';
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #d4cec6;
    border-radius: 50%;
    margin-top: 4px;
    transition: all 0.2s ease;
}
.xavier-lens-option:hover::before {
    border-color: #12291f;
}
.xavier-lens-option.is-selected::before {
    background: #12291f;
    border-color: #12291f;
    box-shadow: inset 0 0 0 3px #fdfcfb;
}
.xavier-lens-option-wrapper {
    flex: 1;
}
.xavier-lens-option-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #12291f;
    margin-bottom: 6px;
}
.xavier-lens-option-preco {
    font-size: 14px;
    font-weight: 700;
    color: #b89968;
    white-space: nowrap;
}
.xavier-lens-option ul {
    margin: 8px 0 0;
    padding-left: 0;
    font-size: 13px;
    color: #7a7570;
    line-height: 1.5;
}
.xavier-lens-option ul li {
    margin-bottom: 4px;
}

.xavier-lens-resumo-linha {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #ebe7e2;
    font-size: 14px;
    color: #12291f;
}
.xavier-lens-resumo-linha strong {
    display: block;
    font-size: 11px;
    color: #9d9995;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.xavier-lens-resumo-linha span:last-child {
    text-align: right;
    font-weight: 600;
}
.xavier-lens-resumo-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 24px;
    font-size: 18px;
    font-weight: 700;
    color: #12291f;
    border-top: 2px solid #ebe7e2;
    margin-top: 12px;
}
.xavier-lens-resumo-total span:last-child {
    color: #b89968;
    font-size: 20px;
}
.xavier-lens-aviso {
    font-size: 13px;
    color: #7a7570;
    background: #f5f1ed;
    border-left: 4px solid #12291f;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 20px 0;
    line-height: 1.5;
}
.xavier-lens-confirmar {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #12291f 0%, #0f2218 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(18, 41, 31, 0.15);
}
.xavier-lens-confirmar:hover {
    background: linear-gradient(135deg, #0f2218 0%, #0a1810 100%);
    box-shadow: 0 6px 16px rgba(18, 41, 31, 0.2);
    transform: translateY(-1px);
}
.xavier-lens-confirmar:active {
    transform: translateY(0);
}
.xavier-lens-confirmar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .xavier-lens-drawer {
        width: 100vw;
    }
    .xavier-lens-drawer-body {
        padding: 24px 16px;
    }
    .xavier-lens-step-title {
        font-size: 18px;
    }
}
