/**
 * Frontend Styles for EpaycoFedepapa Plugin
 */

/* Payment Form Container */
.epayco-payment-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.epayco-payment-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* Form Sections */
.epayco-form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.epayco-form-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* Form Fields */
.epayco-form-row {
    margin-bottom: 20px;
}

.epayco-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.epayco-form-group.half {
    flex: 1;
}

.epayco-form-columns {
    display: flex;
    gap: 15px;
}

.epayco-form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.epayco-form-label.required::after {
    content: " *";
    color: #d63638;
}

.epayco-form-input,
.epayco-form-select,
.epayco-form-textarea {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.epayco-form-input:focus,
.epayco-form-select:focus,
.epayco-form-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.2);
}

.epayco-form-input.error,
.epayco-form-select.error,
.epayco-form-textarea.error {
    border-color: #d63638;
    box-shadow: 0 0 5px rgba(214,54,56,0.2);
}

.epayco-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Field Descriptions */
.epayco-field-description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Error Messages */
.epayco-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #f5c2c7;
    margin: 15px 0;
    font-size: 14px;
}

.epayco-success {
    background: #d1e7dd;
    color: #0f5132;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #badbcc;
    margin: 15px 0;
    font-size: 14px;
}

/* Field Validation */
.epayco-field-error {
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Coupon Section */
.epayco-coupon-section {
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
}

.epayco-coupon-input-group {
    display: flex;
    gap: 10px;
    align-items: end;
}

.epayco-coupon-input {
    flex: 1;
}

.epayco-apply-coupon {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.epayco-apply-coupon:hover {
    background: #005a87;
}

.epayco-apply-coupon:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.epayco-coupon-applied {
    margin-top: 10px;
    padding: 10px;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 4px;
    color: #0f5132;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epayco-remove-coupon {
    background: none;
    border: none;
    color: #d63638;
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px;
}

/* Amount Summary */
.epayco-amount-summary {
    background: #fff;
    padding: 20px;
    border: 2px solid #0073aa;
    border-radius: 6px;
    margin: 25px 0;
}

.epayco-amount-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.epayco-amount-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.epayco-amount-label {
    color: #555;
}

.epayco-amount-value {
    color: #333;
    font-weight: 600;
}

.epayco-discount-row {
    color: #00a32a;
}

/* Submit Button */
.epayco-submit-button {
    width: 100%;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.epayco-submit-button:hover {
    background: linear-gradient(135deg, #005a87, #004267);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,115,170,0.3);
}

.epayco-submit-button:active {
    transform: translateY(0);
}

.epayco-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.epayco-submit-button.processing {
    background: #666;
    cursor: wait;
}

.epayco-submit-button.processing::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: epayco-button-spin 1s linear infinite;
}

@keyframes epayco-button-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Overlay */
.epayco-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.epayco-loading-overlay.active {
    display: flex;
}

.epayco-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: epayco-spin 1s linear infinite;
}

@keyframes epayco-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Security Features */
.epayco-security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
    color: #666;
    font-size: 13px;
}

.epayco-security-badge::before {
    content: "🔒";
    font-size: 16px;
}

/* Payment Methods */
.epayco-payment-methods {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.epayco-payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 80px;
}

.epayco-payment-method img {
    width: 40px;
    height: auto;
}

.epayco-payment-method span {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

/* Receipt Display */
.epayco-receipt {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.epayco-receipt-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.epayco-receipt-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #0073aa;
}

.epayco-receipt-subtitle {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
}

.epayco-receipt-details {
    margin-bottom: 25px;
}

.epayco-receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.epayco-receipt-row:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #0073aa;
}

.epayco-receipt-label {
    color: #555;
    font-weight: 600;
}

.epayco-receipt-value {
    color: #333;
}

.epayco-receipt-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .epayco-payment-form {
        margin: 10px;
        padding: 20px;
    }
    
    .epayco-form-columns {
        flex-direction: column;
        gap: 0;
    }
    
    .epayco-form-group.half {
        flex: none;
    }
    
    .epayco-payment-methods {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .epayco-coupon-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .epayco-apply-coupon {
        width: 100%;
    }
    
    .epayco-receipt {
        margin: 10px;
        padding: 20px;
    }
    
    .epayco-amount-row {
        font-size: 14px;
    }
    
    .epayco-amount-row:last-child {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .epayco-payment-form {
        padding: 15px;
    }
    
    .epayco-form-section {
        padding: 15px;
    }
    
    .epayco-payment-form h3 {
        font-size: 20px;
    }
    
    .epayco-submit-button {
        font-size: 16px;
        padding: 12px 25px;
    }
}

/* Print Styles for Receipt */
@media print {
    body * {
        visibility: hidden;
    }
    
    .epayco-receipt,
    .epayco-receipt * {
        visibility: visible;
    }
    
    .epayco-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 20px;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .epayco-receipt-header {
        border-bottom: 2px solid #000;
    }
    
    .epayco-receipt-row:last-child {
        border-top: 2px solid #000;
    }
}

/* Animation Utilities */
.epayco-fade-in {
    animation: epayco-fadeIn 0.3s ease-in;
}

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

.epayco-slide-down {
    animation: epayco-slideDown 0.3s ease-out;
}

@keyframes epayco-slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accessibility */
.epayco-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.epayco-payment-form *:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .epayco-payment-form {
        border: 2px solid #000;
    }
    
    .epayco-form-input,
    .epayco-form-select,
    .epayco-form-textarea {
        border: 2px solid #000;
    }
    
    .epayco-submit-button {
        background: #000;
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .epayco-submit-button,
    .epayco-form-input,
    .epayco-form-select,
    .epayco-form-textarea {
        transition: none;
    }
    
    .epayco-spinner {
        animation: none;
    }
    
    .epayco-fade-in,
    .epayco-slide-down {
        animation: none;
    }
}

/* RTL Support */
body.rtl .epayco-payment-form {
    direction: rtl;
}

body.rtl .epayco-form-section {
    border-left: none;
    border-right: 4px solid #0073aa;
}

body.rtl .epayco-coupon-applied {
    text-align: right;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .epayco-payment-form {
        background: #1e1e1e;
        border-color: #444;
        color: #fff;
    }
    
    .epayco-form-section {
        background: #2a2a2a;
        border-left-color: #0073aa;
    }
    
    .epayco-form-input,
    .epayco-form-select,
    .epayco-form-textarea {
        background: #2a2a2a;
        border-color: #444;
        color: #fff;
    }
    
    .epayco-form-input:focus,
    .epayco-form-select:focus,
    .epayco-form-textarea:focus {
        border-color: #0073aa;
    }
    
    .epayco-amount-summary {
        background: #2a2a2a;
        border-color: #0073aa;
        color: #fff;
    }
}


/* Payment Status Check Enhancements */
.pfepayco-check-status.pfepayco-loading {
    position: relative;
    color: transparent;
}

.pfepayco-check-status.pfepayco-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: pfepayco-spin 1s linear infinite;
}

@keyframes pfepayco-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.pfepayco-btn-success {
    background: #00a32a !important;
    border-color: #00a32a !important;
    color: white !important;
}

.pfepayco-btn-success:hover {
    background: #008a20 !important;
    border-color: #008a20 !important;
}

/* Message Notifications */
.pfepayco-message {
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    line-height: 1.4;
    animation: pfepayco-slide-in 0.3s ease-out;
}

@keyframes pfepayco-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pfepayco-message-success {
    background: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #00a32a;
}

.pfepayco-message-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #d63638;
}

