/**
 * My Checkout - Estilos
 * Versão: 1.0.0
 */

/* ============================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevenir zoom no iOS ao focar em inputs */
@supports (-webkit-touch-callout: none) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

input, select, textarea, button {
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px 0;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.custom-checkout-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   CABEÇALHO DO CHECKOUT
   ============================================ */
.checkout-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
}

.checkout-header h1 {
    font-size: 36px;
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 700;
}

.checkout-header p {
    color: #718096;
    font-size: 18px;
}

/* ============================================
   SIDEBAR (RESUMO + ETAPAS)
   ============================================ */
.order-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

/* ============================================
   INDICADOR DE ETAPAS
   ============================================ */
.checkout-steps-container {
    background: white;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.checkout-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: default;
}

.checkout-steps .step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.checkout-steps .step-label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.checkout-steps .step.active .step-number {
    background: #1a202c;
    color: white;
    border-color: #1a202c;
    box-shadow: 0 4px 15px rgba(26, 32, 44, 0.3);
}

.checkout-steps .step.active .step-label {
    color: #1a202c;
}

.checkout-steps .step.completed .step-number {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

.checkout-steps .step.completed .step-label {
    color: #48bb78;
}

.checkout-steps .step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 12px;
    margin-bottom: 26px;
    transition: all 0.3s ease;
    min-width: 30px;
    max-width: 60px;
}

.checkout-steps .step-line.active {
    background: #48bb78;
}

/* ============================================
   LAYOUT GRID
   ============================================ */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    align-items: start;
}

/* ============================================
   FORMULÁRIO DE CHECKOUT
   ============================================ */
.checkout-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CONTEÚDO DAS ETAPAS
   ============================================ */
.checkout-step-content {
    display: none;
    animation: fadeInStep 0.4s ease-out;
}

.checkout-step-content.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   BOTÕES DE NAVEGAÇÃO
   ============================================ */
.btn-continue {
    width: 100%;
    padding: 18px 32px;
    background: #1a202c;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 25px;
}

.btn-continue:hover:not(:disabled) {
    background: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 32, 44, 0.3);
}

.btn-continue:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-back {
    padding: 10px 20px;
    background: transparent;
    color: #718096;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #f7fafc;
    color: #4a5568;
}

.step-navigation {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.step-navigation .btn-continue,
.step-navigation .submit-button {
    width: 100%;
    margin-top: 0;
    text-align: center;
}

.step-navigation .btn-back {
    order: 2;
}

/* ============================================
   CAMPOS DE ENDEREÇO OCULTOS
   ============================================ */
.address-fields-hidden {
    display: none;
    animation: slideDown 0.4s ease-out;
}

.address-fields-hidden.visible {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cep-field-wrapper {
    max-width: 300px;
}

/* ============================================
   RESUMO DO PEDIDO
   ============================================ */
.order-summary {
    background: white;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.order-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    cursor: pointer;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.order-summary-header:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}

.order-summary-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-summary-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.order-summary-total {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-total-value {
    font-size: 24px;
    font-weight: 800;
    color: #48bb78;
}

.toggle-arrow {
    font-size: 20px;
    transition: transform 0.3s;
    color: #4a5568;
}

.toggle-arrow.open {
    transform: rotate(180deg);
}

.order-summary-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.order-summary-content.open {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.order-summary-inner {
    padding: 35px;
}

/* ============================================
   TÍTULOS DE SEÇÃO
   ============================================ */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 15px;
    color: #1a202c;
    padding-bottom: 12px;
    border-bottom: 3px solid #1a202c;
    text-align: center;
    display: block;
}

.section-title:first-of-type {
    margin-top: 0;
}

/* ============================================
   GRID DE FORMULÁRIO
   ============================================ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a5568;
    display: block;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select,
.form-group textarea,
.checkout-form input:not([type="radio"]):not([type="checkbox"]),
.checkout-form textarea {
    display: block !important;
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #2d3748 !important;
    -webkit-text-fill-color: #2d3748 !important;
    background-color: #f9fafb !important;
    transition: all 0.3s;
    opacity: 1 !important;
    visibility: visible !important;
    /* Prevenir zoom no iOS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
    background-color: white !important;
}

.form-group input::placeholder,
.checkout-form input::placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

/* Reset completo do select para garantir visibilidade */
.form-group select,
.checkout-form select,
select#billing_state {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 14px 40px 14px 18px !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #2d3748 !important;
    -webkit-text-fill-color: #2d3748 !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    vertical-align: middle !important;
    background-color: #f9fafb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
    overflow: visible !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.form-group select:focus,
.checkout-form select:focus,
select#billing_state:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
    background-color: white !important;
    outline: none !important;
}

.form-group select option,
.checkout-form select option,
select#billing_state option {
    color: #2d3748 !important;
    background-color: white !important;
    padding: 10px !important;
}

/* Status do CEP */
.cep-status {
    display: block;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
    min-height: 18px;
}

/* Campo Número com S/N */
.number-field-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.number-field-wrapper input[type="text"] {
    flex: 1;
}

.sn-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #718096 !important;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 0 !important;
}

