/* ---------------------------------------------------------
 * IDEART Installer Locator
 * Forminator-aligned controls and installer list
 * --------------------------------------------------------- */

.ideart-installer-locator {
  font-family: inherit;
  font-size: inherit;
}

/* Country select */
.ideart-installer-locator .ideart-locator-country {
  display: block;
  max-width: 200px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 42px 0 12px;

  border: 1px solid #d8d8d8;
  border-radius: 4px;
  outline: none;

  background-color: #fff;
  color: #222;

  font: inherit;
  font-size: 14px;
  line-height: 40px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #777 50%),
    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 17px,
    calc(100% - 12px) 17px;
  background-size: 5px 5px;
  background-repeat: no-repeat;

  box-sizing: border-box;
}

.ideart-installer-locator .ideart-locator-country:focus {
  border-color: #d10000;
  box-shadow: none;
}

/* Postcode input */
.ideart-installer-locator .ideart-locator-postcode-wrap {
  margin-top: 15px;
}

.ideart-installer-locator .ideart-locator-postcode {
  display: block;
  width: 120px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 10px;

  border: 1px solid #777;
  border-radius: 6px;
  outline: none;

  background: #fff;
  color: #000;

  font: inherit;
  font-size: 14px;
  line-height: 38px;

  box-sizing: border-box;
}

.ideart-installer-locator .ideart-locator-postcode:focus {
  border-color: #d10000;
  box-shadow: none;
}

/* Status and heading */
.ideart-installer-locator .ideart-locator-status {
  margin-top: 10px;
  font-size: 12px;
}

.ideart-installer-locator .ideart-locator-heading {
  margin: 18px 0 18px;
  font-size: 14px;
  font-weight: 500;
}

.ideart-installer-locator .ideart-locator-install {
  margin: 16px 0 7px;
  font-size: 13px;
  font-weight: 500;
}

/* Installer rows */
.ideart-installer-locator .ideart-locator-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  width: 100%;
  margin: 0;
  padding: 10px;

  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0;

  background: transparent;
  cursor: pointer;
  box-sizing: border-box;

  transition:
    background-color 0.18s ease,
    border-radius 0.18s ease;
}

/* Restore hover highlight */
@media (hover: hover) {
  .ideart-installer-locator .ideart-locator-option:hover {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 9px;
  }
}

/* Keyboard focus */
.ideart-installer-locator .ideart-locator-option:focus-within {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 9px;
}

/* Selected installer */
.ideart-installer-locator .ideart-locator-option:has(input:checked) {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 9px;
}

/* Radio buttons */
.ideart-installer-locator .ideart-locator-option input[type="radio"] {
  position: relative;
  flex: 0 0 auto;

  width: 20px;
  height: 20px;
  margin: 1px 0 0;

  border: 1px solid #999;
  border-radius: 50%;

  background: #fff;
  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;
}

.ideart-installer-locator .ideart-locator-option input[type="radio"]:checked {
  border: 2px solid #ed1c24;
  background: #fff;
}

.ideart-installer-locator
  .ideart-locator-option
  input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #ed1c24;
}

/* Installer text */
.ideart-installer-locator .ideart-locator-name {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.ideart-installer-locator .ideart-locator-address {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.ideart-installer-locator .ideart-locator-distance {
  color: #fff;
  margin-top: 8px;
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  background-color: #777;
  border-radius: 5px;
  padding: 4px 10px;
}
