/* Modal container */
.modal1 {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

/* Modal content */
.modal-content1 {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 40%;
  border-radius: 2px;
}

/* Close button */
.close, .close1, .close_ {
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus,
.close1:hover,
.close1:focus,
.close_:hover,
.close_:focus {
  color: #222329;
  text-decoration: none;
  cursor: pointer;
}

/* form for custom address */
.my-form {
    display: flex;
    flex-direction: column;
    /* width: 300px; Adjust as needed */
    margin: 0 auto;
}
.form-group-custom {
    margin-bottom: 10px;
}

/* Input styles */
div.modal-content1 input[type="text"],
div.modal-content1 input[type="email"], select {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-top: 3px;
}

/* Two inputs in the same row */
.form-group-custom {
    display: flex;
    justify-content: space-between;
}

/* Adjust width of inputs in the same row */
.form-group-custom input {
    width: 100%; /* Adjust as needed */
}
.form-group-custom select {
    width: 100%; 
}
.form-group-custom label {
    font-weight: bold;
}
.custom-address {
    background: #f8f8f8;
    padding: 10px 10px 10px 10px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 50px;
    padding: 30px !important;
    border: 1px solid #dce0e3;
    font-style: normal;
    font-size: 16px;
}
.address-type{
    float: right;
    font-weight: bold;
}
.manage-address{
    color: #094380;
}
.edit-address, .set-as-default {
    cursor: pointer;
}
.delete-address{
    cursor: pointer;
}
.edit-address:hover {
    cursor: pointer;
}
.delete-address:hover{
    cursor: pointer;
}
#ship-to-different-address{
    display: none;
}
/* .woocommerce-shipping-fields__field-wrapper {
    display: none;
}
.woocommerce-billing-fields__field-wrapper {
    display: none;
} */
button[data-address-type="billing"] {
    display: none;
}
.edit-symbol {
    position: relative;
    cursor: pointer;
    display: inline-block;
    padding-right: 20px; 
}
.edit-symbol:hover{
    cursor: pointer;
}
.edit-symbol::after {
    content: "\270E"; 
    position: absolute;
    top: -16px;
    right: 2px;
    color: #0c66ec; 
    cursor: pointer;
}
.error-message{
    display: none;
    color: red;
}
.modal-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  display: none;
  position: absolute;
  left: 48%;
  top: 50%;
}

#billing_address_select {
    background-position: right center;
}
#shipping_address_select {
    background-position: right center;
}

/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999; 
    display: none;
}

/* Spinner loader */
.spinner_loader_section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000; 
    display: none;
}

#custom_address_container h2.checkout-title {
    font-weight: 200;
}
#custom_address_container h4.checkout-subtitle {
    font-size: 20px;
}
#custom_address_container h4.billing-details-label,
#custom_address_container h4.shipping-details-label{
    font-size: 16px;
    font-weight: 700;
}
#customer_details h4.billing-details-label,
#customer_details h4.shipping-details-label{
    font-size: 16px;
    font-weight: 700;
}
#custom_address_container p.billing-address-select,
#custom_address_container p.shipping-address-select {
    margin-left:  10px;
}
.shipping-address-select-label, .billing-address-select-label {
    font-weight: 100;
}

#billing_address_select, #shipping_address_select {
    padding: 10px 25px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    background-position: right center;
  }