.sn-checkbox input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    accent-color: #667eea;
}


/* ============================================
   LISTA DE PRODUTOS
   ============================================ */
.product-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.product-item:last-child {
    border-bottom: none;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #f7fafc;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 15px;
}

.product-meta {
    font-size: 14px;
    color: #718096;
}

.product-quantity {
    background: #1a202c;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.my-checkout-qty-control {
    display: inline-grid;
    grid-template-columns: 28px 28px 28px;
    width: 86px;
    height: 30px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin-top: 6px;
    box-sizing: border-box;
}

.my-checkout-qty-btn {
    width: 28px;
    height: 28px;
    border: 0;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-sizing: border-box;
}

.my-checkout-qty-btn:hover {
    background: #fafafa;
}

.my-checkout-qty-input,
.my-checkout-qty-value {
    width: 28px;
    height: 28px;
    border: 0 !important;
    border-left: 1px solid #e1e1e1 !important;
    border-right: 1px solid #e1e1e1 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #fff;
    box-shadow: none !important;
    box-sizing: border-box;
}

.my-checkout-qty-value {
    display: grid;
    place-items: center;
    line-height: 28px;
    user-select: none;
}

.my-checkout-qty-input::-webkit-outer-spin-button,
.my-checkout-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.my-checkout-qty-input[type="number"] {
    -moz-appearance: textfield;
}

.my-checkout-qty-updating {
    opacity: .55;
    pointer-events: none;
}

.product-price {
    font-weight: 700;
    color: #1a202c;
    font-size: 16px;
    white-space: nowrap;
}

/* ============================================
   TABELA DE TOTAIS
   ============================================ */
.totals-table {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    color: #4a5568;
}

.totals-row.total {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    padding-top: 20px;
    border-top: 3px solid #667eea;
    margin-top: 15px;
}

/* ============================================
   FORMULÁRIO DE CUPOM
   ============================================ */
.coupon-form {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.coupon-form input {
    flex: 1;
    padding: 14px 18px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #2d3748 !important;
    -webkit-text-fill-color: #2d3748 !important;
    background-color: #f9fafb !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.coupon-form input::placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

.coupon-form input:focus {
    outline: none !important;
    border-color: #48bb78 !important;
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.15) !important;
    background-color: white !important;
}

.coupon-form button {
    padding: 4px 24px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap;
}

.coupon-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.applied-coupon {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border: 2px solid #48bb78;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #22543d;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   MÉTODOS DE ENVIO E PAGAMENTO
   ============================================ */
.shipping-methods,
.payment-methods {
    margin-bottom: 20px;
}

/* Wrapper das opções de pagamento */
.payment-option-wrapper {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    background: white;
}

.payment-option-wrapper:hover {
    border-color: #48bb78;
}

.payment-option-wrapper.selected,
.payment-option-wrapper:has(input:checked) {
    border-color: #48bb78;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.25);
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
}

/* Label de pagamento */
.payment-methods .method-option {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    border: none;
    margin-bottom: 0;
    gap: 12px;
}

.payment-option-wrapper:not(.selected) .method-option:hover {
    background: rgba(72, 187, 120, 0.05);
}

.payment-option-wrapper.selected .method-option {
    background: transparent;
}

.payment-methods .method-option input[type="radio"] {
    width: 22px !important;
    height: 22px;
    cursor: pointer;
    accent-color: #48bb78;
    flex-shrink: 0;
    margin: 0;
}

/* Ícone SVG de pagamento */
.payment-icon-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #4a5568;
}

/* Ícone do PIX - imagem */
.pix-icon-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Ícone do cartão muda de cor quando selecionado */
.payment-option-wrapper.selected .payment-icon-svg:not(.pix-icon),
.payment-option-wrapper:has(input:checked) .payment-icon-svg:not(.pix-icon) {
    color: #48bb78;
}

/* Label do método */
.payment-methods .method-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    flex: 1;
}

