/**
 * SilkyPress Checkout Extension - Frontend CSS
 */

/* ilias */
.wpmc-nav-wrapper{
    justify-content: space-around;
    -ms-flex-pack:center;
    -webkit-box-pack:center;
}
#ui-datepicker-div {
    width: auto!important;
    z-index: 5 !important;
}
ul.wc_payment_methods.payment_methods.methods {
    margin-bottom: 10px;
}
fieldset#wc-yith_wcauthnet_credit_card_gateway-cc-form {
    border: 0px;
    padding: 0px;
}
#payment .place-order input {
    background: #ffffff00 !important;
    color: #000 !important;
    border: 1px solid #dedede !important;
}
span.optional {
    display: none;
}

.wpmc-step-item label {
    margin-bottom: 0;
}
.woocommerce-form-login-toggle {
    display: flex;
    margin-bottom: 30px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}
.woocommerce-form-login-toggle .woocommerce-info {
    display: flex;
    align-content: center;
    align-items: center;
}
.woocommerce-form-login-toggle a.showlogin {
    display: flex;
    align-items: center;
    padding-left: 5px;
}
.woocommerce-form-login-toggle .showlogin svg {
    width: 20px;
    height: auto;    
}
.woocommerce-shipping-methods label {
    font-size: 88%;
}
.page-checkout .wpmc-steps-wrapper,
.row.nasa-order-received {
    margin: auto;
    max-width: 850px;
}
.woocommerce-terms-and-conditions-wrapper {
    color: #565656;
    font-size: 95%;
    padding-top: 16px;
}
.woocommerce-privacy-policy-text {
    padding-bottom: 10px;
}
.wc_payment_method > label {
    font-weight: 700;
    font-size: 110%;
}
.wc_payment_method .payment_box > p {
    margin-left: 10px;
    font-size: 90%;
    color: #484848;
    display: none;
}
.adm-accordion-subtitle{
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.3px;
    text-transform: initial;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 600px;
}
.woocommerce-customer-details .woocommerce-columns.woocommerce-columns--addresses.addresses {
    display: flex;
    justify-content: space-between;
}

/* Improve bullets for order details on Thank You page */
ul.woocommerce-thankyou-order-details.order_details li {
    list-style: none !important;
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
}

ul.woocommerce-thankyou-order-details.order_details li::before {
    content: "\2022";
    color: #504330; /* Brand Purple */
    font-size: 1.5em;
    line-height: 1;
    position: absolute;
    left: 0;
    top: -2px;
}
@media only screen and (max-width: 767px) {
    .row.nasa-order-received {
        width: 100%;
    }
    
    .adm-accordion-subtitle{
        max-width: 400px;
    }

    .adm-or tfoot tr.order-total {
        border: 0px solid #111 !important;
    }    

}
@media only screen and (max-width: 560px) {
    .adm-accordion-subtitle{
        max-width: 280px;
    }
}
@media only screen and (max-width: 400px) {
    .adm-accordion-subtitle{
        max-width: 200px;
    }       
}

.woocommerce-terms-and-conditions-wrapper .nasa-error {
    display: none;
}
.woocommerce-terms-and-conditions-wrapper .checkout-inline-error-message {
    color: red;
}
.woocommerce-terms-and-conditions-wrapper .woocommerce-invalid label {
    color: #000000;
}

/* Make visible inline field errors clearly red in the payment/billing area. */
#payment .checkout-inline-error-message,
#payment .wpmc-inline-error,
#payment .woocommerce-inline-error,
#payment .nasa-error,
#payment .nasa-error a {
    color: #f76b6a !important;
}

/* Hide billing address fields (except autocomplete, company, names, phone, email) - Screen reader accessible */
/* These fields are auto-filled by billing_address_autocomplete but kept in DOM for WooCommerce validation */
#billing_address_1_field > label,
#billing_address_1_field .woocommerce-input-wrapper,
#billing_city_field > label,
#billing_city_field .woocommerce-input-wrapper,
#billing_state_field > label,
#billing_state_field .woocommerce-input-wrapper,
/* #billing_postcode_field > label,
#billing_postcode_field .woocommerce-input-wrapper,
#billing_country_field  > label,
#billing_country_field  .woocommerce-input-wrapper, */
#bakery_location_checkout_hidden_standard_field  .woocommerce-input-wrapper,
#bakery_location_checkout_hidden_metrobi_field  .woocommerce-input-wrapper

