#billing_address_1_field abbr.required[title="required"],
#shipping_address_1_field abbr.required[title="required"],
#shipping_city_field abbr.required[title="required"],
#shipping_postcode_field abbr.required[title="required"],
#billing_city_field abbr.required[title="required"],
#billing_postcode_field abbr.required[title="required"] {
  display: none !important;
}
.custom-email-style {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  outline: 0;
  line-height: normal;
  font-size: var(--wp--preset--font-size--small);
  padding: 0.9rem 1.1rem;
}
.custom-phone-style {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  outline: 0;
  line-height: normal;
  font-size: var(--wp--preset--font-size--small);
  padding: 0.9rem 1.1rem;
}

.tooltip-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
  /* Add styles for the tooltip icon */
}

.tooltip-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 3px;
  font-size: 12px;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s 0.3s;
}

.tooltip-icon:hover::after {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.customs-th {
  font-weight: 700 !important;
  width: 50%;
}
.wc-block-components-address-form__country.wc-block-components-country-input {
  margin-top: 12px !important;
}
.wc-block-components-select-input-jwcfe-block-radio.wc-block-components-radio-input {
  width: 100%;
}
/* Hide the clear button for single-select */
.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  display: none !important;
}

/* Keep the clear button visible for multi-select */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__clear {
  display: block !important;
}

input.select2-search__field {
  /* border: 2px solid rgb(9, 255, 0); */
  padding-top: 0px !important;
  padding-bottom: 1px !important;
  line-height: normal !important;
  height: auto !important;
  padding-left: 0px !important;
}
ul.select2-selection__rendered {
  /* border: 1px solid red;  */
  padding-top: 0px !important;
  padding-bottom: 1px !important;
  line-height: normal !important;
  height: auto !important;
}
#custom-file-style {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.9rem 1.1rem;
  font-size: var(--wp--preset--font-size--small);
  line-height: normal;
  border: 1px solid rgb(118, 118, 118); /* Light-dark border color */
  border-radius: 2px;
  cursor: pointer;
}
input.hasDatepicker {
  background: url("calender.png") no-repeat right 10px center;
  background-size: 5%;
  cursor: pointer;
  border: 1px solid grey;
  border-radius: 2px;
}

.custom-checkbox-style {
  padding-top: 10px;
}

/* Custom styles for checkbox fields */
.custom-checkbox-field {
  margin-bottom: 20px;
}

.custom-checkbox .jwcfe-price-field {
  margin-right: 10px;
  cursor: pointer;
}

.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.custom-checkbox label {
  margin-left: 10px;
  font-size: 16px;
  font-weight: 600;
}

.custom-checkbox .required {
  margin-left: 5px;
  color: yellow; /* Customize the color of the required asterisk */
}

.custom-checkbox input[type="checkbox"]:checked + label {
  color: #0073aa; /* Change color when checkbox is checked */
}

.woocommerce form .form-row .select2-container {
  width: 100% !important;
}

.custom-radio-container .custom-radio-wrapper {
  display: flex;
  column-gap: 0.8em;
}
.custom-radio-value {
  margin-top: 14px;
}
/* Ensure radio replacement sits below the block label and doesn't overlap */
.wc-blocks-components-select .jwcfe-radio-replacement {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem; /* moves radios below the block label */
  align-items: flex-start;
}

/* Style individual radio items */
.jwcfe-radio-replacement .jwcfe-radio-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

/* Make the radio input normal size and visible */
.jwcfe-radio-replacement input[type="radio"] {
  width: 1em;
  height: 1em;
  margin: 0;
  flex: 0 0 auto;
}

/* text for each option */
.jwcfe-radio-replacement .jwcfe-radio-label-text {
  line-height: 1;
  display: inline-block;
}

/* optional: small responsive wrap */
@media (min-width: 640px) {
  .jwcfe-radio-replacement {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
  .jwcfe-radio-replacement .jwcfe-radio-item {
    margin: 0.125rem 0;
  }
}

.wc-block-components-radio-input .wc-blocks-components-select__label {
  overflow: unset;
  position: relative;
  left: 0;
}

.wc-block-components-radio-input .wc-blocks-components-select__container {
  height: auto;
  background: none;
}

.wc-block-components-radio-input .wc-blocks-components-select__expand {
  fill: none;
}

/* Password field: show/hide control inside input (classic checkout) */
.jwcfe-password-field-wrap {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.jwcfe-password-field-wrap .jwcfe-password-input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 2.75rem;
}

.jwcfe-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 0;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jwcfe-password-toggle:focus {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

/* Stack both SVGs in one slot so they never sit side-by-side or “double” */
.jwcfe-password-toggle__icons {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.jwcfe-password-field-wrap .jwcfe-password-toggle__icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: block;
  box-sizing: content-box;
  pointer-events: none;
}

/* Hidden icon: keep off-screen visually (stronger than display:none vs theme svg rules) */
.jwcfe-password-field-wrap .jwcfe-password-toggle__icon--hide {
  opacity: 0;
  visibility: hidden;
}

.jwcfe-password-field-wrap .jwcfe-password-toggle__icon--show {
  opacity: 0;
  visibility: visible;
}

.jwcfe-password-field-wrap
  .jwcfe-password-toggle.is-password-visible
  .jwcfe-password-toggle__icon--show {
  opacity: 0;
  visibility: hidden;
}

.jwcfe-password-field-wrap
  .jwcfe-password-toggle.is-password-visible
  .jwcfe-password-toggle__icon--hide {
  opacity: 1;
  visibility: visible;
}

/* Hidden checkout fields: keep in DOM for POST + conditional JS, no layout on page */
.woocommerce-checkout p.form-row.jwcfe-field-hidden,
form.checkout p.form-row.jwcfe-field-hidden {
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
