/* ==========================================================================
   OPEN PIX PAYMENT PAGE STYLES
   ========================================================================== */

body .casOpenPix_Content {
    max-width: 600px;
    padding: 60px 20px;
}

body .casOpenPix_HeaderContainer {
    text-align: center;
    margin-bottom: 30px;
}

body .casOpenPix_Title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

body .casOpenPix_Subtitle {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

/* SINGLE COLUMN CARD */
body .casOpenPix_PaymentCard {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* QUICK INFO SECTION (Valor e Plano) */
body .casOpenPix_QuickInfo {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body .casOpenPix_QuickItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body .casOpenPix_QuickLabel {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body .casOpenPix_QuickValue {
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
}

body .casOpenPix_QuickAmount {
    font-size: 22px;
    color: #2563eb;
}

/* QR CODE SECTION */
body .casOpenPix_QrSection {
    background: #f9fafb;
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #f3f4f6;
    transition: transform 0.3s ease;
}

body .casOpenPix_QrSection:hover {
    transform: scale(1.02);
}

body .casOpenPix_QrImage {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* COPY CODE COMPONENT */
body .casOpenPix_CopyCodeSection {
    width: 100%;
    margin-bottom: 30px;
}

body .casOpenPix_Label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body .casOpenPix_CopyInputWrapper {
    display: flex;
    gap: 8px;
    background: #f9fafb;
    padding: 6px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
}

body .casOpenPix_CopyInputWrapper:focus-within {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

body .casOpenPix_CopyInput {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    font-family: 'Courier New', monospace !important;
    outline: none !important;
    box-shadow: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 !important;
}

body .casOpenPix_CopyBtn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

body .casOpenPix_CopyBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
    filter: brightness(1.05);
}

/* DETAILS INFO (Email, Date, Status) */
body .casOpenPix_DetailsInfo {
    width: 100%;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

body .casOpenPix_DetailItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body .casOpenPix_DetailLabel {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

body .casOpenPix_DetailValue {
    font-size: 14px;
    color: #1e293b;
    font-weight: 700;
}

body .casOpenPix_StatusBadge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body .casOpenPix_StatusPending {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde68a;
}

body .casOpenPix_StatusPaid {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

body .casOpenPix_StatusCanceled {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

body .casOpenPix_StatusDefault {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* HELP BOX */
body .casOpenPix_HelpText {
    padding: 20px;
    background: #eff6ff;
    border-radius: 16px;
    border-left: 4px solid #3b82f6;
    width: 100%;
}

body .casOpenPix_HelpText p {
    margin: 0;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

body .casOpenPix_HelpText i {
    margin-top: 3px;
    font-size: 15px;
}

/* ERROR STATE */
body .casOpenPix_ErrorCard {
    background: #ffffff;
    border: 1px solid #fee2e2;
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

body .casOpenPix_ErrorIcon {
    width: 80px;
    height: 80px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

body .casOpenPix_ErrorTitle {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

body .casOpenPix_ErrorText {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 32px;
}

body .casOpenPix_ErrorActions {
    width: 100%;
}

body .casOpenPix_ErrorBtn {
    background: #111827;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

body .casOpenPix_ErrorBtn:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.2);
}

/* RESPONSIVENESS */
@media (max-width: 650px) {
    body .casOpenPix_Content {
        padding: 40px 15px;
    }

    body .casOpenPix_PaymentCard {
        padding: 30px 20px;
    }
}

@media (max-width: 500px) {
    body .casOpenPix_CopyInputWrapper {
        flex-direction: column;
        padding: 10px;
    }

    body .casOpenPix_CopyBtn {
        width: 100%;
    }

    body .casOpenPix_QuickItem, 
    body .casOpenPix_DetailItem {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
