.sendfx-country-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: .45rem .8rem;
  margin: .25rem 0;
  min-width: 0;
}
.sendfx-country-heading { display: grid; gap: .18rem; }
.sendfx-country-mode {
  margin: 0;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sendfx-country-fields label { color: var(--text); font-weight: 700; }
.sendfx-country-choice {
  position: relative;
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .8rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sendfx-country-choice:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.sendfx-country-choice img {
  width: 32px;
  height: 24px;
  margin-left: .85rem;
  flex: 0 0 32px;
  border-radius: 3px;
  object-fit: cover;
}
.sendfx-country-choice input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 3.15rem;
  padding: .72rem .85rem;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-weight: 650;
}
.sendfx-country-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + .35rem);
  left: 0;
  right: 0;
  max-height: var(--sendfx-country-list-height, min(34rem, 58vh));
  padding: .35rem;
  overflow-y: auto;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--border);
  border-radius: .8rem;
  box-shadow: 0 18px 42px color-mix(in srgb, #000 24%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  scrollbar-color: var(--border) transparent;
}
.sendfx-country-options[hidden] { display: none; }
.sendfx-country-options button {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .68rem .72rem;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: .55rem;
  cursor: pointer;
}
.sendfx-country-options button:last-child { border-bottom: 0; }
.sendfx-country-options button:hover,
.sendfx-country-options button[aria-selected="true"] {
  color: var(--primary);
  background: var(--surface-soft);
}
.sendfx-country-options img {
  width: 28px;
  height: 20px;
  margin: 0;
  flex: 0 0 28px;
}
.sendfx-country-detection {
  color: var(--muted);
  font-size: .78rem;
  text-align: left;
}
#sendfx-rate-notice {
  grid-column: 1 / -1;
  margin: .15rem 0 0;
  padding: .7rem .8rem;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: .7rem;
  font-size: .8rem;
}
.sendfx-country-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: .35rem .75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: .75rem;
  font-size: .78rem;
}
.sendfx-country-detail p {
  margin: 0;
  padding: .42rem .55rem;
  overflow-wrap: anywhere;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}
.sendfx-country-detail p:nth-last-child(-n + 2) { border-bottom: 0; }
.sendfx-country-restriction {
  margin: 0;
  padding: .8rem;
  border: 1px solid var(--primary);
  border-radius: .75rem;
}
#sendfx-whatsapp[aria-disabled="true"],
.quote-panel button:disabled { opacity: .55; cursor: not-allowed; }
.sendfx-volume-stepper {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem;
  gap: .35rem;
  align-items: center;
}
.sendfx-volume-stepper .number-field { min-width: 0; }
.sendfx-volume-stepper .number-field input { width: 100%; }
.sendfx-volume-stepper > button {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  color: var(--foreground);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: .8rem;
  cursor: pointer;
}
.sendfx-volume-stepper > button:hover { border-color: var(--primary); }
.sendfx-volume-stepper > button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

@media (max-width: 600px) {
  .sendfx-country-fields { grid-template-columns: 1fr; }
  .sendfx-country-detection { text-align: left; }
  .sendfx-country-choice, #sendfx-rate-notice { grid-column: 1; }
  .sendfx-country-detail { grid-template-columns: 1fr; }
  .sendfx-country-detail p:nth-last-child(2) { border-bottom: 1px solid var(--border); }
  .sendfx-country-detail p:last-child { border-bottom: 0; }
  .sendfx-volume-stepper { grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem; }
  .sendfx-volume-stepper > button { width: 2.6rem; height: 2.6rem; }
  .sendfx-volume-stepper .number-field span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sendfx-country-choice { transition: none; }
}