{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.adm-delivery-method-pickup #billing_postcode_field > label,
.adm-delivery-method-pickup #billing_postcode_field .woocommerce-input-wrapper,
.adm-delivery-method-pickup #billing_country_field > label,
.adm-delivery-method-pickup #billing_country_field .woocommerce-input-wrapper{
    position: relative!important;
    width: auto!important;
    height: auto!important;
    margin: 0!important;
    padding: 0!important;
    overflow: visible!important;
    clip: auto!important;
    white-space: normal!important;
    border: 0!important;
}

.adm-delivery-method-pickup  #main-content form .form-row#billing_country_field {
    margin-bottom: 18px!important;
    width: 50%!important;
    padding-left: 5px!important;
    float: right!important;
    clear: none!important;
}

/* hide shiping too */
#shipping_address_2_field  > label{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
#shipping_address_1_field  > label,
#shipping_address_1_field  .woocommerce-input-wrapper,
#shipping_city_field > label,
#shipping_city_field  .woocommerce-input-wrapper,
#shipping_state_field > label,
#shipping_state_field  .woocommerce-input-wrapper,
#shipping_postcode_field > label,
#shipping_postcode_field  .woocommerce-input-wrapper,
#shipping_country_field > label,
#shipping_country_field  .woocommerce-input-wrapper {

    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* hide shiping too */
#shipping_address_1_field  > .wpmc-inline-error,
#shipping_address_1_field  > .checkout-inline-error-message,
#shipping_city_field .wpmc-inline-error,
#shipping_city_field .checkout-inline-error-message,
#shipping_state_field .wpmc-inline-error,
#shipping_state_field .checkout-inline-error-message,
#shipping_postcode_field .wpmc-inline-error,
#shipping_postcode_field .checkout-inline-error-message,
#shipping_country_field .wpmc-inline-error,
#shipping_country_field .checkout-inline-error-message
{
    position: absolute;
    background: #fff;
    z-index: 999;
    display: none;
}
/* hide billing too */
#billing_address_1_field  > .wpmc-inline-error,
#billing_address_1_field  > .checkout-inline-error-message,
#billing_city_field .wpmc-inline-error,
#billing_city_field .checkout-inline-error-message,
#billing_state_field .wpmc-inline-error,
#billing_state_field .checkout-inline-error-message{
    position: absolute;
    background: #fff;
    z-index: 999;
    display: none;
}


.woocommerce-shipping-methods .shipping_method,
#ship-to-different-address,
#adm_delivery_choice_field > label,
#adm_delivery_choice_field .woocommerce-input-wrapper,
#shipping_address_validated_field > label,
#shipping_address_validated_field .woocommerce-input-wrapper
{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.woocommerce-checkout-payment .wc_payment_method > input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.adm-ship-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:8px 0 2px}

.adm-ship-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;    
    border: 2px solid #c3c3c3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .04s ease;

    min-height: 200px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    overflow: hidden;
    outline: none;

    letter-spacing: 0.7px;
}
span.adm-card-inner-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding-top: 40px;
    padding-bottom: 20px;
    background: #fbfbfb;
}
.adm-ship-card .adm-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    
    
    cursor: pointer;
    
    text-align: left;
    min-height: 200px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    outline: none;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    letter-spacing: 0.7px;
}
.adm-ship-card:focus {
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px #4fc3f733;
}
.adm-ship-card .adm-card-title {
    font-weight: 600;
    font-size: 18px;
    color: #111;
    margin-bottom: 4px;
    text-align: center;
}
.adm-ship-card .adm-card-price {
    font-weight: 600;
    font-size: 30px;
    color: #111;
    margin-bottom: 4px;
}
.adm-ship-card .adm-card-desc, .adm-ship-card .adm-card-desc2 {
    font-size: 12px;
    color: #666;
    text-align: center;
}
.adm-ship-card.active {
    border-color: #000;
    box-shadow: 1px 1px 3px #000;
    transform: translateY(2px);
}