#billing_address_select::after, #shipping_address_select::after {
    content: '\25BC'; 
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none; 
  }
  
  #billing_address_select option, #shipping_address_select option {
    padding: 10px; 
    font-size: 14px; 
    color: #333;
  }
  #billing_address_select option:checked {
    background-color: #f0f0f0; 
  }
  .mc_selected_billing_address_details p, .mc_selected_shipping_address_details p {
    margin-bottom: 8px;
  }
  .mc_selected_billing_address_details p:last-child, .mc_selected_shipping_address_details p:last-child {
    display: inline-block;
  }
  .mc_selected_billing_address, .mc_selected_shipping_address {
    padding-left: 5% !important;
  }
 #mc_edit_selected_billing_address, #mc_edit_selected_shipping_address {
    display: none;
  }

  .woocommerce-checkout abbr[title].required {
    text-decoration: none;
    color: red;
  }
  .modal-content1 abbr.required {
    text-decoration: none;
    color: red;
  }
  form.summary_checkout_coupon {
    display: none;
  }

  #customer_details label[for="createaccount"] span {
    font-size: 16px;
  }
  .woocommerce-checkout #customer_details div.col-lg-4 {
    padding: 10px 20px;
  }
  #custom_address_container .same-address-checkbox-section {
    margin-top: 75px;
  }
  
  /* Tooltip styling */
  #custom_address_container .samecheckbox-container {
    position: relative;
  }
  #custom_address_container .guestAddressCheck[disabled]:hover + .checkboxTooltip {
    display: block;
  }
  #custom_address_container .checkboxTooltip {
    display: none;
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 1000;
    bottom: 120%; 
    left: 50%; 
  }

  div.modal1 .input-container {
    width: 49%;
  }
  html.add-address-modal-open {
    overflow: hidden;
  }
  div#panel-cart-discount button.secondaryCheckoutBtn {
    display: none;
  }

  /*Avatax exemption form - start*/
  .woocommerce .messagepop.pop.container {
    background-color: #fff !important;
  }
  .messagepop.container {
    z-index: 10000000;
    background-color: #fff !important;
  }
  .select2-container .select2-dropdown {
    z-index: 10000001;
  }
  .woocommerce .messagepop.pop.container {
    outline: none !important;
    border-radius: 2px !important;
    border: 1px solid #888;
    font-family: 'Nunito Sans' !important;
  }
  .woocommerce .messagepop.pop.container h3 {
    font-size: 20px;
    font-weight: 700;
    display: block;
  }
  .woocommerce .messagepop.pop.container button {
    padding: 10px 35px !important;
    border-radius: 4px !important;
    margin-left: 0px !important;
    font-size: 14px;
    text-transform: uppercase;
  }
  .exemption-zone-select-view .field.form-row-last {
    padding-left: 0px !important;
  }
  .woocommerce-account .messagepop .woocommerce {
    margin: 0px;
  }
  .woocommerce .messagepop.pop.container label {
    font-size: 16px;
    font-weight: 500;
  }
  .exemption-zone-select-view hr {
    display: none !important;
  }
  .woocommerce .messagepop hr {
    border: 1px solid #CEDFF2!important;
  }
  #btnRefreshCertificates {
    margin-right: 20px;
  }
  .save-address-container {
    text-align: right;
  }
  #btnAddExemption {
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight:700 !important;
    text-transform: uppercase !important;
  }
  .woocommerce-account button {
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }
  .woocommerce-account button.button {
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }
  /*Avatax exemption form - end*/

  /* Checkout - Revamp - Mobile Responsive */
  @media only screen and (max-width: 600px) {
    div.modal1 .input-container {
      width: 100%;
      margin-top: 10px !important;
    }
    div.modal .modal-content1 {
      width: 80% !important;
    }
    div.modal1 .modal-content1 {
      width: 80% !important;
      margin: 35% auto;
    }
    div.modal1 .modal-content1 h2 {
      font-size: 19px;
      margin-bottom: 10px;
      line-height: normal;
    }
    .spinner_loader_section img {
      max-width: 60%;
    }
    div#custom_address_container .checkout-title {
      line-height: normal;
      margin-bottom: 10px;
      font-size: 24px;
    }
    #custom_address_container h4.checkout-subtitle {
      font-size: 18px;
    }
    #custom_address_container .checkbox-container {
      margin-bottom: 20px;
    }
    #custom_address_container p.billing-address-select, 
    #custom_address_container p.shipping-address-select {
      margin-left: 0px;
    }
    .mc_selected_billing_address_details p, .mc_selected_shipping_address_details p {
      margin-bottom: 3px;
    }
    .address-group-container {
      margin-bottom: 0px;
    }
    #custom_address_container .same-address-checkbox-section {
      margin-top: 10px;
    }
    .woocommerce-checkout-payment .wc-stripe-elements-field {
      overflow-x: hidden !important;
    }
    #billing-details {
      margin-bottom: 20px;
    }

    /*Avatax form start - Mobile*/
    .woocommerce .messagepop.pop.container {
      padding: 20px !important;
    }
    .woocommerce .messagepop.pop.container label   {
        padding-left: 0px !important;
        text-indent: 0px !important;
    }
    .woocommerce .messagepop.pop.container button   {
        width: 100% !important;
    }
    .woocommerce .messagepop.pop.container > div.field.form-row {
      float: none !important;
    }
    .messagepop.pop.container {
      width: 70% !important;
    }
    #btnRefreshCertificates {
      margin-bottom: 20px;
    }
    /*Avatax form end - Mobile*/
    
  }

  #custom_address_container {
    display: none;
  }

  .free-shipping-message {
    font-size: 15px;
    color: #0073aa;
    display: block;
    margin-bottom: 5px;
  }
  .porto-html-block{
    display:none;
  }
  .mc_bill_address_details{
    font-size: 18px !important;
    font-weight: 700 !important;
  }