.enkey-withdrawal-page {
  max-width: 920px;
  margin-inline: auto;
}

.enkey-withdrawal-intro {
  max-width: 70ch;
  margin-bottom: 1.5rem;
  color: var(--enkey-muted, #5d6878);
}

.enkey-withdrawal-card,
.enkey-withdrawal-order-callout,
.enkey-withdrawal-success {
  border: 1px solid var(--enkey-border, #d7dde6);
  border-radius: 1rem;
  background: var(--enkey-surface, #fff);
  box-shadow: 0 18px 45px rgba(12, 28, 48, 0.08);
}

.enkey-withdrawal-card {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.enkey-withdrawal-form {
  display: grid;
  gap: 1rem;
}

.enkey-withdrawal-origin {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  border: 0;
}

.enkey-withdrawal-origin legend,
.enkey-withdrawal-form fieldset > legend {
  width: 100%;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.enkey-withdrawal-origin label {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.8rem;
  border: 1px solid var(--enkey-border, #d7dde6);
  border-radius: 0.75rem;
  cursor: pointer;
}

.enkey-withdrawal-origin label:has(input:checked) {
  border-color: var(--enkey-blue, #207fe5);
  background: rgba(32, 127, 229, 0.08);
}

.enkey-withdrawal-privacy,
.enkey-withdrawal-version,
.enkey-withdrawal-form small {
  color: var(--enkey-muted, #5d6878);
  font-size: 0.85rem;
  line-height: 1.55;
}

.enkey-withdrawal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.enkey-withdrawal-summary > div,
.enkey-withdrawal-declaration {
  padding: 0.9rem;
  border: 1px solid var(--enkey-border, #d7dde6);
  border-radius: 0.75rem;
  background: rgba(32, 127, 229, 0.045);
}

.enkey-withdrawal-summary dt {
  color: var(--enkey-muted, #5d6878);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.enkey-withdrawal-summary dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.enkey-withdrawal-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--enkey-border, #d7dde6);
}

.enkey-withdrawal-item span {
  display: grid;
}

.enkey-withdrawal-actions,
.enkey-withdrawal-order-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.enkey-withdrawal-order-callout {
  margin-block: 1.25rem;
  padding: 1.25rem;
}

.enkey-withdrawal-order-callout h3,
.enkey-withdrawal-order-callout p {
  margin: 0;
}

.enkey-withdrawal-order-callout p {
  margin-top: 0.35rem;
  color: var(--enkey-muted, #5d6878);
}

.enkey-withdrawal-success {
  display: flex;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.enkey-withdrawal-success > .material-icons {
  color: #168655;
  font-size: 2.5rem;
}

.enkey-withdrawal-version {
  margin-top: 1rem;
  text-align: right;
}

html[data-enkey-theme="dark"] .enkey-withdrawal-card,
html[data-enkey-theme="dark"] .enkey-withdrawal-order-callout,
html[data-enkey-theme="dark"] .enkey-withdrawal-success,
html[data-enkey-theme="dark"] .enkey-withdrawal-summary > div,
html[data-enkey-theme="dark"] .enkey-withdrawal-declaration,
html[data-enkey-theme="dark"] .enkey-withdrawal-origin label {
  border-color: var(--enkey-border);
  color: var(--enkey-ink);
  background: var(--enkey-surface);
}

html[data-enkey-theme="dark"] .enkey-withdrawal-origin label:has(input:checked),
html[data-enkey-theme="dark"] .enkey-withdrawal-declaration {
  background: rgba(67, 151, 255, 0.12);
}

@media (max-width: 700px) {
  .enkey-withdrawal-origin,
  .enkey-withdrawal-summary {
    grid-template-columns: 1fr;
  }

  .enkey-withdrawal-actions,
  .enkey-withdrawal-order-callout {
    align-items: stretch;
    flex-direction: column;
  }
}

.enkey-retail-links{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;max-width:1140px;margin:1rem auto;padding:0 1rem}
.enkey-retail-notice{position:fixed;inset:auto 1rem 1rem;z-index:1050;max-width:34rem;margin-inline:auto;padding:1rem;background:#fff;color:#17212d;border:1px solid #263240;border-radius:.5rem;box-shadow:0 8px 24px #10182433}
.enkey-retail-notice[hidden]{display:none}
.enkey-retail-notice h2{font-size:1.15rem;margin:0 0 .5rem}
.enkey-retail-notice p{margin:.5rem 0}
.enkey-retail-notice a,.enkey-retail-links a{text-decoration:underline}
.enkey-retail-notice button,.enkey-retail-links button{background:#fff;color:#17212d;border:1px solid #727b86;border-radius:.25rem;padding:.375rem .625rem}