.adm-ship-card.disabled {
    opacity: 1;
    cursor: not-allowed;
    pointer-events: auto;
}
.adm-ship-card:hover:not(.disabled) {
    border-color: #111;
  }
.adm-ship-card:hover{border-color:#03b113}

@media (max-width: 600px) {
    .adm-ship-card {
        max-width: 100%;
        min-height: 100px;
        /* font-size: 13px; */
    }
}
.adm-shipping-methods h3 {
    text-align: center;
}
.adm-card-title{font-weight:600;font-size:14px;color:#111}
.adm-card-price{font-weight:600;font-size:28px;color:#111}
.adm-card-desc, .adm-card-desc2{font-size:14px;color:#666}
.adm-ship-card.disabled{opacity:1;cursor:not-allowed}
.adm-ship-card.disabled .adm-card-badge,
.adm-ship-card.disabled .adm-card-check,
.adm-ship-card.disabled .adm-card-title,
.adm-ship-card.disabled .adm-card-desc,
.adm-ship-card.disabled .adm-card-desc2,
.adm-ship-card.disabled .adm-card-extra-options1,
.adm-ship-card.disabled .adm-card-extra-options2{
    opacity:.4;
}

.adm-card-check{position:absolute;top:8px;right:8px;width:22px;height:22px;border-radius:999px;border:2px solid #e5e7eb;background:#fff;display:none;align-items:center;justify-content:center;box-shadow:0 1px 1px rgba(0,0,0,.04)}
.adm-ship-card.active .adm-card-check{display:flex;border-color:#16a34a;background:#16a34a;color:#fff}
.adm-card-check svg{width:14px;height:14px;display:block}
.adm-card-extra-options1, .adm-card-extra-options2 { 
    display: block; 
    width: 100%; 
    margin-top: 10px; 
    min-height: 20px;
    padding: 14px 16px;
}

/* Loading spinner for extra fields */
.adm-loading-fields {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-align: center;
    color: #666;
    font-size: 13px;
    min-height: 80px;
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 8px 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}
.adm-field-spinner {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    border: 4px solid #e5e7eb !important;
    border-top: 4px solid #0073aa !important;
    border-radius: 50% !important;
    animation: adm-field-spin 1.2s linear infinite !important;
    margin: 0 auto 16px auto !important;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
}
@-webkit-keyframes adm-field-spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes adm-field-spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
.adm-loading-fields span {
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #555;
}

/* Change Address Button */

#adm-reset-shipping-address {
    padding: 0px;
    line-height: 0px;
    height: 10px;
    color: #000 !important;
    background: transparent !important;
    border: 0px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    white-space: nowrap;
    vertical-align: middle;
    font-family: inherit;
    letter-spacing: 0.3px;
}

#adm-reset-shipping-address:hover {
    background: #e6f4ff;
    border-color: #0073aa;
    color: #005a87;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.15);
    transform: translateY(-1px);
}
#adm-reset-shipping-address:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 115, 170, 0.15);
}
#adm-reset-shipping-address:focus {
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}


/* Position button next to address input */
#shipping_address_autocomplete_field {
    position: relative;
    margin-bottom: 0px !important;
}


/* Address Validation States */
input.adm-address-validated {
    border-color: #28a745 !important;
    background: #f8fff9 !important;
}
input.adm-address-unvalidated {
    border-color: #ffc107 !important;
    background: #fffef5 !important;
}
#adm-address-validation-status {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Billing Address Autocomplete Styling */
#billing_address_autocomplete_field {
    position: relative;
}


