/* -------------------------------
   GLOBAL INPUT FIELD STYLING
--------------------------------*/
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100%;
    padding: 10px !important;
    font-size: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    color:#111 !important;
}

/* Focus effect */
.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #4a90e2;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
    outline: none;
}

/* Label styling */
.woocommerce-checkout label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

/* Improve spacing between fields */
.woocommerce-checkout .form-row {
    margin-bottom: 18px;
}

/* Fix select/dropdown arrow */
.woocommerce-checkout select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Textarea styling */
.woocommerce-checkout textarea {
    min-height: 100px;
    resize: vertical;
}

/* Error fields */
.woocommerce-checkout .woocommerce-invalid input,
.woocommerce-checkout .woocommerce-invalid select {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

/* Error message */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-notice {
    border-radius: 8px;
}

/* -------------------------------
   MOBILE OPTIMIZATION
--------------------------------*/
@media (max-width: 768px) {
    .woocommerce-checkout input,
    .woocommerce-checkout select,
    .woocommerce-checkout textarea {
        font-size: 16px; /* better touch support */
    }
}


.woocommerce-checkout .wc_payment_methods .wc_payment_method label,
.woocommerce-checkout .wc-stripe-elements-payment-methods li label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;   /* spacing between radio & text */
    margin: 0 !important;
}

.woocommerce-checkout .wc_payment_methods .wc_payment_method input[type="radio"],
.woocommerce-checkout .wc-stripe-elements-payment-methods li input[type="radio"] {
    margin-right: 8px !important;
    position: relative !important;
    top: 0 !important;
}

.woocommerce-additional-fields h3,
.woocommerce-additional-fields h4{
  padding-bottom: 20px !important;
}

#customer_details{
  margin-bottom: 25px;
}


/* ---------------------------------------
   GLOBAL THEME COLORS — PRIMARY: #c4161c
----------------------------------------*/

/* Buttons */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.wp-element-button {
    background-color: #c4161c !important;
    border-color: #c4161c !important;
    color: #fff !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.wp-element-button:hover {
    background-color: #a01217 !important;
    border-color: #a01217 !important;
}

/* WooCommerce Checkout / Add to Cart */
.woocommerce #place_order,
.woocommerce button[name="update_cart"],
.woocommerce a.checkout-button {
    background-color: #c4161c !important;
    border-color: #c4161c !important;
    color: #fff !important;
}
.woocommerce #place_order:hover,
.woocommerce .checkout-button:hover {
    background-color: #a01217 !important;
}

/* WooCommerce Notices / Alerts */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-top-color: #c4161c !important;
    background: #c4161c !important;
}
.woocommerce-message {
    background: rgba(196, 22, 28, 0.12) !important;
}

/* Tabs Active */
.woocommerce-tabs ul.tabs li.active a {
    color: #c4161c !important;
}

.wpem-single-event-body-content .wpem-theme-button{
    background-color: #c4161c !important;
    border-color: #c4161c !important;
    color: #fff !important;
}

.wpem-single-event-body-content .wpem-theme-button:hover{
    background-color: #a01217 !important;
    border-color: #a01217 !important;
}