.address-form-grid {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.address-form-grid > [class*="col-"] {
  min-width: 0;
}

.address-form-compact .input-field {
  margin-bottom: 0;
}

.address-form-compact .input-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--headings-color, #121111);
}

.address-form-compact .theme-input,
.address-form-compact select.theme-input {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 0 !important;
  color: var(--headings-color, #121111);
}

.address-form-compact .theme-input::placeholder {
  color: var(--text-color, #74787C);
  opacity: .85;
  font-size: 15px;
}

.address-form-compact .nice-select {
  min-height: 48px;
  height: 48px;
  padding: 12px 40px 12px 16px;
  font-size: 15px;
  line-height: 22px;
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 0 !important;
  color: var(--headings-color, #121111);
  position: relative;
}

.address-form-compact .nice-select .current {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 22px;
}

.address-form-compact .nice-select .option {
  font-size: 14px;
  line-height: 1.4;
  min-height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  white-space: normal;
}

.address-form-compact .nice-select::after {
  right: 16px;
  top: 50%;
  margin-top: -3px;
}

.address-form-compact .address-default-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 14px;
  color: var(--text-color, #74787C);
  cursor: pointer;
}

.address-form-compact .address-default-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.address-form-with-location .address-nice-select,
[data-address-location-picker] .address-nice-select {
  display: block;
  width: 100%;
}

.address-form-with-location .nice-select.wide,
[data-address-location-picker] .nice-select.wide {
  width: 100% !important;
  max-width: 100%;
  float: none;
  box-sizing: border-box;
}

.address-form-with-location .address-searchable-nice .list,
[data-address-location-picker] .nice-select .list {
  max-height: 280px;
  overflow-y: auto;
  width: 100%;
  z-index: 40;
}

.address-form-with-location .nice-select-search-wrap,
[data-address-location-picker] .nice-select-search-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid rgba(145, 158, 171, 0.24);
}

.address-form-with-location .nice-select-search,
[data-address-location-picker] .nice-select-search {
  width: 100%;
  border: 1px solid rgba(145, 158, 171, 0.4);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  box-sizing: border-box;
  background: #fff;
  color: var(--headings-color, #121111);
}

.address-form-with-location .nice-select-search:focus,
[data-address-location-picker] .nice-select-search:focus {
  border-color: var(--primary-color, #121111);
}

.address-form-with-location .address-field-valid,
.address-form-with-location select.address-field-valid + .nice-select,
.address-form-with-location .nice-select.address-field-valid {
  border-color: #00ab55 !important;
}

.address-form-with-location .address-field-invalid,
.address-form-with-location select.address-field-invalid + .nice-select,
.address-form-with-location .nice-select.address-field-invalid {
  border-color: #ef4444 !important;
}