/* Badge de desconto */
.discount-badge {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Detalhes do PIX */
.payment-details.pix-details {
    display: none;
    padding: 24px;
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    border-top: 1px solid #c6f6d5;
}

.payment-option-wrapper:has(input:checked) .pix-details,
.payment-option-wrapper.selected .pix-details {
    display: block;
}

.payment-info-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 16px;
    margin-bottom: 10px;
}

.payment-info-text {
    color: #718096;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

.pix-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.pix-value strong {
    color: #48bb78;
    font-size: 18px;
    font-weight: 700;
}

/* Campos do Cartão */
.payment-fields.card-fields {
    display: none;
    padding: 24px;
    background: #f9fafb;
    border-top: 1px solid #e2e8f0;
}

/* Card Visual Preview */
.card-visual-preview {
    margin-bottom: 20px;
}

.card-visual {
    background: linear-gradient(135deg, #1a5276 0%, #2e86c1 40%, #1abc9c 100%);
    border-radius: 14px;
    padding: 24px;
    color: white;
    aspect-ratio: 1.586 / 1;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.card-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.card-chip {
    width: 45px;
    height: 34px;
    background: linear-gradient(135deg, #f0d78c 0%, #e8c95a 50%, #d4a843 100%);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
}

.card-number-display {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    opacity: 0.9;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-label-small {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 3px;
}

.card-value-display {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-option-wrapper:has(input:checked) .card-fields,
.payment-option-wrapper.selected .card-fields {
    display: block;
}

.card-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card-form-group {
    display: flex;
    flex-direction: column;
}

.card-form-group.full {
    grid-column: 1 / -1;
}

.card-form-group.half {
    grid-column: span 1;
}

.card-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.card-form-group input {
    padding: 14px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background: white !important;
    color: #2d3748 !important;
    transition: all 0.3s;
}

.card-form-group input:focus {
    border-color: #48bb78 !important;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.15) !important;
    outline: none !important;
}

.card-form-group select {
    padding: 14px 40px 14px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background: white !important;
    color: #2d3748 !important;
    cursor: pointer;
    transition: all 0.3s;
}

.card-form-group select:focus {
    border-color: #48bb78 !important;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.15) !important;
    outline: none !important;
}

.card-form-group input::placeholder {
    color: #a0aec0 !important;
}

/* Opções de frete - novo design */
.shipping-option {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    gap: 15px;
}

.shipping-option:hover {
    border-color: #667eea;
}

.shipping-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #ebf4ff 0%, #e0e7ff 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.shipping-option input[type="radio"] {
    width: 22px !important;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
    margin: 0;
    flex-shrink: 0;
}

.shipping-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shipping-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}

.shipping-time {
    font-size: 14px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipping-time img {
    width: 20px;
    height: 20px;
}

.full-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a202c;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.shipping-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    white-space: nowrap;
}

.shipping-price.free {
    color: #48bb78;
}

/* Shipping methods antigo (manter compatibilidade) */
.shipping-methods .method-option {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s;
    gap: 15px;
}

.shipping-methods .method-option:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.shipping-methods .method-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #ebf4ff 0%, #e0e7ff 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.shipping-methods .method-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    margin: 0;
}

.method-label {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
}

.method-price {
    font-weight: 700;
    color: #667eea;
    font-size: 16px;
}

/* ============================================
   CAMPOS DE PAGAMENTO
   ============================================ */
.payment-fields {
    display: none;
    padding: 25px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    margin-top: 12px;
    border: 2px solid #e2e8f0;
}

.payment-fields.active {
    display: block;
}

/* ============================================
   TERMOS E CONDIÇÕES
   ============================================ */
.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #e2e8f0;
}

.terms-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.terms-checkbox label {
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
}

.terms-checkbox a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* ============================================
   BOTÃO FINALIZAR
   ============================================ */
.submit-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    display: block;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(72, 187, 120, 0.5);
}

.submit-button:active {
    transform: translateY(-1px);
}

/* ============================================
   CARRINHO VAZIO
   ============================================ */
.empty-cart {
    text-align: center;
    padding: 80px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.empty-cart h2 {
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 28px;
}

.empty-cart p {
    color: #718096;
    font-size: 16px;
    margin-bottom: 25px;
}

.empty-cart a {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.empty-cart a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

/* ============================================
   MENSAGENS DO WOOCOMMERCE
   ============================================ */
.woocommerce-error,
.woocommerce-message {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce-error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #742a2a;
    border-left: 5px solid #fc8181;
}

.woocommerce-message {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    border-left: 5px solid #48bb78;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1200px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .order-sidebar {
        order: -1;
        position: static;
    }
    
    .order-summary-header {
        padding: 20px 25px;
    }
    
    .order-summary-inner {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .custom-checkout-wrapper {
        padding: 15px;
    }
    
    .checkout-header {
        padding: 20px 15px;
        margin-bottom: 0;
    }
    
    .checkout-header h1 {
        font-size: 28px;
    }
    
    .checkout-steps-container {
        padding: 20px 15px;
    }
    
    .checkout-steps {
        gap: 0;
    }
    
    .checkout-steps .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .checkout-steps .step-label {
        font-size: 10px;
    }
    
    .checkout-steps .step-line {
        min-width: 20px;
        max-width: 40px;
        margin: 0 6px;
        margin-bottom: 24px;
    }
    
    .checkout-form {
        padding: 25px 20px;
    }
    
    .order-summary-header {
        padding: 18px 20px;
    }
    
    .order-summary-inner {
        padding: 20px;
    }
    
    .order-summary-title h2 {
        font-size: 16px;
    }
    
    .order-total-value {
        font-size: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .form-grid .form-group.full-width {
        grid-column: 1 / -1;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 14px !important;
        font-size: 16px !important;
    }
    
    .coupon-form {
        flex-direction: column;
    }
    
    .step-navigation {
        gap: 12px;
    }
    
    .cep-field-wrapper {
        max-width: 100%;
    }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.checkout-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.loading-content {
    position: relative;
    text-align: center;
    padding: 40px;
}

.loading-warning {
    color: #fbbf24;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loading-spinner {
    margin: 0 auto 25px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #48bb78;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   MODAL PIX
   ============================================ */
.pix-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pix-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.pix-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 360px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Cabeçalho */
.pix-modal-header {
    padding: 14px 20px 12px;
    border-bottom: 1px solid #e8e8e8;
}

.pix-modal-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pix-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}

.pix-timer-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
}

.pix-status {
    text-align: center;
}

.pix-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pix-status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #eab308;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Corpo */
.pix-modal-body {
    padding: 14px 20px 20px;
}

/* QR Code */
.pix-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

#pix-qrcode {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
    line-height: 0;
}

#pix-qrcode canvas,
#pix-qrcode img {
    display: block;
    border-radius: 4px;
    width: 168px !important;
    height: 168px !important;
}

.pix-qr-hint {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Separador */
.pix-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #aaa;
    font-size: 12px;
}

.pix-divider::before,
.pix-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

/* Valor */
.pix-value-display {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 14px;
    font-weight: 500;
}

.pix-value-display strong {
    color: #16a34a;
    font-size: 20px;
    font-weight: 700;
}

/* Código copia e cola */
.pix-code-container {
    margin-bottom: 16px;
}

.pix-code-box {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.pix-code-box input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 11px;
    font-family: monospace;
    color: #666;
    outline: none;
    text-overflow: ellipsis;
    box-shadow: none !important;
}

.btn-copy-pix {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-copy-pix:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.btn-copy-pix.copied {
    background: #166534;
}

/* Já paguei */
.btn-ja-paguei {
    display: block;
    text-align: center;
    padding: 11px 24px;
    margin: 12px 0;
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #374151;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.btn-ja-paguei:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #111827;
}

/* Instruções */
.pix-instructions {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 4px;
}

.pix-instructions-title {
    font-size: 13px;
    font-weight: 700;
    color: #166534;
    margin: 0 0 8px;
}

.pix-instructions ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: pix-step;
}

.pix-instructions li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
    color: #374151;
    counter-increment: pix-step;
    line-height: 1.4;
}

.pix-instructions li::before {
    content: counter(pix-step);
    min-width: 22px;
    height: 22px;
    background: #16a34a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Status confirmado */
.pix-status-badge.confirmado {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

.pix-status-badge.confirmado::before {
    background: #16a34a !important;
    animation: none !important;
}

/* Mobile */
@media (max-width: 480px) {
    .pix-modal { padding: 0; align-items: flex-end; }
    .pix-modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }
}

/* Animações confirmação */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    50%  { transform: scale(1.1); }
    to   { transform: scale(1); opacity: 1; }
}

.loading-spinner-small {
    width: 28px; height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   POPUP FALLBACK PIX
   ============================================ */
.pix-fallback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pix-fallback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.pix-fallback-content {
    position: relative;
    background: white;
    border-radius: 18px;
    max-width: 420px;
    width: 100%;
    padding: 36px 30px 30px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

.pix-fallback-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.pix-fallback-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 15px;
}

.pix-fallback-content p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 25px;
}

.pix-fallback-content p strong {
    color: #48bb78;
}

.pix-fallback-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-pagar-pix {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #22c55e;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn-pagar-pix:hover {
    transform: translateY(-2px);
    background: #f8fffb;
    border-color: #16a34a;
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.24);
}

