:root { --gold: #ffb703; --glass: rgba(20, 20, 20, 0.85); }
body { background: #000; color: #fff; font-family: 'Montserrat', sans-serif; margin: 0; padding: 0; }

.checkout-container { max-width: 1000px; margin: 40px auto; padding: 0 15px; }
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 25px; }

/* AJUSTE DO EFEITO VIDRO - FECHADO NOS LIMITES */
.glass-card { 
    background: var(--glass); 
    backdrop-filter: blur(10px); 
    border: 1px solid #222; 
    padding: 20px; 
    border-radius: 12px; 
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    overflow: hidden; /* Garante que o conteúdo não vaze o arredondado */
}
.gold-border { border: 1px solid var(--gold); }

.step { background: var(--gold); color: #000; padding: 2px 8px; border-radius: 50%; font-weight: 900; margin-right: 8px; }
.input-row { display: flex; gap: 10px; margin-bottom: 5px; }

input { 
    width: 100%; padding: 12px; background: rgba(255,255,255,0.05); 
    border: 1px solid #333; color: #fff; border-radius: 6px; 
    margin-bottom: 12px; font-size: 0.95rem; box-sizing: border-box;
}
input:focus { border-color: var(--gold); outline: none; background: rgba(255,255,255,0.1); }

.btn-api { background: var(--gold); border: none; height: 45px; padding: 0 15px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.btn-pay { width: 100%; padding: 18px; background: #28a745; color: #fff; border: none; border-radius: 8px; font-weight: 900; cursor: pointer; font-size: 1.1rem; }

/* FRETE */
.shipping-box { 
    margin-top: 10px; padding: 12px; background: rgba(255,183,3,0.1); 
    border: 1px dashed var(--gold); border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center;
}

/* RESUMO */
.product-info { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.line { display: flex; justify-content: space-between; font-size: 0.9rem; color: #aaa; margin-bottom: 8px; }
.total { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: 900; color: var(--gold); border-top: 1px solid #333; padding-top: 15px; }
.seguranca { margin-top: 15px; display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: #888; }

/* TOAST NOTIFICAÇÃO */
.toast {
    position: fixed; bottom: -100px; left: 20px; background: #fff; color: #000;
    padding: 10px 15px; border-radius: 10px; z-index: 9999; transition: 0.5s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.toast.show { bottom: 20px; }
.toast-content { display: flex; align-items: center; gap: 12px; }
.toast-content img { width: 40px; height: 40px; }
.toast-text span { display: block; font-weight: 900; font-size: 0.85rem; }
.toast-text small { font-size: 0.75rem; color: #555; }

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .input-row { flex-direction: column; gap: 0; }
}
/* Garante que Select e Input sejam idênticos */
input, select { 
    width: 100%; 
    padding: 12px; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid #333; 
    color: #fff; 
    border-radius: 6px; 
    margin-bottom: 12px; 
    font-size: 0.95rem; 
    box-sizing: border-box; /* Importante para o preenchimento não empurrar a borda */
    appearance: none; /* Remove o estilo padrão do sistema no select */
    -webkit-appearance: none;
}

/* Adiciona uma setinha dourada no select já que removemos a padrão */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '▼';
    font-size: 10px;
    color: var(--gold);
    position: absolute;
    right: 15px;
    top: 18px;
    pointer-events: none;
}

select option {
    background: #151515; /* Cor de fundo das opções para não ficar branco */
    color: #fff;
}

/* Ajuste das linhas duplas para não quebrarem o layout */
.input-row { 
    display: flex; 
    gap: 10px; 
    width: 100%;
}

.input-row input {
    flex: 1; /* Faz cada campo ocupar metade da linha igualmente */
}
/* Padronização Total */
input, .select-field {
    width: 100%;
    height: 50px; /* Altura fixa para ambos */
    padding: 0 15px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    box-sizing: border-box; /* Impede que o padding quebre a largura */
}

/* Banner de Segurança */
.security-banner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed #444;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}
.security-banner img { max-width: 100%; filter: brightness(1.2); }
.security-banner p { font-size: 11px; color: #888; margin-top: 10px; }

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
}