/* Pagar.me Modal Styles */

/* Modal Container */
.arm_pagarme_modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Modal Content */
.arm_pagarme_modal_content {
    background-color: #000000;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Modal Header */
.arm_pagarme_modal_content h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
}

/* Modal Description */
.arm_pagarme_modal_content p {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: #cccccc;
}

/* Nationality Buttons */
.arm_pagarme_nationality_btn {
    width: 100%;
    margin-top: 20px;
    text-shadow: 0 7px 4px #39070740;
    background: linear-gradient(180deg, #C32929, #670E0E);
    border: none;
    font-family: Luckiest Guy, cursive;
    font-weight: 400;
    font-size: 30px;
    padding: 20px 60px;
    border-radius: 900px;
    outline: 8px solid rgba(178, 34, 52, 0.3);
    box-shadow: none;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
}

.arm_pagarme_nationality_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(195, 41, 41, 0.4);
}

/* Checkout Container */
.arm_pagarme_checkout_container {
    margin-top: 20px;
}

/* External Checkout */
#arm_pagarme_external_checkout {
    display: none;
}

.arm_pagarme_checkout_info {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
}

.arm_pagarme_checkout_info > div:first-child {
    font-size: 24px;
    margin-bottom: 10px;
}

.arm_pagarme_checkout_info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.arm_pagarme_checkout_info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Transparent Form */
#arm_pagarme_transparent_form {
    display: none;
}

/* Plan Container */
.arm_pagarme_plan_container_tmp {
    display: none;
}

/* PIX QR Code Container */
#arm_pix_qrcode_container {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#arm_pix_qrcode_container h2 {
    margin: 0 0 20px 0;
    color: #333;
}

#arm_pix_qrcode_container p {
    margin: 0 0 20px 0;
    color: #666;
}

#arm_pix_qrcode_container img {
    max-width: 300px;
    margin: 0 auto 20px;
    display: block;
}

#arm_pix_qrcode_container > div {
    margin: 20px 0;
}

#arm_pix_qrcode_container > div p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #333;
}

#arm_pix_code {
    width: 100%;
    max-width: 500px;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    resize: none;
}

#arm_copy_pix_code {
    margin-top: 10px;
    padding: 12px 30px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

#arm_copy_pix_code:hover {
    background: #357abd;
}

/* Warning Messages */
.arm_invalid {
    color: #d9534f;
}

.arm_pagarme_not_support_plans {
    font-weight: bold;
}

/* Notice Styles */
.arm_pagarme_notice {
    margin-bottom: 10px;
}

.arm_pagarme_notice_list {
    margin-left: 30px;
}

/* Checkout Icon */
.arm_pagarme_checkout_icon {
    font-size: 24px;
    margin-bottom: 10px;
}

/* PIX Code Wrapper */
.arm_pix_code_wrapper {
    margin: 20px 0;
}

.arm_pix_code_label {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #333;
}

/* PIX Info */
.arm_pix_info {
    margin: 20px 0;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 4px;
    border-left: 4px solid #2196f3;
}

.arm_pix_info_title {
    margin: 0;
    font-size: 14px;
    color: #1976d2;
}

.arm_pix_info_text {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #555;
}

/* Payment Method Selector */
#arm_pagarme_payment_method_selector {
    display: none;
    margin: 20px 0 0 0;
}

/* Payment Tabs */
.arm_payment_tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.arm_payment_tab {
    flex: 1;
    padding: 18px 24px;
    text-align: center;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.arm_payment_tab.active {
    background: white;
    border-bottom: 3px solid #4a90e2;
}

.arm_payment_tab input[type="radio"] {
    display: none;
}

.arm_payment_tab > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.arm_payment_tab span {
    font-size: 24px;
}

.arm_payment_tab > div > div {
    text-align: left;
}

.arm_payment_tab_title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.arm_payment_tab_subtitle {
    font-size: 11px;
    color: #666;
}

/* Payment Forms Container */
#arm_payment_forms_container {
    margin: 0;
    padding: 25px;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* PIX Fields */
#arm_pix_fields {
    display: none;
}

.arm_pix_info_box {
    margin-bottom: 20px;
    padding: 12px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

.arm_pix_info_box p {
    margin: 0;
    font-size: 14px;
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arm_pix_info_box p span {
    font-size: 20px;
}

.arm_pix_info_box p:last-child {
    margin: 8px 0 0 28px;
    font-size: 13px;
    color: #555;
}

/* Card Fields */
#arm_pagarme_transparent_form_content {
    display: block;
}

.arm_card_info_box {
    margin-bottom: 20px;
    padding: 12px;
    background: #f0f4ff;
    border-left: 4px solid #4a90e2;
    border-radius: 4px;
}

.arm_card_info_box p {
    margin: 0;
    font-size: 14px;
    color: #2c5aa0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arm_card_info_box p span {
    font-size: 20px;
}

.arm_card_info_box p:last-child {
    margin: 8px 0 0 28px;
    font-size: 13px;
    color: #555;
}

/* Form Groups */
.arm_form_group {
    margin-bottom: 15px;
}

.arm_form_group:last-child {
    margin-bottom: 0;
}

.arm_form_group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.arm_form_group input.arm_form_input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.arm_form_group small {
    display: block;
    margin-top: 5px;
    color: #666;
}

/* Form Row (for side-by-side fields) */
.arm_form_row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.arm_form_group_flex {
    flex: 1;
}

/* PIX Messages */
.arm_pix_message {
    text-align: center;
    padding: 40px;
}

.arm_pix_message_icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.arm_pix_message_title {
    margin: 0 0 10px 0;
}

.arm_pix_success .arm_pix_message_title {
    color: #27ae60;
}

.arm_pix_expired .arm_pix_message_title {
    color: #e74c3c;
}

.arm_pix_message_text {
    color: #666;
    margin: 0 0 20px 0;
}

.arm_pix_reload_btn {
    padding: 12px 30px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.arm_pix_reload_btn:hover {
    background: #357abd;
}
