/* 
   IRSE PAYMENTS - V1.0.0
   Design: Preto (#000) e Âmbar (#FFAE00)
*/

.irse-checkout-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #f4f1f8;
    border-radius: 0 0 10px 10px;
    /*box-shadow: 0 30px 60px rgba(0,0,0,0.12);*/
    font-family: 'Abel', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    box-sizing: border-box;
}

/* Navegação por Métodos */
.irse-methods-nav {
    display: flex;
    gap: 10px;
    padding: 25px 20px;
    background: #f4f1f8;
}

.irse-method-select-btn {
    flex: 1;
    background: #000000;
    border: none;
    border-radius: 4px;
    padding: 20px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Garante centralização vertical */
    text-align: center;      /* Garante centralização do texto */
    transition: all 0.3s ease;
    color: #ffffff;
}

.irse-gateway-icon {
    height: 30px; 
    width: auto;  
    max-width: 100%; 
    margin-bottom: 10px;
    fill: currentColor;
    display: block;
}

.irse-method-select-btn .method-name {
    font-weight: 800;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Abel', sans-serif; /* Fonte explícita */
}

.irse-method-select-btn:hover,
.irse-method-select-btn.active {
    background: #FFAE00;
    color: #000000;
    transform: translateY(-2px);
}

/* Formulário */
.irse-form-container { padding: 20px 30px 30px 30px; background: #f4f1f8; }

.irse-form-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.irse-form-title::before,
.irse-form-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #FFAE00;
    margin: 0 15px;
}

.irse-field { margin-bottom: 20px; }
.irse-field label {
    display: block; font-size: 0.9rem; font-weight: 800; 
    text-transform: uppercase; color: #000; margin-bottom: 8px;
    text-align: start;
}

/* INPUTS RESTAURADOS (BORDA COMPLETA) */
.irse-field input,
.irse-input-container { 
    width: 100% !important; 
    display: block;
    padding: 12px; 
    border: 1px solid #ddd; 
    background: #f4f1f8; 
    font-size: 1rem; 
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    height: 45px;
}

.irse-forms-container {
    width: 100%;
    box-sizing: border-box;
}

/* Centralização do PayPal */
.irse-paypal-main-container { 
    width: 100% !important; 
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    text-align: center;
}

.irse-paypal-hosted-fields-wrapper {
    width: 100% !important;
}

.irse-paypal-button-container-fallback {
    width: 100% !important;
    max-width: 500px;
    display: block !important;
    margin: 15px auto 0 !important;
    text-align: center;
}

/* Garante que o conteúdo interno do PayPal centralize */
.irse-paypal-button-container-fallback > div,
.irse-paypal-button-container-fallback iframe {
    margin: 0 auto !important;
    display: block !important;
}

.irse-field input:focus,
.irse-input-container.focused { /* Classe adicionada via JS do PayPal */
    outline: none; 
    border-color: #FFAE00; 
    background: #fff; 
    box-shadow: 0 0 0 2px rgba(255, 174, 0, 0.2);
}

/* Botão de Ação */
.irse-submit-btn {
    width: 100%; padding: 20px; background: #000; color: #fff; border: none;
    border-radius: 30px; font-size: 1rem; font-weight: 900; text-transform: uppercase;
    cursor: pointer; transition: 0.3s; margin-top: 10px;
}
.irse-submit-btn:hover { background: #FFAE00; color: #000; }

/* Sucesso */
.irse-success-wrapper { padding: 40px 20px; text-align: center; }
.irse-success-icon-circle {
    width: 100px; height: 100px; /* Slightly larger for logo */
    background: #fff; /* White background to show logo clearly */
    color: #000; 
    border: 3px solid #FFAE00; /* Amber border */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 25px;
    font-size: 35px;
    overflow: hidden; /* Clip image to circle */
    padding: 0;
}
.irse-success-title { font-size: 1.6rem; font-weight: 900; color: #000; text-transform: uppercase; }

.irse-btn-primary {
    display: inline-block; width: 100%; padding: 18px; background: #000; color: #fff;
    text-decoration: none; border-radius: 30px; font-weight: 800; text-transform: uppercase;
    transition: 0.3s; margin-bottom: 20px;
}
.irse-btn-primary:hover { background: #FFAE00; color: #000; }

.irse-copy-box {
    background: #f9f9f9; 
    border: 1px dashed #ccc; 
    padding: 15px; 
    border-radius: 4px;
    cursor: pointer; 
    text-align: left;
    transition: 0.2s;
}
.irse-copy-box:hover {
    border-color: #FFAE00;
    background: #fffbe6;
}
.irse-copy-box small { 
    color: #FFAE00; 
    font-weight: 800; 
    font-size: 0.65rem; 
    text-transform: uppercase; 
    display: block;        
    margin-bottom: 8px;    
}
.irse-copy-box code {
    font-family: monospace;
    color: #333;
    word-break: break-all; 
    font-size: 0.9rem;
    display: block;
}

/* TOAST NOTIFICATION */
#irse-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    color: #FFAE00;
    padding: 20px 40px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
    text-transform: uppercase;
    text-align: center;
    border: 2px solid #FFAE00;
}

@media (max-width: 600px) {
    .irse-paypal-button-container-fallback {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .irse-methods-nav { flex-direction: column; }
}

/* EXIT INTENT WARNING */
#irse-exit-warning {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Abel', sans-serif;
}
.irse-exit-content {
    background: #000;
    border: 3px solid #FFAE00;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 50px rgba(255, 174, 0, 0.3);
}
.irse-exit-content h3 {
    color: #FFAE00;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.irse-exit-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}
.irse-exit-btn {
    background: #FFAE00;
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}
.irse-exit-btn:hover {
    background: #fff;
    transform: scale(1.05);
}