.pfepayco-message-info {
    background: #cce5ff;
    color: #0066cc;
    border-left: 4px solid #0073aa;
}

.pfepayco-message-content {
    flex: 1;
    padding-right: 10px;
}

.pfepayco-message-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfepayco-message-close:hover {
    opacity: 1;
}

/* Coupon Success Message */
.pfepayco-coupon-success {
    background: #d1e7dd;
    color: #0f5132;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #badbcc;
    margin-top: 10px;
}

.pfepayco-coupon-success i {
    margin-right: 5px;
    color: #00a32a;
}

/* Enhanced Error Styling */
.pfepayco-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #f5c2c7;
    margin-top: 10px;
    font-size: 14px;
}

/* Status Badge Enhancements */
.pfepayco-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pfepayco-status-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.pfepayco-status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.pfepayco-status-failed,
.pfepayco-status-timeout {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c2c7;
}

.pfepayco-status-cancelled {
    background: #e2e3e5;
    color: #41464b;
    border: 1px solid #d3d6d8;
}

/* Responsive Design for Messages */
@media (max-width: 768px) {
    .pfepayco-message {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: auto;
        max-width: none;
    }
    
    .pfepayco-check-status.pfepayco-loading::after {
        width: 14px;
        height: 14px;
        border-width: 1px;
    }
}


