.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;
}
.wc-block-components-address-form__country.wc-block-components-country-input {
  margin-top: 12px !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;
}

.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;
}
/* .select2-container {
    border-color: var(--wc-red);
    border: 2px solid red;
} */
.custom-select-validation {
  border: 1px solid #ccc; /* Default border */
}

.custom-td {
  text-align: justify !important;
}

.custom-th {
  font-weight: 700 !important;
  width: 54%;
}
.custom-select-validation.invalid {
  border: 1px solid red; /* Red border when invalid */
}
.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.main-check {
  margin-bottom: 0px;
}
.custom-checkbox label {
  margin-left: 10px;
  font-size: 16px;
  font-weight: 600;
}

.jwcfe-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.jwcfe-checkbox-label input[type="checkbox"] {
  margin: 0;
  vertical-align: middle;
  margin-right: 5px;
}

.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 */
}

.custom-radio-container .custom-radio-wrapper {
  display: flex;
  column-gap: 0.8em;
}
.custom-radio-value {
  margin-top: 14px;
}

.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;
}
.form-row > label > abbr + span {
  display: none;
}

/* Keep select in DOM (not display:none), visually hide it */
.jwcfe-hidden-select {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important; /* optional */
}
