/* Ahel Supporters */

.ahel-supporters {
    direction: rtl;
    text-align: right;
    width: 100%;
    max-width: 560px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-sizing: border-box;
}

.ahel-supporters__header {
    margin-bottom: 32px;
}

.ahel-supporters__header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.ahel-supporters__header p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

.ahel-supporters__field {
    margin-bottom: 24px;
}

.ahel-supporters__field label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.ahel-supporters__amount {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 60px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ahel-supporters__amount:focus-within {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.ahel-supporters__currency {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 18px;
    background: #f9fafb;
    border-inline-end: 1px solid #e5e7eb;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

.ahel-supporters__amount input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 60px;
    padding: 0 18px;
    margin: 0;
    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.ahel-supporters__amount input:focus {
    outline: 0;
    box-shadow: none;
}

.ahel-supporters__amount input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.ahel-supporters__button {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 14px 24px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.ahel-supporters__button:hover {
    opacity: 0.9;
}

.ahel-supporters__button:active {
    transform: translateY(1px);
}

/* Remove number input arrows */

.ahel-supporters input[type="number"]::-webkit-inner-spin-button,
.ahel-supporters input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.ahel-supporters input[type="number"] {
    -moz-appearance: textfield;
}


    /* Hide empty WooCommerce customer details */
    body.woocommerce-checkout #customer_details {
        display: none !important;
    }

    /* Ahel checkout order summary */

/* Hide product table headings */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table thead {
    display: none;
}
body.woocommerce-checkout #order_review_heading {
    direction: rtl;
    text-align: right;
}
/* Visa Acceptance Solutions checkout */

body.woocommerce-checkout
.payment_method_visa_acceptance_solutions_unified_checkout > label {
    display: none !important;
}

body.woocommerce-checkout
.payment_method_visa_acceptance_solutions_unified_checkout .payment_box {
    background: transparent !important;
    padding: 0 !important;
    margin: 20px 0 0 !important;
    border: 0 !important;
}

body.woocommerce-checkout
.payment_method_visa_acceptance_solutions_unified_checkout .payment_box::before {
    display: none !important;
}

body.woocommerce-checkout
.payment_method_visa_acceptance_solutions_unified_checkout .payment_box > p {
    margin: 0 0 16px !important;
    text-align: right;
    direction: rtl;
}


body.woocommerce-checkout
.wc-block-checkout__billing-fields {
    display: none !important;
}

/* Hide order notes on Checkout Block */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block {
    display: none !important;
}
/* Hide billing address on Checkout Block */
body.woocommerce-checkout
.wc-block-checkout__billing-fields {
    display: none !important;
}
/* Hide product details in Checkout Block order summary */
body.woocommerce-checkout
.wc-block-components-order-summary-item {
    display: none !important;
}

/* Hide subtotal in Checkout Block */
body.woocommerce-checkout
.wp-block-woocommerce-checkout-order-summary-subtotal-block {
    display: none !important;
}

/* Hide product row */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table tbody {
    display: none;
}

/* Hide subtotal */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table .cart-subtotal {
    display: none;
}

/* Final amount */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table .order-total th {
    text-align: right;
}

body.woocommerce-checkout
.woocommerce-checkout-review-order-table .order-total td {
    text-align: left;
}

/* Reorder Ahel checkout sections */
body.woocommerce-checkout
.wc-block-checkout__form {
    display: flex;
    flex-direction: column;
}

/* Email/contact first */
body.woocommerce-checkout
#contact-fields {
    order: 10;
}

/* Payment second */
body.woocommerce-checkout
#payment-method {
    order: 20;
}

/* Terms after payment */
body.woocommerce-checkout
.wc-block-checkout__terms {
    order: 30;
}

/* Checkout actions last */
body.woocommerce-checkout
.wc-block-checkout__actions {
    order: 40;
}

/* Hide guest checkout notice */
body.woocommerce-checkout
.wc-block-checkout__guest-checkout-notice {
    display: none !important;
}
/* Hide the payment method selector when Visa is the only gateway */
body.woocommerce-checkout
#payment-method
.wc-block-components-radio-control__option {
    display: none !important;
}

/* Mobile */

@media (max-width: 600px) {
    .ahel-supporters {
        margin: 20px auto;
        padding: 24px;
        border-radius: 12px;
    }

    .ahel-supporters__header h2 {
        font-size: 24px;
    }

    .ahel-supporters__amount input {
        font-size: 20px;
    }

}
