.ait-esim-checker {
  background: #ffffff;
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 22px 60px rgba(23, 23, 23, 0.12);
  color: #171717;
  font-family: inherit;
}

.ait-esim-checker__controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}

.ait-esim-checker__field label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  color: #171717;
}

.ait-esim-country-field {
  position: relative;
}

.ait-esim-country-combobox {
  position: relative;
}

.ait-esim-country-search {
  width: 100%;
  border: 1px solid #e7cdbd;
  background: #fffdf9;
  border-radius: 12px;
  padding: 14px 46px 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #171717;
  min-height: 54px;
  outline: none;
}

.ait-esim-country-search:focus {
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

.ait-esim-country-combobox::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #171717;
  border-bottom: 2px solid #171717;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.ait-esim-country-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #ffd2b3;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(23, 23, 23, 0.14);
  padding: 8px;
}

.ait-esim-country-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: #171717;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.ait-esim-country-option:hover,
.ait-esim-country-option:focus {
  background: #fff0e5;
  outline: none;
}

.ait-esim-country-option small {
  color: #ff6600;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ait-esim-country-empty {
  padding: 14px;
  color: #555b63;
  font-weight: 700;
}

.ait-esim-country-help {
  margin: 8px 0 0;
  color: #555b63;
  font-size: 0.88rem;
  font-weight: 700;
}

.ait-esim-refresh-button {
  border: 0;
  background: #ff6600;
  color: #ffffff;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 54px;
  box-shadow: 0 16px 32px rgba(255, 102, 0, 0.24);
}

.ait-esim-refresh-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ait-esim-status {
  margin: 0 0 18px;
  color: #555b63;
  font-weight: 700;
}

.ait-esim-results {
  display: grid;
  gap: 10px;
}

.ait-esim-table-head,
.ait-esim-plan-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.2fr 0.7fr 1.7fr;
  gap: 18px;
  align-items: center;
}

.ait-esim-table-head {
  padding: 0 14px 6px;
  color: #5f6670;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.ait-esim-plan-list {
  display: grid;
  gap: 10px;
}

.ait-esim-plan-row {
  background: #fff7f0;
  border: 1px solid #ffbd94;
  border-radius: 14px;
  padding: 16px 14px;
  font-weight: 800;
}

.ait-esim-plan-row span {
  display: block;
  color: #555b63;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 2px;
}

.ait-esim-price {
  color: #ff6600;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ait-esim-chat-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ait-esim-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff6600;
  color: #ff6600;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  line-height: 1;
}

.ait-esim-chat-button--primary {
  background: #ff6600;
  color: #ffffff;
}

.ait-esim-chat-missing {
  color: #555b63;
  font-size: 0.86rem;
  font-weight: 700;
}

.ait-esim-note {
  margin: 24px 0 0;
  color: #555b63;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.55;
}


.ait-esim-results[hidden] {
  display: none !important;
}

.ait-esim-checker.is-loading .ait-esim-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #171717;
  font-weight: 900;
}

.ait-esim-checker.is-loading .ait-esim-status::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid #ffd2b3;
  border-top-color: #ff6600;
  border-radius: 50%;
  flex: 0 0 auto;
  animation: ait-esim-spin 0.8s linear infinite;
}

@keyframes ait-esim-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .ait-esim-table-head,
  .ait-esim-plan-row {
    grid-template-columns: 1fr 1fr;
  }

  .ait-esim-table-head {
    display: none;
  }

  .ait-esim-plan-row {
    gap: 10px 18px;
  }

  .ait-esim-plan-row > div::before {
    content: attr(data-label);
    display: block;
    color: #6a6a6a;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 3px;
    font-weight: 800;
  }
}

@media (max-width: 640px) {
  .ait-esim-checker {
    padding: 18px;
    border-radius: 22px;
  }

  .ait-esim-checker__controls,
  .ait-esim-plan-row {
    grid-template-columns: 1fr;
  }

  .ait-esim-refresh-button {
    width: 100%;
  }
}