/* Avoid clipping suggestions by parent containers */
#shipping_address_autocomplete_field,
#billing_address_autocomplete_field { overflow: visible !important; }

  #adm-unified-grid{display:grid;grid-template-rows:auto;gap:20px;margin:10px 0}
  #adm-unified-top{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
  #adm-unified-right table.shop_table{width:100%}
  #adm-unified-left, #adm-unified-right, #adm-unified-address {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 16px;
  }
  
  .adm-addr-box {
    background: #ffffff00 !important;
    border: 0px solid #e6e6e6 !important;
    padding: 0px !important;
    margin-bottom: 20px !important;
}
  @media (max-width: 992px){#adm-unified-top{grid-template-columns:1fr}}

.woocommerce-checkout-review-order-table .woocommerce-shipping-methods li::marker {
	content: none !important;
}
.woocommerce-checkout-payment .wc_payment_method::marker {
	content: none !important;
}


.payment_box.payment_method_squaresync_credit {
    border-left: 3px solid;
    padding: 10px;
    background: #f5f5f5;
}

/* ============================================================================
   BILLING CONTACT FIELDS - Side-by-side layout
   ============================================================================ */

.form-row-third {
    width: 32.3%;
    float: left;
    margin-right: 1.5%;
}
p#shipping_phone_field {
    margin-right: 0;
}
#main-content form .form-row.form-row-wide {
    clear: both
}
.adm-pickup-options-wrapper {
    padding-top: 10px;
}
.woocommerce-address-fields .screen-reader-text,.cart-collaterals .shipping-calculator-form .screen-reader-text {
    display: initial;
    width: auto;
    height: auto;
    clip: initial;
    clip-path: initial
}

#billing_address_1_field,#shipping_address_1_field {
    margin-bottom: 10px
}

#billing_phone_field,#billing_first_name_field,#shipping_first_name_field, #shipping_company_field,
#instore_pickup_date_field {
    width: 50%;
    padding-right: 5px;
    float: left;
    
}
#instore_pickup_date_field {
    margin-bottom: 10px !important;
}

#billing_phone_field input.input-text,#billing_first_name_field input.input-text,#shipping_first_name_field input.input-text,#shipping_phone_field input.input-text {
    margin-bottom: 0
}

#billing_email_field,#billing_last_name_field,#shipping_last_name_field,#shipping_phone_field,
#instore_pickup_time_field {
    width: 50%;
    padding-left: 5px;
    float: right
}

#billing_email_field input.input-text,#billing_last_name_field input.input-text,#shipping_last_name_field input.input-text{
    margin-bottom: 0
}

#billing_email_field.stripe-gateway-checkout-email-field {
    width: 100%;
    padding: 0
}

#billing_address_2_field.form-row-first {
    width: 50%;
    padding-right: 5px;
    float: left;
    clear: none;
}
#billing_company_field.form-row-last {
    width: 50%;
    padding-left: 5px;
    float: right;
    clear: none;
}
.wpmc-inline-error {

    display: block;
}

/* Billing First Name (LEFT - 50% width) */
#billing_first_name_field.form-row-first {
    width: 50%;
    padding-right: 5px;
    float: left;
    clear: none;
}

#billing_first_name_field.form-row-first input.input-text {
    margin-bottom: 0;
}

/* Billing Last Name (RIGHT - 50% width) */
#billing_last_name_field.form-row-last {
    width: 50%;
    padding-left: 5px;
    float: right;
    clear: none;
}

#billing_last_name_field.form-row-last input.input-text {
    margin-bottom: 0;
}

/* Ensure proper clearfix after side-by-side name fields */
#billing_last_name_field.form-row-last:after {
    content: "";
    display: table;
    clear: both;
}

/* Billing Phone (LEFT - 50% width) */
#billing_phone_field.form-row-first {
    width: 50%;
    padding-right: 5px;
    float: left;
    clear: none;
}

#billing_phone_field.form-row-first input.input-text {
    margin-bottom: 0;
}

/* Billing Email (RIGHT - 50% width) */
#billing_email_field.form-row-last {
    width: 50%;
    padding-left: 5px;
    float: right;
    clear: none;
}

#billing_email_field.form-row-last input.input-text {
    margin-bottom: 0;
}

/* Ensure proper clearfix after side-by-side contact fields */
#billing_email_field.form-row-last:after {
    content: "";
    display: table;
    clear: both;
}

/* Billing ZIP/Country pair inside the payment-step delivery billing block */
.woocommerce-checkout-payment .adm-delivery-billing-contact-wrapper #billing_postcode_field.form-row-first {
    width: 50% !important;
    padding-right: 5px !important;
    float: left !important;
    clear: none !important;
}