.btn-pagar-pix:focus {
    outline: 3px solid rgba(34, 197, 94, 0.22);
    outline-offset: 2px;
}

.btn-pagar-pix img {
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 8px;
    background: #ecfdf5;
    flex: 0 0 auto;
}

.btn-tentar-novamente {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #718096;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-tentar-novamente:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #4a5568;
}

/* ============================================
   BADGE DE NÚMERO NA SEÇÃO (ambos layouts)
   ============================================ */
.section-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
    line-height: 1;
}

/* ============================================
   LAYOUT 3 ETAPAS (three-columns) - Accordion Vertical
   ============================================ */
.layout-three-columns .checkout-header {
    margin-bottom: 25px;
}

/* Container: formulário + sidebar lado a lado */
.layout-three-columns .checkout-container {
    grid-template-columns: 1fr 380px;
    gap: 25px;
    align-items: start;
}

/* Form empilha os cards verticalmente */
.layout-three-columns .checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* Cada etapa é um card separado */
.layout-three-columns .checkout-step-content {
    display: block !important;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: none;
    margin-bottom: 16px;
    border: 2px solid #e2e8f0;
}

/* Card ativo (etapa atual expandida) */
.layout-three-columns .checkout-step-content:not(.tc-locked):not(.tc-collapsed) {
    border-color: #e2e8f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Card bloqueado (etapa futura) */
.layout-three-columns .checkout-step-content.tc-locked {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(20%);
    padding: 22px 30px;
}

.layout-three-columns .checkout-step-content.tc-locked .step-expanded-content {
    display: none;
}

/* Card colapsado (etapa concluída) */
.layout-three-columns .checkout-step-content.tc-collapsed {
    padding: 22px 30px;
    border-color: #c6f6d5;
    background: #fcfffc;
}

/* Section title no modo accordion */
.layout-three-columns .section-title {
    font-size: 20px;
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Quando colapsado ou travado, título sem margem */
.layout-three-columns .tc-collapsed .section-title,
.layout-three-columns .tc-locked .section-title {
    margin-bottom: 0;
}

/* Labels em uppercase */
.layout-three-columns .form-group label,
.layout-three-columns .card-form-group label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #718096;
}

/* Botões */
.layout-three-columns .btn-continue {
    margin-top: 20px;
    padding: 16px 24px;
    font-size: 15px;
    background: #48bb78;
    border-radius: 10px;
}

.layout-three-columns .btn-continue:hover:not(:disabled) {
    background: #38a169;
}

.layout-three-columns .step-navigation {
    margin-top: 20px;
}

.layout-three-columns .step-navigation .btn-back {
    display: none;
}

/* CEP field */
.layout-three-columns .cep-field-wrapper {
    max-width: 100%;
}

/* Sidebar sticky */
.layout-three-columns .order-sidebar {
    position: sticky;
    top: 20px;
}

/* Indicador de etapas oculto (badges nos títulos fazem o papel) */
.layout-three-columns .checkout-steps-container {
    display: none;
}

/* Esconder frete do formulário de endereço no modo accordion
   (frete aparece apenas no #confirmed-address) */
.layout-three-columns .shipping-section-multistep {
    display: none !important;
}

/* Checkmark posicionado no canto superior direito do card */
.layout-three-columns .step-completed-check {
    position: absolute;
    top: 18px;
    right: 22px;
}

/* Card precisa de position relative para o check absoluto */
.layout-three-columns .checkout-step-content {
    position: relative;
}

/* Submit button */
.layout-three-columns .submit-button {
    font-size: 16px;
    padding: 18px;
}

/* ============================================
   STEP COLLAPSED SUMMARY
   ============================================ */
.step-collapsed-summary {
    animation: fadeInStep 0.3s ease;
}

.collapsed-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.collapsed-info strong {
    font-size: 15px;
    color: #2d3748;
    font-weight: 600;
}

.collapsed-info span {
    font-size: 14px;
    color: #718096;
}

/* Check de conclusão - canto superior direito */
.step-completed-check {
    color: #48bb78;
    font-size: 22px;
    font-weight: 700;
    display: none;
}

/* Endereço colapsado */
.collapsed-address-card {
    animation: fadeInStep 0.3s ease;
}

.collapsed-address-label {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Frete selecionado no resumo colapsado */
.collapsed-shipping-info {
    margin-top: 10px;
    font-size: 14px;
    color: #4a5568;
}

.collapsed-shipping-name {
    font-weight: 700;
    color: #1a202c;
}

.collapsed-shipping-price {
    font-weight: 600;
    color: #48bb78;
}

.collapsed-shipping-time {
    color: #718096;
    font-size: 13px;
}

/* Shipping section title in accordion */
.layout-three-columns #shipping-section .section-title {
    font-size: 15px;
    margin-top: 10px;
}

/* ============================================
   CARD DE ENDEREÇO CONFIRMADO
   ============================================ */
.confirmed-address-card {
    animation: fadeInStep 0.4s ease-out;
}

.confirmed-address-label,
.confirmed-shipping-label {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 12px;
    font-weight: 500;
}

.confirmed-address-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.confirmed-address-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.confirmed-address-dot {
    color: #667eea;
    font-size: 14px;
    margin-top: 2px;
}

.confirmed-address-info strong {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    display: block;
    margin-bottom: 4px;
}

.confirmed-address-sub {
    font-size: 13px;
    color: #718096;
    display: block;
}

.btn-edit-address {
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-edit-address:hover {
    color: #667eea;
    background: #ebf4ff;
}

/* Opções de frete no card confirmado */
.confirmed-shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.confirmed-shipping-option:hover {
    border-color: #667eea;
}

.confirmed-shipping-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #ebf4ff 0%, #e0e7ff 100%);
}

.confirmed-shipping-dot {
    color: #667eea;
    font-size: 12px;
}

.confirmed-shipping-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a202c;
    flex: 1;
}

