/* /plans: the Minecraft checkout. Builds on game.css (same layout as the game pages). */
.mc-plans { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mc-plan { padding: 18px 16px 16px; }
.mc-plan-top { display: flex; align-items: center; gap: 10px; }
.mc-plan-top img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.mc-plan .plan-price { font-size: 28px; margin: 12px 0 14px; }
.mc-plan .plan-specs { gap: 6px 12px; font-size: 13.5px; }
.mc-plan .plan-badge { top: 12px; right: 10px; }

.mc-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.mc-sw-btn { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  padding: 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s; }
.mc-sw-btn:hover { border-color: #4a4a5e; }
.mc-sw-btn.is-on { border-color: var(--yellow); background: #2a2616; }
.mc-sw-btn img { grid-row: 1 / 3; width: 40px; height: 40px; object-fit: contain; }
.mc-sw-btn b { color: #fff; font-size: 16px; }
.mc-sw-btn span { color: var(--text-2); font-size: 13.5px; line-height: 1.3; }
.mc-sw-btn .tag-rec { position: absolute; top: -9px; right: 10px; font-style: normal; }

.mc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mc-pill { height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--text); font: 600 15px/1 var(--body); cursor: pointer; }
.mc-pill:hover { border-color: #4a4a5e; }
.mc-pill.is-on { border-color: var(--yellow); color: #fff; background: #2a2616; }
#mc-version { max-width: 320px; }

.mc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mc-two .field { width: 100%; }
.loc.is-off { opacity: .45; cursor: not-allowed; }

.mc-promo { display: flex; gap: 8px; margin: 14px 0 4px; }
.mc-promo[hidden] { display: none; }
.mc-promo .field { flex: 1; min-width: 0; height: 42px; }
.mc-promo .btn { text-transform: none; padding: 0 16px; height: 42px; }
.mc-promo-msg { font-size: 13.5px; margin: 4px 0 0; }
.mc-promo-msg.ok { color: #86efac; }
.mc-promo-msg.err { color: #fca5a5; }
#sum-total s { color: var(--muted); font-size: .7em; margin-right: 6px; }
.mc-tos { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; font-size: 14.5px; color: var(--text-2); cursor: pointer; }
.mc-tos input { accent-color: var(--yellow); width: 16px; height: 16px; }
.mc-tos a { color: var(--yellow); }

@media (max-width: 700px) {
  .mc-two { grid-template-columns: 1fr; }
  .mc-sw { grid-template-columns: 1fr 1fr; }
  .mc-plans { grid-template-columns: 1fr 1fr; }
  .mc-plan .plan-price { font-size: 22px; }
}
@media (max-width: 520px) {
  .mc-plans { gap: 10px; }
  .mc-plan { padding: 14px 12px 12px; }
  .mc-plan-top { gap: 8px; }
  .mc-plan-top img { width: 26px; height: 26px; }
  .mc-plan .plan-name { font-size: 11.5px; letter-spacing: .1em; }
  .mc-plan .plan-badge { position: static; align-self: flex-start; margin-top: 8px; font-size: 10px; }
  .mc-plan .plan-price { font-size: 20px; margin: 10px 0; }
  .mc-plan .plan-price small { font-size: 12.5px; }
  .mc-plan .plan-specs { flex-direction: column; gap: 4px; font-size: 12.5px; padding-top: 10px; }
  .mc-sw-btn { grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 12px 10px; }
  .mc-sw-btn img { width: 30px; height: 30px; }
  .mc-sw-btn b { font-size: 14.5px; }
  .mc-sw-btn span { font-size: 12px; }
}
@media (max-width: 330px) {
  .mc-sw, .mc-plans { grid-template-columns: 1fr; }
}

/* step 6: extras */
.mc-extras { display: grid; gap: 14px; }
.mc-extras.is-off { opacity: .5; }
.mc-extra { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mc-extra + .mc-extra { border-top: 1px solid var(--line); padding-top: 14px; }
.mc-extra-text { display: grid; gap: 2px; min-width: 0; }
.mc-extra-text b { color: #fff; font-size: 16px; }
.mc-extra-text span { color: var(--text-2); font-size: 14px; }
.mc-step { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.mc-step button { width: 42px; height: 42px; border: 0; background: transparent; color: #fff; font: 700 20px/1 var(--body); cursor: pointer; }
.mc-step button:hover:not(:disabled) { background: var(--card-2); }
.mc-step button:disabled { color: #4a4a5e; cursor: not-allowed; }
.mc-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; cursor: pointer; }
.mc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit; }
.mc-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--card); border: 2px solid var(--line); transition: background .2s, border-color .2s; }
.mc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #8a8aa0; transition: transform .2s, background .2s; }
.mc-switch input:checked + span { background: var(--yellow); border-color: var(--yellow); }
.mc-switch input:checked + span::after { transform: translateX(22px); background: #111; }
.mc-switch input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.mc-switch input:disabled { cursor: not-allowed; }
.mc-switch .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mc-step output { min-width: 72px; text-align: center; font: 700 16px/1 var(--body); color: var(--yellow); }

/* server name taken */
.mc-name-err { margin: 6px 0 0; color: #f87171; font-size: 13.5px; font-weight: 600; }
.field.is-bad { border-color: #f87171 !important; box-shadow: 0 0 0 1px #f87171 inset; }