/* Payment Button Styling - High Priority */
#pfepayco-continue-payment {
    background: #4F8A10 !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    z-index: 999 !important;
    position: relative !important;
    display: inline-block !important;
    text-decoration: none !important;
    width: auto !important;
    height: auto !important;
}

#pfepayco-continue-payment:hover {
    background: #3e6b0d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

#pfepayco-continue-payment:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.7 !important;
}

/* Payment Form Container */
#pfepayco-payment-interface {
    position: relative !important;
    z-index: 10 !important;
    clear: both !important;
    width: 100% !important;
}

#pfepayco-payment-form {
    position: relative !important;
    z-index: 10 !important;
}

/* Payment Images */
.pfepayco-payment-images {
    margin-top: 15px;
    text-align: center;
}

.pfepayco-payment-image-desktop,
.pfepayco-payment-image-mobile {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 4px;
}

/* Show desktop image by default, hide mobile */
.pfepayco-payment-image-desktop {
    display: block;
}

.pfepayco-payment-image-mobile {
    display: none;
}

/* On mobile screens, show mobile image and hide desktop */
@media (max-width: 768px) {
    .pfepayco-payment-image-desktop {
        display: none;
    }
    
    .pfepayco-payment-image-mobile {
        display: block;
    }
}

/* ========== QUANTITY SELECTOR STYLES ========== */
.pfepayco-quantity-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 2px solid #0073aa;
}

.pfepayco-quantity-section label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.pfepayco-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 200px;
    margin: 0 auto;
    border: 2px solid #0073aa;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.pfepayco-qty-btn {
    width: 50px;
    height: 50px;
    background: #0073aa;
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.pfepayco-qty-btn:hover {
    background: #005a87;
}

.pfepayco-qty-btn:active {
    background: #004267;
    transform: scale(0.95);
}

.pfepayco-qty-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#pfepayco-quantity {
    width: 100px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: none;
    background: white;
    color: #333;
    margin: 0;
    padding: 0;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

#pfepayco-quantity::-webkit-outer-spin-button,
#pfepayco-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

#pfepayco-quantity:focus {
    outline: none;
    background: #fffef0;
}

.pfepayco-quantity-note {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 12px;
    margin-bottom: 0;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .pfepayco-quantity-selector {
        max-width: 180px;
    }
    
    .pfepayco-qty-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    #pfepayco-quantity {
        width: 90px;
        height: 45px;
        font-size: 18px;
    }
    
    .pfepayco-quantity-section label {
        font-size: 14px;
    }
}

/* ========== CREDITS DISPLAY MESSAGE ========== */
.pfepayco-credits-message-wrapper {
    margin-bottom: 20px;
}

.pfepayco-credits-message {
    background: linear-gradient(135deg, #00a32a, #008a20);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 163, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pfepayco-credits-message::before {
    content: "✅";
    font-size: 20px;
}

.pfepayco-credits-count {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Buy More Credits Button */
.pfepayco-buy-more-credits-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #008a20;
    border: 2px solid white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pfepayco-buy-more-credits-btn:hover {
    background: white;
    color: #00a32a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pfepayco-buy-more-credits-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Credits Modal */
.pfepayco-credits-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
}

.pfepayco-credits-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
}

.pfepayco-credits-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 30px;
}

.pfepayco-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 1000002;
}

.pfepayco-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.pfepayco-modal-close:active {
    background: #e0e0e0;
}

/* Prevent body scroll when modal is open */
body.pfepayco-modal-open {
    overflow: hidden;
}

/* Modal Payment Interface Adjustments */
.pfepayco-credits-modal .pfepayco-payment-wrapper {
    margin: 0;
    padding: 0;
}

.pfepayco-credits-modal .pfepayco-payment-header h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .pfepayco-credits-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .pfepayco-modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .pfepayco-credits-message {
        font-size: 14px;
        padding: 12px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .pfepayco-credits-count {
        font-size: 20px;
    }
    
    .pfepayco-buy-more-credits-btn {
        font-size: 12px;
        padding: 6px 12px;
        margin-top: 8px;
    }
    
    .pfepayco-credits-modal-content {
        padding: 15px;
        width: 98%;
    }
}