.confirmed-shipping-price {
    font-weight: 700;
    font-size: 15px;
    color: #1a202c;
}

.confirmed-shipping-price.free {
    color: #48bb78;
}

.confirmed-shipping-time {
    font-size: 13px;
    color: #718096;
}

/* ============================================
   LAYOUT 3 ETAPAS - RESPONSIVO
   ============================================ */

/* Tablet e abaixo: sidebar vai para cima */
@media (max-width: 1200px) {
    .layout-three-columns .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .layout-three-columns .order-sidebar {
        order: -1;
        position: static;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .layout-three-columns .checkout-step-content {
        padding: 20px;
        margin-bottom: 12px;
    }
    
    .layout-three-columns .tc-collapsed,
    .layout-three-columns .tc-locked {
        padding: 16px 20px;
    }
    
    .confirmed-address-box {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ============================================================
   OLLIE STYLE LAYOUT
   ============================================================ */

/* Reset de body quando o layout ollie está ativo */
.ollie-checkout-wrapper ~ * body,
body:has(.ollie-checkout-wrapper) {
    background: #f5f5f5 !important;
}

.ollie-checkout-wrapper {
    background: #f5f5f5;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Container principal: dois painéis */
.ollie-body {
    display: grid;
    grid-template-columns: 1fr 380px;
    max-width: 1080px;
    margin: 0 auto;
    min-height: 100vh;
    align-items: start;
}

/* ---- COLUNA ESQUERDA (Formulário) ---- */
.ollie-form-col {
    padding: 40px 48px 100px 40px;
    background: #fff;
    min-height: 100vh;
}

/* ---- COLUNA DIREITA (Resumo) ---- */
.ollie-summary-col {
    background: #f5f5f5;
    border-left: 1px solid #e0e0e0;
    padding: 24px 32px 40px;
    position: sticky;
    top: 0;
    min-height: 100vh;
}

/* Toggle do resumo (oculto no desktop) */
.ollie-summary-toggle {
    display: none;
}

/* Produto no resumo */
.ollie-product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.ollie-product-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
}

.ollie-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ollie-product-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #666;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f5f5f5;
}

.ollie-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ollie-product-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
    word-break: break-word;
}

.ollie-product-variant {
    font-size: 12px;
    color: #888;
    display: block;
}

.ollie-product-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.ollie-product-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.ollie-remove-item {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #bbb;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.ollie-remove-item:hover {
    color: #e00000;
}

.ollie-product-row.ollie-removing {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* Cupom */
.ollie-coupon-form {
    display: flex;
    gap: 10px;
    margin: 18px 0 14px;
    align-items: stretch;
}

.ollie-coupon-input {
    flex: 1;
    height: 48px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ollie-coupon-input:focus {
    border-color: #999;
    box-shadow: none;
}

.ollie-coupon-btn {
    min-height: 48px;
    padding: 0 18px;
    background: #fff;
    color: #333;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s;
    white-space: nowrap;
}

.ollie-coupon-btn:hover {
    background: #f0f0f0;
}

.ollie-applied-coupon {
    font-size: 13px;
    color: #2f855a;
    margin-bottom: 10px;
}

/* Cupons disponíveis */
.ollie-available-coupons {
    margin: 8px 0 14px;
}

.ollie-coupons-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px dashed #bbb;
    border-radius: 5px;
    padding: 8px 14px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}

.ollie-coupons-toggle:hover {
    border-color: #888;
    color: #222;
}

.ollie-coupons-arrow {
    margin-left: auto;
    transition: transform 0.2s;
}

.ollie-coupons-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ollie-coupon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #2f855a;
    border-radius: 5px;
    padding: 10px 12px;
    gap: 12px;
}

.ollie-coupon-card-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ollie-coupon-card-code {
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.5px;
}

.ollie-coupon-card-desc {
    font-size: 12px;
    color: #666;
}

.ollie-coupon-card-apply {
    background: #2f855a;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ollie-coupon-card-apply:hover {
    background: #276749;
}

/* Totais — agora na coluna do formulário */
.ollie-totals {
    margin-top: 28px;
    border-top: 2px solid #e8e8e8;
    border-bottom: 2px solid #e8e8e8;
    padding: 16px 0 20px;
    margin-bottom: 20px;
}

.ollie-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.ollie-pix-discount-value {
    color: #38a169;
    font-weight: 600;
}

.ollie-pix-discount-row span:first-child {
    color: #38a169;
}

.ollie-grand-total {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.ollie-grand-total small {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-right: 4px;
}

/* ---- TÍTULOS DE SEÇÃO ---- */
.ollie-section-title {
    font-size: 22px;
    font-weight: 400;
    color: #333;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    text-align: left;
}

/* ---- CAMPOS ---- */
.ollie-field-group {
    margin-bottom: 10px;
    position: relative;
}

.ollie-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.ollie-input {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    color: #333 !important;
    background: #fff !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.ollie-input::placeholder {
    color: #aaa !important;
}

.ollie-input:focus {
    border-color: #999 !important;
    box-shadow: none !important;
}

.ollie-input-error {
    border-color: #e00000 !important;
    background-color: #fff8f8 !important;
}

.ollie-input-error:focus {
    border-color: #e00000 !important;
    box-shadow: 0 0 0 3px rgba(224,0,0,0.08) !important;
}

.ollie-cep-error {
    display: flex !important;
    align-items: center;
    gap: 4px;
    color: #e00000 !important;
    font-weight: 500;
}

.ollie-cep-error::before {
    content: '⚠';
    font-size: 11px;
}

.ollie-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px !important;
    padding-right: 36px !important;
    cursor: pointer;
}

/* Linha com dois campos lado a lado */
.ollie-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ollie-half {
    margin-bottom: 0;
}

/* Campos de endereço ocultos até CEP ser preenchido */
.ollie-address-hidden {
    display: none;
}

.ollie-cep-status {
    display: block;
    font-size: 12px;
    color: #e00000;
    min-height: 16px;
    margin-top: 4px;
}

/* Checkbox newsletter */
.ollie-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    margin-bottom: 6px;
}

