.ahu-esim-search {
  --ahu-blue: #0878d1;
  --ahu-dark: #12324a;
  margin: 24px 0 40px;
  color: var(--ahu-dark);
}

.ahu-esim-search__heading { margin-bottom: 18px; }
.ahu-esim-search__heading h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); }
.ahu-esim-search__heading p { margin: 0; color: #64748b; }

.ahu-esim-search__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid #dbe6ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(15 65 95 / 8%);
}

.ahu-esim-search__form label { display: grid; gap: 6px; margin: 0; }
.ahu-esim-search__form label span { font-size: 14px; font-weight: 700; }
.ahu-esim-search__form select,
.ahu-esim-search__form button {
  width: 100%;
  min-height: 46px;
  border-radius: 9px;
  font: inherit;
}
.ahu-esim-search__form select { padding: 0 12px; border: 1px solid #cbd5e1; background: #fff; }
.ahu-esim-search__form button {
  padding: 0 20px;
  border: 0;
  background: var(--ahu-blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.ahu-esim-search__form button:disabled { opacity: .65; cursor: wait; }

.ahu-esim-search__status { min-height: 24px; margin: 14px 0; color: #64748b; }
.ahu-esim-search__status[data-type="error"] { color: #b42318; }
.ahu-esim-search__status[data-type="success"] { color: #087443; }

.ahu-esim-search__results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ahu-esim-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  margin: 0;
  border: 1px solid #dbe6ee;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.ahu-esim-card__body { padding: 18px; }
.ahu-esim-card__code { margin: 0 0 5px; color: #64748b; font-size: 12px; }
.ahu-esim-card h3 { margin: 0 0 16px; font-size: 18px; line-height: 1.4; }
.ahu-esim-card dl { display: grid; gap: 8px; margin: 0; }
.ahu-esim-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.ahu-esim-card dt { color: #64748b; }
.ahu-esim-card dd { margin: 0; font-weight: 700; text-align: right; }
.ahu-esim-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #f4f9fc;
}
.ahu-esim-card__footer strong { color: var(--ahu-blue); font-size: 18px; }
.ahu-esim-card__footer button,
.ahu-esim-order__submit button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ahu-blue);
  border-radius: 9px;
  background: var(--ahu-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ahu-esim-checkout {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #cfe0eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgb(15 65 95 / 12%);
}
.ahu-esim-checkout[hidden] { display: none; }
.ahu-esim-checkout__header { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.ahu-esim-checkout__header h3 { margin: 3px 0 5px; font-size: 24px; }
.ahu-esim-checkout__header p { margin: 0; color: #64748b; }
.ahu-esim-checkout__eyebrow { color: var(--ahu-blue) !important; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.ahu-esim-checkout__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef6fb; font-size: 26px; cursor: pointer; }

.ahu-esim-order { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ahu-esim-order > label { display: grid; gap: 7px; margin: 0; }
.ahu-esim-order label span,
.ahu-esim-order__label { font-weight: 700; }
.ahu-esim-order input[type="text"],
.ahu-esim-order input[type="email"],
.ahu-esim-order input[type="tel"],
.ahu-esim-order textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font: inherit;
}
.ahu-esim-order__wide { grid-column: 1 / -1; }
.ahu-esim-payment-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; }
.ahu-esim-payment-options label { padding: 10px 13px; border: 1px solid #cbd5e1; border-radius: 9px; cursor: pointer; }
.ahu-esim-payment-panel { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 16px; border-radius: 11px; background: #f4f9fc; }
.ahu-esim-payment-panel img { width: min(220px, 45vw); height: auto; border-radius: 8px; background: #fff; }
.ahu-esim-payment-panel p { margin: 0; white-space: pre-line; }
.ahu-esim-payment-panel__empty { padding: 18px; border: 1px dashed #94a3b8; border-radius: 8px; color: #64748b; }
.ahu-esim-order__consent { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; }
.ahu-esim-order__consent input { margin-top: 5px; }
.ahu-esim-order__submit p { margin: 9px 0 0; color: #64748b; font-size: 13px; }
.ahu-esim-order__status { min-height: 24px; }
.ahu-esim-order__status[data-type="success"] { color: #087443; }
.ahu-esim-order__status[data-type="error"] { color: #b42318; }
.ahu-esim-order__trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 900px) {
  .ahu-esim-search__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ahu-esim-search__results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .ahu-esim-search__form,
  .ahu-esim-search__results,
  .ahu-esim-order { grid-template-columns: 1fr; }
  .ahu-esim-card__footer { align-items: flex-start; flex-direction: column; }
  .ahu-esim-payment-panel { align-items: flex-start; flex-direction: column; }
}
