/**
 * JeelPay Checkout Styles
 */

/* --- Variables --- */
:root {
    --jeelpay-primary: #009E9B;
    --jeelpay-primary-hover: #008582;
    --jeelpay-white: #FFFFFF;
    --jeelpay-black: #000000;
    --jeelpay-gray-100: #f3f4f6;
    --jeelpay-gray-200: #e5e7eb;
    --jeelpay-gray-800: #1f2937;
}

/* --- Common Styles --- */
.wc_payment_method.payment_method_jeelpay,
.jeelpay-blocks-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Container Styles (Classic) --- */
.wc_payment_method.payment_method_jeelpay {
    background: var(--jeelpay-white);
    border: 1px solid var(--jeelpay-gray-200);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.wc_payment_method.payment_method_jeelpay:hover {
    border-color: var(--jeelpay-primary);
    box-shadow: 0 4px 12px rgba(0, 158, 155, 0.1);
}

.wc_payment_method.payment_method_jeelpay.payment_method_selected {
    border-color: var(--jeelpay-primary);
    background-color: rgba(0, 158, 155, 0.02);
}

/* --- Container Styles (Blocks) --- */
.jeelpay-blocks-content {
    padding: 24px;
    background: #fdfdfd;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    margin-top: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* --- Description Box --- */
.payment_method_jeelpay .jeelpay-description,
.jeelpay-blocks-content p {
    font-size: 14px;
    color: var(--jeelpay-gray-800);
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 500;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
}

/* --- Installment Widget (if used) --- */
.payment_method_jeelpay .jeelpay-installments {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 158, 155, 0.05) 0%, rgba(0, 158, 155, 0.1) 100%);
    border-radius: 8px;
    border: 1px solid rgba(0, 158, 155, 0.2);
}

.payment_method_jeelpay .jeelpay-installment {
    text-align: center;
    flex: 1;
    position: relative;
}

.payment_method_jeelpay .jeelpay-installment:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(0, 158, 155, 0.2);
}

.payment_method_jeelpay .jeelpay-installment-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--jeelpay-primary);
    display: block;
    margin-bottom: 4px;
}

.payment_method_jeelpay .jeelpay-installment-label {
    font-size: 11px;
    color: var(--jeelpay-gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Input Fields (Classic & Blocks) --- */
.jeelpay-input-wrapper {
    margin-bottom: 16px;
}

.jeelpay-input-wrapper label {
    font-weight: 600;
    color: var(--jeelpay-black);
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

.jeelpay-input-wrapper input[type="text"],
.jeelpay-input-wrapper .wc-block-components-text-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--jeelpay-gray-200);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--jeelpay-white);
    height: 48px;
    /* Force height for consistency */
    box-sizing: border-box;
}

.jeelpay-input-wrapper input[type="text"]:focus,
.jeelpay-input-wrapper .wc-block-components-text-input:focus {
    border-color: var(--jeelpay-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 158, 155, 0.15) !important;
    outline: none;
}

.jeelpay-input-wrapper input[type="text"]::placeholder,
.jeelpay-input-wrapper .wc-block-components-text-input::placeholder {
    color: #9ca3af;
}

/* --- Badges --- */
.jeelpay-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--jeelpay-primary);
    color: var(--jeelpay-white);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(0, 158, 155, 0.2);
}

/* --- Product Page Widget --- */
.jeelpay-product-widget {
    margin: 20px 0;
    padding: 20px;
    background: var(--jeelpay-white);
    border: 1px solid var(--jeelpay-gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.jeelpay-product-widget .jeelpay-logo {
    height: 28px;
    margin-right: 12px;
}

.jeelpay-product-widget .jeelpay-text {
    font-size: 14px;
    color: var(--jeelpay-black);
    font-weight: 500;
}

.jeelpay-product-widget .jeelpay-amount {
    color: var(--jeelpay-primary);
    font-weight: 700;
}