.ollie-checkbox-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #444;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 !important;
    margin: 0 !important;
}

.ollie-checkbox-label span {
    color: #111;
    font-size: 13px;
    font-weight: 400;
}

/* ---- MÉTODOS DE FRETE ---- */
.ollie-shipping-methods {
    margin-bottom: 8px;
}

.ollie-shipping-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fff;
}

.ollie-shipping-option.selected {
    border-color: #e00000;
    background: #fff;
}

.ollie-shipping-option:hover {
    border-color: #aaa;
}

.ollie-shipping-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ollie-shipping-option input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #e00000;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.ollie-shipping-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ollie-shipping-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ollie-shipping-time {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.ollie-shipping-date {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.ollie-shipping-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ollie-shipping-price.free {
    color: #2f855a;
}

/* ---- MÉTODOS DE PAGAMENTO ---- */
.ollie-payment-subtitle {
    font-size: 13px;
    color: #888;
    margin: -8px 0 12px;
}

.ollie-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.ollie-payment-option {
    display: block;
    cursor: pointer;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    transition: background 0.2s, border-color 0.2s;
}

.ollie-payment-option.selected {
    background: #fafafa;
    border-color: #b0b0b0;
}

.ollie-payment-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.ollie-payment-option input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #e00000;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.ollie-payment-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.ollie-payment-discount-inline {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: #169b5f;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ollie-pix-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.ollie-card-flags {
    display: flex;
    gap: 4px;
    align-items: center;
}