.woocommerce-checkout-payment .adm-delivery-billing-contact-wrapper #billing_country_field.form-row-last {
    width: 50% !important;
    padding-left: 5px !important;
    float: right !important;
    clear: none !important;
}

.woocommerce-checkout-payment .adm-delivery-billing-contact-wrapper #billing_postcode_field input.input-text,
.woocommerce-checkout-payment .adm-delivery-billing-contact-wrapper #billing_country_field select,
.woocommerce-checkout-payment .adm-delivery-billing-contact-wrapper #billing_country_field .select2-container {
    width: 100% !important;
}

.woocommerce-checkout-payment .adm-delivery-billing-contact-wrapper #billing_country_field.form-row-last:after {
    content: "";
    display: table;
    clear: both;
}




#adm-copy-status {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* ============================================================================
   CONDITIONAL STYLING BASED ON DELIVERY METHOD
   ============================================================================

   Body classes added dynamically:
   - .adm-mias-checkout (always present on checkout)
   - .adm-delivery-method-delivery or .adm-is-delivery (when delivery selected)
   - .adm-delivery-method-pickup or .adm-is-pickup (when pickup selected)
   - .adm-delivery-method-none or .adm-no-delivery-method (no selection)
   ============================================================================ */

/* Example: Show/hide fields based on delivery method */

/* Show shipping fields only when delivery is selected (override screen-reader-only) */
body.adm-is-delivery .woocommerce-shipping-fields p#shipping_address_autocomplete_field {
    /* Ensure it's visible for delivery */
    display: block !important;
}




 /* ilias */

/* Delivery Method Step */
.adm-delivery-method-container {
  margin-bottom: 20px;
}

.adm-delivery-method-options {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}

.adm-delivery-option {
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  width: calc(50% - 10px);
  box-sizing: border-box;
  transition: all 0.3s;
}

.adm-delivery-option:hover {
  border-color: #bbb;
}

.adm-delivery-option.selected {
  border-color: #7f54b3;
  background-color: #f7f5fa;
}

.adm-delivery-option input[type="radio"] {
  margin-right: 10px;
}

.adm-delivery-option-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.adm-delivery-option-desc {
  font-size: 0.9em;
  color: #666;
}

/* ZIP Validation Step */
.adm-zip-validation-container {
  margin-bottom: 20px;
}

.adm-zip-input-container {
  display: flex;
  flex-direction: column;
  max-width: 300px;
}

#adm_zip_code {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.adm-validation-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.adm-validation-message.valid {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.adm-valid-message {
  color: #155724;
}

.adm-invalid-message {
  color: #721c24;
}

.adm-loading-message {
  color: #0c5460;
}

/* Pickup Info Step */
.adm-pickup-info-container {
  margin-bottom: 20px;
}

