/* Account (sign in, register, profile, order history) and the cookie notice.
   Uses the tokens from visual.css; chunk markup lives in _data/chunks/acc.*.yaml. */

.acc-page {
  padding-bottom: 56px;
}

.acc-shell {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}

.acc-wide {
  padding: 8px 0 24px;
}

.acc-card {
  width: 100%;
  max-width: 460px;
  padding: 32px 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}

.acc-wide .acc-card {
  max-width: none;
}

.acc-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

.acc-wide > .acc-title {
  margin-bottom: 20px;
}

.acc-card__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.acc-subtitle {
  margin: 26px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.acc-lead {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- forms ---------- */

.acc-form {
  display: block;
}

.acc-field {
  margin-bottom: 16px;
}

.acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.acc-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.acc-input {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  border: 1px solid rgba(42, 29, 18, 0.28);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.acc-input:focus {
  outline: 0;
  border-color: var(--wax);
  box-shadow: 0 0 0 3px rgba(254, 136, 2, 0.2);
}

.acc-input:disabled {
  background: var(--paper);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.acc-select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%232a1d12' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.acc-hint,
.acc-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.acc-hint {
  color: var(--ink-soft);
}

.acc-error {
  color: #b3261e;
}

.acc-field:has(.acc-error) .acc-input {
  border-color: #b3261e;
}

/* Honeypot: invisible to people, tempting to bots. */
.acc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- buttons, links, notes ---------- */

.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 10px 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--wax);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.acc-btn:hover {
  background: var(--wax-hover);
  color: var(--ink);
  text-decoration: none;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.acc-btn--block {
  display: flex;
  width: 100%;
}

.acc-btn--ghost {
  background: transparent;
}

.acc-btn--ghost:hover {
  background: var(--wash);
}

.acc-links,
.acc-switch {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.acc-links a,
.acc-switch a,
.acc-note a,
.acc-back a {
  color: var(--honey);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acc-switch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.acc-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}

.acc-alert {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-left: 4px solid;
  border-radius: var(--radius-control);
  font-size: 14px;
  line-height: 1.45;
}

.acc-alert--error {
  border-color: #b3261e;
  background: #fbeceb;
  color: #7d1913;
}

.acc-alert--ok {
  border-color: var(--green);
  background: #eef5e4;
  color: #274712;
}

.acc-done {
  text-align: center;
}

.acc-done__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 4px 0 16px;
  background: var(--wash);
  clip-path: var(--hex);
  color: var(--honey);
  font-size: 28px;
}

.acc-done__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.acc-back {
  margin: 0 0 16px;
}

/* ---------- account area ---------- */

.acc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.acc-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.acc-nav__link:hover {
  border-color: var(--wax);
  color: var(--ink);
  text-decoration: none;
}

.acc-nav__link.is-active {
  border-color: var(--ink);
  background: var(--wax);
}

.acc-nav__link--out {
  margin-left: auto;
  color: var(--ink-soft);
}

.acc-panels {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
}

/* ---------- order history ---------- */

.acc-orders {
  display: grid;
  gap: 12px;
}

.acc-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.acc-order:hover {
  border-color: var(--wax);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-decoration: none;
}

.acc-order__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.acc-order__num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.acc-order__meta {
  color: var(--ink-soft);
  font-size: 14px;
}

.acc-order__status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper-deep);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.acc-order--s2 .acc-order__status {
  background: #e6f0d8;
  color: #274712;
}

.acc-order--s3 .acc-order__status {
  background: #dce6f3;
  color: #1d3a63;
}

.acc-order--s4 .acc-order__status,
.acc-order--s5 .acc-order__status {
  background: #f6dcda;
  color: #7d1913;
}

.acc-order__sum {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.acc-order__go {
  color: var(--honey);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.acc-empty {
  padding: 40px 24px;
  border: 1px dashed rgba(42, 29, 18, 0.3);
  border-radius: var(--radius-card);
  text-align: center;
  color: var(--ink-soft);
}

.acc-empty p {
  margin: 0 0 16px;
}

.acc-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.acc-pager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.acc-pager__item.is-current {
  border-color: var(--ink);
  background: var(--wax);
}

/* Header icon for the account */
.header__account.is-in {
  color: var(--wax);
  border-color: rgba(254, 136, 2, 0.6);
}

/* The order details reuse the "thank you" block; in the account it is a plain detail view. */
.acc-orders-wrap .scm-success__check {
  display: none;
}

@media (max-width: 991px) {
  .acc-panels {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .acc-card {
    padding: 22px 18px 20px;
  }

  .acc-title {
    font-size: 26px;
  }

  .acc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .acc-order {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
  }

  .acc-order__status {
    justify-self: end;
  }

  .acc-order__go {
    display: none;
  }

  .acc-nav__link--out {
    margin-left: 0;
  }
}

/* ---------- cookie notice ---------- */

.cookie-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px 14px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  transform: translateY(0);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice.is-leaving {
  opacity: 0;
  transform: translateY(16px);
}

.cookie-notice__text {
  flex: 1 1 auto;
  margin: 0;
}

.cookie-notice__text a {
  color: var(--honey);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.cookie-notice__btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--wax);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.cookie-notice__btn:hover {
  background: var(--wax-hover);
}

@media (max-width: 575px) {
  .cookie-notice {
    right: 10px;
    bottom: 10px;
    left: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .cookie-notice__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice,
  .acc-btn,
  .acc-input {
    transition: none;
  }
}
