/**
 * Payment methods landing — one row per country
 */

.payment-methods-page {
  background: #fafaf9;
}

.payment-methods-page .container {
  max-width: 900px;
}

/* Hero — full container width like other hub pages */
.pm-hero {
  padding: 120px 0 64px;
  text-align: center;
  overflow: visible;
  background: linear-gradient(180deg, #fff7ed 0%, #fafaf9 100%);
}

.pm-hero .container {
  overflow: visible;
}

.pm-hero__title {
  margin: 0 0 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.pm-hero__sub {
  margin: 0 auto 28px;
  max-width: 560px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #475569;
}

.pm-hero__selector {
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  overflow: visible;
}

.pm-hero__select {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: #0f172a;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-hero__select:hover:not(:disabled) {
  border-color: #fdba74;
}

.pm-hero__select:focus {
  outline: none;
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

.pm-hero__select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pm-country-combobox {
  position: relative;
  width: 100%;
  overflow: visible;
}

.pm-country-search {
  cursor: text;
  text-align: left;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-position: right 16px center;
}

.pm-country-listbox {
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.pm-country-listbox[hidden],
.pm-country-listbox.is-hidden {
  display: none !important;
}

.pm-country-option {
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  color: #0f172a;
  border-radius: 8px;
  cursor: pointer;
}

.pm-country-option:hover,
.pm-country-option:focus {
  background: #fff7ed;
  color: #c2410c;
  outline: none;
}

.pm-country-option--empty {
  color: #64748b;
  cursor: default;
}

.pm-country-option--empty:hover {
  background: transparent;
  color: #64748b;
}

/* Content */
.pm-content {
  padding: 0 0 80px;
}

.pm-countries {
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
}

.pm-country {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  scroll-margin-top: 96px;
}

.pm-country__name {
  margin: 0;
  width: 100%;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.3;
  text-align: left;
}

.pm-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.pm-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
  min-height: 108px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-tile:hover {
  border-color: #fdba74;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.pm-tile__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff7ed;
  color: #c2410c;
  flex-shrink: 0;
}

.pm-tile__icon--logo {
  background: transparent;
  border-radius: 0;
}

.pm-tile__icon svg {
  width: 22px;
  height: 22px;
}

.pm-tile__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.pm-tile__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: #0f172a;
}

.pm-empty,
.is-hidden {
  display: none;
}

.pm-empty {
  padding: 64px 24px;
  text-align: center;
  font-size: 1.0625rem;
  color: #64748b;
}

.pm-empty:not(.is-hidden) {
  display: block;
}

@media (max-width: 1024px) {
  .pm-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pm-countries {
    gap: 64px;
  }

  .pm-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .pm-hero {
    padding: 100px 0 48px;
  }

  .pm-tiles {
    grid-template-columns: 1fr;
  }
}

/* CTA — fade into page background above footer */
.payment-methods-page .your-move {
  background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}