.ollie-card-flags img {
    width: 28px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.ollie-card-flags img.is-muted {
    opacity: 0.25;
    filter: grayscale(1);
}

.ollie-card-flags img.is-active {
    opacity: 1;
    transform: translateY(-1px);
    filter: none;
}

.ollie-payment-detail {
    padding: 0 16px 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    text-align: center;
}

.ollie-payment-detail p {
    margin: 0 0 4px;
}

.ollie-payment-secure {
    font-size: 12px;
    color: #888;
    font-style: normal;
    font-weight: 400;
    margin-top: 6px !important;
}

/* Preview do cartão */
.ollie-card-visual {
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(135deg, #09090b 0%, #1f2937 58%, #111827 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    max-width: 300px;
    margin: 0 auto 16px;
    aspect-ratio: 1.586 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.28);
}

.ollie-card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #f0d78c, #d4a843);
    border-radius: 5px;
}

.ollie-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ollie-card-brand-on-card {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.ollie-card-brand-on-card.has-brand {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.ollie-card-number {
    font-size: 16px;
    font-family: monospace;
    letter-spacing: 2px;
    opacity: 0.9;
}

.ollie-card-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.ollie-card-lbl {
    display: block;
    font-size: 9px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.ollie-card-fields {
    padding-top: 8px;
    font-style: normal;
    text-align: left;
}

.ollie-card-fields .ollie-field-group {
    margin-bottom: 10px;
}

/* ---- BOTÃO PAGAR ---- */
.ollie-pay-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: #e00000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 12px;
}

.ollie-pay-btn:hover {
    background: #c50000;
}

.ollie-secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 0;
}

/* ============================================================
   OLLIE STYLE - MOBILE (< 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Garantir que nada extrapola a tela */
    .ollie-checkout-wrapper,
    .ollie-body,
    .ollie-form-col,
    .ollie-summary-col,
    .ollie-summary-content,
    .ollie-summary-toggle {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Layout: coluna única */
    .ollie-body {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        grid-template-columns: none !important;
    }

    /* No mobile, o resumo vai para o topo */
    .ollie-summary-col {
        order: -1;
        position: static;
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 0;
        min-height: unset !important;
        width: 100% !important;
        background: #fff;
    }

    /* Toggle do resumo — visível apenas no mobile */
    .ollie-summary-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: #fff;
        cursor: pointer;
        user-select: none;
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
        box-sizing: border-box;
    }

    .ollie-summary-toggle-left {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #e00000;
        font-size: 14px;
        font-weight: 500;
    }

    .ollie-toggle-arrow {
        transition: transform 0.3s;
        color: #e00000;
    }

    .ollie-summary-toggle.open .ollie-toggle-arrow {
        transform: rotate(180deg);
    }

    .ollie-summary-toggle-total {
        font-size: 16px;
        font-weight: 700;
        color: #333;
    }

    /* Conteúdo do resumo: aberto por padrão no mobile */
    .ollie-summary-content {
        display: block;
        padding: 0 16px 16px;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .ollie-summary-content.ollie-summary-closed {
        display: none;
    }

    /* Produtos no resumo mobile */
    .ollie-product-row {
        padding: 10px 0;
    }

    /* Coupon no mobile */
    .ollie-coupon-form {
        margin-top: 14px;
    }

    /* Totais mobile */
    .ollie-totals {
        margin-top: 12px;
    }

    /* Formulário: sem min-height, padding menor */
    .ollie-form-col {
        padding: 20px 16px 120px;
        min-height: unset;
        background: #fff;
    }

    /* Títulos de seção menor */
    .ollie-section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* Linha de dois campos mantida, mas pode quebrar em tela muito pequena */
    .ollie-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* Botão PAGAR AGORA — normal no mobile, abaixo do pagamento */
    .ollie-pay-btn {
        position: static;
        width: 100%;
        border-radius: 5px;
        margin: 20px 0 8px;
        padding: 18px;
        font-size: 16px;
        box-shadow: none;
    }

    .ollie-secure-text {
        display: flex;
        margin-bottom: 32px;
    }

    /* Métodos de pagamento: texto menor */
    .ollie-payment-detail {
        font-size: 12px;
        text-align: left;
    }

    /* Preview do cartão — menor no mobile */
    .ollie-card-visual {
        max-width: 100%;
    }

    /* Flags dos cartões */
    .ollie-card-flags img {
        width: 24px;
        height: 17px;
    }

}

/* Telas muito pequenas (< 380px): campos lado a lado viram coluna única */
@media (max-width: 380px) {
    .ollie-row {
        grid-template-columns: 1fr;
    }
}
