/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* Payment Request Button Styling */
.express-checkout {
    width: 100%;
    display: none;
}

.express-checkout[style*="display: block"] {
    display: block !important;
}

.stripe-button-element {
    width: 100%;
}

.divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
    font-size: 13px;
    color: #999;
    display: block;
    clear: both;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Express Checkout Button (Fallback) */
.express-btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
}

.express-btn:hover {
    background-color: #0056b3;
}

.express-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Stripe Card Element Styling */
.stripe-card-box {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.stripe-card-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stripe-card-row {
    display: flex;
    gap: 10px;
}

.stripe-card-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stripe-field {
    width: 100%;
}

/* Payment form fields */
.StripeElement {
    box-sizing: border-box;
    height: 40px;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 1px 3px 0 #e6ebf1;
    -webkit-transition: box-shadow 150ms ease;
    transition: box-shadow 150ms ease;
    width: 100%;
    min-width: 0;
}

.StripeElement--focus {
    box-shadow: 0 1px 3px 0 #cfd7df;
    border-color: #80bdff;
}

.StripeElement--invalid {
    border-color: #fa755a;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .stripe-card-box {
        padding: 12px;
        margin-bottom: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .stripe-card-grid {
        gap: 8px;
    }

    .stripe-card-row-2 {
        gap: 8px;
    }

    .divider {
        margin: 12px 0;
        font-size: 12px;
        line-height: 1;
    }

    /* Ensure proper spacing for card fields on mobile */
    .StripeElement {
        height: 44px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Ensure payment button is full width */
    #pay-now-btn,
    .pay-now-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        margin-top: 10px;
    }

    /* Ensure express checkout element is visible */
    .express-checkout {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Stripe Payment Element on mobile */
    .StripeElement-container {
        width: 100%;
    }

    #stripe-card-element {
        width: 100%;
        min-height: 44px;
        display: block;
        box-sizing: border-box;
    }

    #stripe-card-element .StripeElement {
        width: 100%;
    }

    #stripe-card-element iframe,
    .stripe-card-box iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
}