.adm-store-info {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.adm-pickup-schedule {
  margin-bottom: 20px;
}

.adm-pickup-date-container,
.adm-pickup-time-container {
  margin-bottom: 15px;
}

.adm-pickup-date-container label,
.adm-pickup-time-container label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.adm-datepicker {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.adm-datepicker:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* jQuery UI Datepicker Customization */
.ui-datepicker {
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #fff;
  z-index: 9999;
}

.ui-datepicker .ui-datepicker-header {
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 6px 6px 0 0;
  padding: 10px;
}

.ui-datepicker .ui-datepicker-title {
  color: white;
  font-weight: 600;
  text-align: center;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  border-radius: 3px;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ui-datepicker .ui-datepicker-calendar {
  margin: 0;
  border-collapse: collapse;
  width: 100%;
}

.ui-datepicker .ui-datepicker-calendar th {
  background: #f8f9fa;
  padding: 8px;
  text-align: center;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.ui-datepicker .ui-datepicker-calendar td {
  padding: 0;
  text-align: center;
  border: 1px solid #f0f0f0;
}

.ui-datepicker .ui-datepicker-calendar td a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.ui-datepicker .ui-datepicker-calendar td a:hover {
  background: #e8f4f8;
  color: #0073aa;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-active {
  background: #0073aa;
  color: white;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

.ui-datepicker .ui-datepicker-calendar .closed {
  background: #ffebee;
  color: #c62828;
}

.ui-datepicker .ui-datepicker-calendar .closed a {
  color: #c62828;
  cursor: not-allowed;
}

.adm-time-select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
}

.adm-billing-fields {
  margin-top: 30px;
}

/* Delivery Fields */
.adm-delivery-fields {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

/* Loading Overlay */
.adm-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.adm-loading-spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #7f54b3;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: adm-spin 1s linear infinite;
}

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









#ns-checkout-contact #billing_email_field {
    padding-left: 0;
    padding-right: 0
}


address {
    margin-top: 10px
}


.woocommerce-billing-fields,.woocommerce-shipping-fields {
    margin-bottom: 20px
}


.woocommerce-billing-fields:before,.woocommerce-billing-fields:after,.woocommerce-shipping-fields:before,.woocommerce-shipping-fields:after {
    content: "";
    display: table
}

.woocommerce-billing-fields:after,.woocommerce-shipping-fields:after {
    clear: both
}

.woocommerce-address-fields__field-wrapper:after {
    content: "";
    display: block;
    clear: both
}


#main-content form .form-row {
    position: relative;
    margin-bottom: 0px;
}
p#shipping_address_2_field {
    margin-top: 5px;
    margin-bottom: 10px!important;
}
#main-content form .form-row.row-submit-login-social {
    margin-bottom: 0
}



#main-content form .form-row#billing_phone_field,#main-content form .form-row#billing_email_field,#main-content form .form-row#billing_first_name_field,#main-content form .form-row#shipping_first_name_field {
    clear: none
}

#main-content form .form-row#billing_persontype_field .select2-container,#main-content form .form-row#billing_sex_field .select2-container {
    width: 100% !important
}

#main-content form .form-row input {
    padding: 0 10px;
    height: 47px;
    line-height: 1;
    margin: 0;
    border-radius: 20px;
}

#main-content form .form-row input.input-checkbox,#main-content form .form-row input[type="checkbox"] {
    height: auto;
    position: relative;
    top: 1px
}



#main-content form .form-row#order_comments_field {
    margin-bottom: 0
}


#main-content form .form-row#billing_country_field {
    margin-bottom: 18px
}



#main-content form .form-row.submit_wrap {
    margin-bottom: 0
}

/* Loading state for delivery method cards */
.adm-delivery-method-options.loading {
    position: relative;
    min-height: 200px;
}

/* Delivery cards loading animation */
.adm-delivery-card.loading,
.adm-delivery-card.loading,
.delivery-option-card.loading {
    opacity: 0.4 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
    filter: grayscale(30%);
}

/* Loading spinner enhancement */
#adm-delivery-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: none;
    text-align: center;
    background: #ffffff96;
    width: 100%;
    height: 100%;
    align-content: center;
}

#adm-delivery-loading.active {
    display: block;
}

/* Loading overlay backdrop */
.adm-delivery-method-options.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    z-index: 50;
    pointer-events: none;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced loading message */
#adm-delivery-loading p {
    margin: 12px 0 0 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}
.adm-card-badge {

    position: absolute;
    top: 8px;
    left: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    z-index: 1;
    line-height: 1.2;
}

.adm-card-badge.popular {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2);
}

.adm-card-badge.special {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

/* Switch to Pickup Button Styling */
.adm-switch-to-pickup-wrap {
    margin: 15px auto;
}


#adm_switch_to_pickup_btn {
    margin-top: 0;
    padding: 10px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #000000 !important;
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: underline;
}

#adm_switch_to_pickup_btn:not(:disabled) {
    background: transparent !important;
}

#adm_switch_to_pickup_btn:hover:not(:disabled) {
    font-weight: bolder;
    text-decoration: none;
}

#adm_switch_to_pickup_btn:disabled {
    background: #ccc;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 768px) {
    .adm-switch-to-pickup-wrap {
        padding: 16px;
    }
    
    #adm_switch_to_pickup_btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}
