/* --- ORIGIN REALMS INSPIRED DESIGN --- */

/* Modal Top Bar - Use style.css layout (space-between) */
.modal-top-bar {
    background: transparent;
    padding: 10px 20px;
}

.modal-highlight-box {
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    /* Rich Gold Gradient */
    border: 1px solid #e6a700;
    /* Solid Gold Border */
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin: 0 20px 20px 20px;
    /* Consistent margin with style.css */
    width: auto;
    /* Let it fill the container minus margins */
    color: #212121;
    /* Dark text for contrast */
    font-family: 'Rubik', sans-serif;
    flex-wrap: wrap; /* Prevent overflow on small screens */
}

@media (max-width: 768px) {
    .modal-highlight-box {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        margin: 0 10px 15px 10px;
    }
}

.kit-title-modal {
    color: #000;
    /* Black Title */
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: none;
}

.kit-subtitle-modal {
    color: #333;
    /* Dark Grey Subtitle */
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.origin-input {
    width: 100%;
    background: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.origin-input:focus {
    background: #000;
    border-color: transparent;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Coupon Section Styling */
.coupon-wrapper-styled {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.1);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    align-items: stretch;
}

.btn-apply-styled {
    background: #1a1a1a;
    color: #ffc107;
    border: 2px solid #1a1a1a;
    padding: 0 20px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 6px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-apply-styled:hover {
    background: #333;
    border-color: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-apply-styled:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-apply-styled:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Coupon Feedback Styles */
.coupon-feedback {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Rubik', sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease-out;
}

.coupon-feedback.success {
    display: flex;
    background: #27ae60;
    color: white;
    border: 1px solid #2ecc71;
}

.coupon-feedback.error {
    display: flex;
    background: #c0392b;
    color: white;
    border: 1px solid #e74c3c;
}

/* Icon styles for feedback (using pseudo-elements for simplicity) */
.coupon-feedback.success::before {
    content: '✓';
    font-weight: 900;
    font-size: 1.1em;
}

.coupon-feedback.error::before {
    content: '✕';
    font-weight: 900;
    font-size: 1.1em;
}

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

.origin-input::placeholder {
    color: #666;
    font-weight: 500;
}

.btn-buy-yellow {
    width: 100%;
    padding: 15px;
    background: #e67e22;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 0 #d35400;
    transition: all 0.1s;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-buy-yellow:hover {
    background: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #d35400;
}

.btn-buy-yellow:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #d35400;
}

.btn-buy-yellow:disabled {
    background: #7f8c8d;
    box-shadow: 0 4px 0 #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* --- CHECKOUT FOOTER (Pixel Perfect Restoration) --- */
.checkout-footer {
    background: #000;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    margin-top: auto;
    /* Empurra para o final do container */
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap; /* Prevent overflow */
    gap: 15px;
}

@media (max-width: 480px) {
    .checkout-footer {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .btn-buy-footer {
        width: 100%;
    }
}

.checkout-total-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-total-label {
    color: #888;
    font-family: 'Rubik', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-total-price {
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.btn-buy-footer {
    background: #333;
    /* Cinza escuro base */
    color: #aaa;
    font-family: 'Rubik', sans-serif;
    /* Imagem parece ser sans-serif clean, mas vou manter padrão do site ou Rubik */
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: not-allowed;
    text-transform: uppercase;
    transition: all 0.2s ease;
    min-width: 180px;
    text-align: center;
}

.btn-buy-footer:not(:disabled) {
    background: #e67e22;
    /* Laranja do tema */
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 0 #d35400;
}

.btn-buy-footer:not(:disabled):hover {
    background: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #d35400;
}

.btn-buy-footer:not(:disabled):active {
    transform: translateY(1px);
    box-shadow: 0 0 0 #d35400;
}

/* Ajuste no container do modal para acomodar o footer */
.modal-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
    /* Remove padding inferior padrão se houver */
    /* overflow: hidden; REMOVIDO para permitir scroll */
}

/* Scroll na área de conteúdo se necessário, footer fixo */
.comparison-section-container {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.help-text-section,
.modal-highlight-box {
    /* Não precisa mexer muito, o flex column do container já ajuda */
}

/* --- Help Section Styles --- */
.help-text-section {
    padding: 0 20px 20px 20px;
    margin-bottom: 10px;
}

.help-title {
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.help-desc {
    color: #ccc;
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
    margin: 0;
}


/* --- PIX Transparent Checkout Styles --- */


.pix-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.pix-title {
    color: #ffc107;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Press Start 2P', cursive;
}

.pix-qr-image {
    width: 250px;
    height: 250px;
    border: 4px solid #ffc107;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.pix-instructions {
    color: #ddd;
    font-size: 0.9rem;
    max-width: 80%;
    line-height: 1.4;
    font-family: 'Rubik', sans-serif;
}

.pix-copy-container {
    display: flex;
    width: 100%;
    max-width: 400px;
    gap: 10px;
    margin-top: 10px;
}

.pix-copy-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #ffc107;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    height: 40px;
    /* Fixed height for single line look */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pix-copy-btn {
    background: #ffc107;
    color: #1a1a1a;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rubik', sans-serif;
    text-transform: uppercase;
}

.pix-copy-btn:hover {
    background: #ffca28;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.pix-copy-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}