/* Wallet-only layout polish. The application bundle stays untouched. */
.wallet-ui-v3-shell {
  width: 100% !important;
  max-width: 1480px !important;
  margin-inline: auto !important;
}

.wallet-ui-v3-layout {
  align-items: start !important;
  gap: 1.25rem !important;
}

.wallet-ui-v3-subscription {
  min-width: 0;
}

.wallet-ui-v3-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 1rem !important;
}

.wallet-ui-v3-plan-card {
  min-width: 0;
  min-height: 22rem;
  overflow: hidden;
}

.wallet-ui-v3-premium {
  border-color: rgb(14 165 233 / 0.24) !important;
  background: linear-gradient(180deg, rgb(240 249 255 / 0.58), var(--card, #fff)) !important;
}

.wallet-ui-v3-premium.wallet-ui-v3-recommended {
  border-color: rgb(245 158 11 / 0.62) !important;
  background: linear-gradient(180deg, rgb(255 251 235 / 0.94), var(--card, #fff)) !important;
}

.wallet-ui-v3-models {
  display: grid;
  gap: 0.2rem;
  margin: 0.5rem 0 0.7rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgb(14 165 233 / 0.2);
  border-radius: 0.65rem;
  background: rgb(240 249 255 / 0.72);
  line-height: 1.3;
}

.wallet-ui-v3-recommended .wallet-ui-v3-models {
  border-color: rgb(245 158 11 / 0.3);
  background: rgb(255 251 235 / 0.76);
}

.wallet-ui-v3-models__label {
  color: rgb(14 116 144);
  font-size: 0.68rem;
  font-weight: 700;
}

.wallet-ui-v3-models__primary {
  color: rgb(15 23 42);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.wallet-ui-v3-models__secondary {
  color: rgb(71 85 105);
  font-size: 0.69rem;
  overflow-wrap: anywhere;
}

@media (min-width: 1280px) {
  .wallet-ui-v3-layout {
    grid-template-columns: minmax(460px, 0.88fr) minmax(620px, 1.12fr) !important;
  }
}

@media (max-width: 1279px) {
  .wallet-ui-v3-layout {
    display: flex !important;
    flex-direction: column;
  }

  .wallet-ui-v3-subscription {
    width: 100% !important;
  }
}

@media (max-width: 639px) {
  .wallet-ui-v3-plan-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wallet-ui-v3-plan-card {
    min-height: 0;
  }
}
