/* ═══════════════════════════════════════════════════════════════════════════
   DreamPage «Min konto» — the signed-in account area.
   Loaded ONLY on account pages (see inc/account.php) — must never affect
   cart, checkout, product or content pages.

   Redesigned 21.10.2026: the pages sit flat on the white page (no card
   wrapped around the whole page), one page head per screen, cards only for
   things the customer acts on (a book, an address, an order line), one set
   of buttons and fields. Mobile-first; the menu is a sidebar on PC and a
   four-tab bar on a phone.

   The logged-out gate (lost password) and the shared .button rules live in
   site.css; the sign-in card has its own login.css.
   ═══════════════════════════════════════════════════════════════════════════ */

.woocommerce-account {
  --acc-ink: #132440;
  --acc-soft: rgba(19, 36, 64, 0.68);
  --acc-muted: rgba(19, 36, 64, 0.52);
  --acc-line: rgba(19, 36, 64, 0.09);
  --acc-line-strong: rgba(19, 36, 64, 0.18);
  --acc-fill: #f7f6fb;
  --acc-tint: #f1eefd;
  --acc-tint-strong: #e6e0fb;
  --acc-accent: #5b3fd6;
  --acc-accent-hover: #4a30c2;
  --acc-danger: #b0413e;
  --acc-danger-tint: #fbeeee;
  --acc-radius: 18px;
  --acc-radius-sm: 12px;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

/* WooCommerce's classic stylesheet floats the nav/content (30% / 68%) for
   its own two-column layout. Ours is a grid. */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: 100%;
  min-width: 0;
}

/* The logged-in area is an app surface — the marketing footer below it is
   noise. The login/registration gate keeps the footer. */
body.logged-in.woocommerce-account .dp-footer {
  display: none;
}

body.logged-in.woocommerce-account .dp-page-shell {
  padding-top: 44px;
  padding-bottom: 96px;
}

body.logged-in.woocommerce-account .dp-page-shell__inner {
  width: min(1120px, calc(100vw - 40px));
}

/* site.css gives every page article 24 px / 20 px padding on phones; the
   account layout brings its own gutters. */
body.logged-in.woocommerce-account .dp-page-article--account {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* .entry-content is the blog's reading column (1.82 line height, indented
   lists, underlined links, big heading margins) — none of it belongs here.
   Signed-in only: the sign-in and lost-password screens keep their look. */
body.logged-in.woocommerce-account .entry-content--account {
  color: var(--acc-ink);
  font-size: 1rem;
  line-height: 1.55;
}

.dp-account-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.dp-account-layout .dp-account-content {
  max-width: 860px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dp-account-layout ul,
.dp-account-layout ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dp-account-layout li {
  margin: 0;
}

.dp-account-layout p {
  margin: 0;
}

.woocommerce-account .dp-account-content .woocommerce-notices-wrapper {
  margin: 0;
}

.woocommerce-account .dp-account-content .woocommerce-notices-wrapper:empty {
  display: none;
}

.dp-account-layout a {
  text-decoration: none;
}

/* ── Menu: sidebar (PC) ──────────────────────────────────────────────────── */
.dp-account-nav {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dp-account-nav__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  min-width: 0;
}

.dp-account-nav__avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--acc-tint-strong);
  color: var(--acc-accent);
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.dp-account-nav__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dp-account-nav__name,
.dp-account-nav__email {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dp-account-nav__name {
  color: var(--acc-ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.dp-account-nav__email {
  color: var(--acc-muted);
  font-size: 0.8rem;
}

.dp-account-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dp-account-layout .dp-account-nav__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--acc-radius-sm);
  color: var(--acc-soft);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dp-account-layout .dp-account-nav__list a:hover {
  background: var(--acc-fill);
  color: var(--acc-ink);
}

.dp-account-nav__icon {
  flex: none;
  color: var(--acc-muted);
  transition: color 0.15s ease;
}

.dp-account-layout .dp-account-nav__list li.is-active a {
  background: var(--acc-tint);
  color: var(--acc-accent);
  font-weight: 600;
}

.dp-account-nav__list li.is-active .dp-account-nav__icon,
.dp-account-nav__list a:hover .dp-account-nav__icon {
  color: var(--acc-accent);
}

.dp-account-nav__list .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--acc-line);
}

.dp-account-nav__label--short {
  display: none;
}

.dp-account-layout .dp-account-nav__help {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.dp-account-nav__help-label {
  color: var(--acc-muted);
}

.dp-account-nav__help-email {
  color: var(--acc-accent);
  font-weight: 600;
}

.dp-account-nav__help:hover .dp-account-nav__help-email {
  text-decoration: underline;
}

/* ── Page head ───────────────────────────────────────────────────────────── */
.dp-account-head {
  margin: 0 0 28px;
}

.dp-account-layout .dp-account-head__back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 12px -4px;
  color: var(--acc-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.dp-account-layout .dp-account-head__back:hover {
  text-decoration: underline;
}

.dp-account-layout .dp-account-head__title {
  margin: 0;
  color: var(--acc-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.dp-account-layout .dp-account-head__sub {
  max-width: 54ch;
  margin: 8px 0 0;
  color: var(--acc-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.dp-account-head--dashboard {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dp-account-head__text {
  min-width: 0;
}

/* The PC sidebar already has «Logg ut»; the phone tab bar does not. */
.dp-account-layout .dp-account-head__logout,
.dp-account-details__logout {
  display: none;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.dp-account-section {
  margin: 0 0 40px;
}

.dp-account-section:last-child {
  margin-bottom: 0;
}

.dp-account-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
}

.dp-account-layout .dp-account-section__head h3,
.dp-account-layout .dp-view-order h3,
.dp-account-layout .dp-view-order__details h2 {
  margin: 0;
  color: var(--acc-ink);
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.dp-account-layout .dp-account-section__link {
  flex: none;
  color: var(--acc-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.dp-account-layout .dp-account-section__link:hover {
  text-decoration: underline;
}

/* ── Overview numbers ────────────────────────────────────────────────────── */
.dp-account-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 40px;
}

.dp-account-layout .dp-account-overview__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--acc-fill);
  color: inherit;
  font: inherit;
  text-align: left;
}

.dp-account-layout .dp-account-overview__card--support {
  background: var(--acc-tint);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dp-account-layout .dp-account-overview__card--support:hover {
  background: var(--acc-tint-strong);
}

.dp-account-overview__label {
  color: var(--acc-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.dp-account-overview__value {
  margin-top: 4px;
  color: var(--acc-ink);
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dp-account-overview__value--small {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.dp-account-overview__card--support .dp-account-overview__value {
  color: var(--acc-accent);
}

.dp-account-overview__hint {
  max-width: 100%;
  color: var(--acc-muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

/* ── Book / order cards ──────────────────────────────────────────────────── */
.dp-book-card-list {
  display: grid;
  gap: 12px;
}

/* Cover on the left spanning the card; title, progress and buttons stacked
   beside it. On a phone the cover moves up beside the title (below). */
.dp-book-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-areas:
    "media head"
    "media progress"
    "media actions";
  grid-template-rows: auto auto 1fr;
  gap: 14px 20px;
  padding: 20px;
  border: 1px solid var(--acc-line);
  border-radius: 20px;
  background: #fff;
}

.dp-book-card__media {
  grid-area: media;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--acc-tint);
}

.dp-book-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.woocommerce-account .dp-book-card__media img {
  height: 100%;
}

.dp-book-card__placeholder {
  display: flex;
  color: rgba(91, 63, 214, 0.5);
}

/* Several books in one order: the covers fanned out, first book in front. */
.dp-book-card__media--stack {
  position: relative;
  overflow: visible;
  background: none;
}

.dp-book-card__media--stack img {
  position: absolute;
  width: 76%;
  height: 76%;
  border: 2px solid #fff;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(19, 36, 64, 0.16);
}

.woocommerce-account .dp-book-card__media--stack img {
  height: 76%;
}

.dp-book-card__media--stack img:first-child {
  left: 0;
  bottom: 0;
  z-index: 3;
}

.dp-book-card__media--stack img:nth-child(2):not(:last-child) {
  left: 12%;
  bottom: 12%;
  z-index: 2;
  transform: rotate(3deg);
}

.dp-book-card__media--stack img:last-child:not(:first-child) {
  right: 0;
  top: 0;
  z-index: 1;
  transform: rotate(6deg);
}

.dp-book-card__header {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dp-account-layout .dp-book-card__meta {
  margin: 0 0 2px;
  color: var(--acc-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.dp-account-layout .dp-book-card__title {
  margin: 0;
  color: var(--acc-ink);
  font-family: "Fredoka", "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.dp-account-layout .dp-book-card__title--flere {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1.2rem;
}

.dp-account-layout .dp-book-card__child {
  margin: 2px 0 0;
  color: var(--acc-soft);
  font-size: 0.92rem;
}

.dp-book-card > .dp-progress,
.dp-book-card > .dp-progress__terminal {
  grid-area: progress;
}

.dp-book-card__actions {
  grid-area: actions;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

/* One button family for the account area: solid (primary), tinted
   (secondary, «Se boken») and plain links («Spor pakken»). */
.woocommerce-account .dp-book-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: var(--acc-radius-sm);
  background: var(--acc-accent);
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.woocommerce-account .dp-book-card__button:hover {
  background: var(--acc-accent-hover);
  color: #fff;
}

.woocommerce-account .dp-book-card__button--secondary {
  background: var(--acc-tint);
  color: var(--acc-accent);
}

.woocommerce-account .dp-book-card__button--secondary:hover {
  background: var(--acc-tint-strong);
  color: var(--acc-accent);
}

.dp-account-layout .dp-book-card__support {
  color: var(--acc-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.dp-account-layout .dp-book-card__support:hover {
  text-decoration: underline;
}

/* ── Progress bar (cards) ────────────────────────────────────────────────── */
.dp-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dp-progress__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dp-progress__label {
  color: var(--acc-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.dp-progress__percent {
  flex: none;
  color: var(--acc-accent);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dp-progress__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(19, 36, 64, 0.07);
  overflow: hidden;
}

.dp-progress__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--acc-accent) 0%, #7a68ec 100%);
}

.dp-account-layout .dp-progress__next {
  color: var(--acc-muted);
  font-size: 0.82rem;
}

.dp-account-layout .dp-progress__terminal {
  color: var(--acc-danger);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Order history rows (overview) ───────────────────────────────────────── */
.dp-account-layout .dp-order-rows {
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-radius);
  background: #fff;
  overflow: hidden;
}

.dp-order-rows__item + .dp-order-rows__item {
  border-top: 1px solid var(--acc-line);
}

.dp-account-layout .dp-order-rows__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 18px;
  color: inherit;
  transition: background-color 0.15s ease;
}

.dp-account-layout .dp-order-rows__link:hover {
  background: #faf9fd;
}

.dp-order-rows__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dp-order-rows__number {
  color: var(--acc-ink);
  font-weight: 600;
}

.dp-order-rows__date {
  color: var(--acc-muted);
  font-size: 0.84rem;
}

.dp-order-rows__side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dp-order-rows__status,
.dp-view-order__status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--acc-tint);
  color: var(--acc-accent);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.dp-order-rows__status--cancelled,
.dp-order-rows__status--refunded,
.dp-order-rows__status--failed,
.dp-view-order__status--cancelled,
.dp-view-order__status--refunded,
.dp-view-order__status--failed {
  background: var(--acc-danger-tint);
  color: var(--acc-danger);
}

.dp-order-rows__total {
  min-width: 84px;
  color: var(--acc-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.dp-order-rows__chevron {
  flex: none;
  color: var(--acc-muted);
}

/* ── Empty states ────────────────────────────────────────────────────────── */
.dp-account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 24px;
  border: 1px dashed var(--acc-line-strong);
  border-radius: 20px;
  text-align: center;
}

.dp-account-empty--soft {
  padding: 26px 22px;
}

.dp-account-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--acc-tint);
  color: var(--acc-accent);
}

.dp-account-layout .dp-account-empty__title {
  color: var(--acc-ink);
  font-size: 1.04rem;
  font-weight: 600;
}

.dp-account-layout .dp-account-empty__copy {
  max-width: 360px;
  color: var(--acc-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.woocommerce-account .dp-account-empty__cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 22px;
  border-radius: var(--acc-radius-sm);
  background: var(--acc-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.woocommerce-account .dp-account-empty__cta:hover {
  background: var(--acc-accent-hover);
  color: #fff;
}

/* ── Orders list pagination ──────────────────────────────────────────────── */
.dp-account-orders__pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.woocommerce-account .dp-account-orders__page-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--acc-line-strong);
  border-radius: var(--acc-radius-sm);
  background: #fff;
  color: var(--acc-ink);
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-account .dp-account-orders__page-link:hover {
  border-color: var(--acc-accent);
  color: var(--acc-accent);
}

/* ── Order page (view-order) ─────────────────────────────────────────────── */
.dp-account-layout .dp-view-order__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 10px 0 0;
  color: var(--acc-soft);
  font-size: 0.95rem;
}

.dp-view-order__books {
  margin: 0 0 16px;
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-radius);
  background: #fff;
  overflow: hidden;
}

.dp-view-order__book {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.dp-view-order__book + .dp-view-order__book {
  border-top: 1px solid var(--acc-line);
}

.dp-view-order__book-image {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

/* WooCommerce's `.woocommerce-page img { height: auto }` squashed the cover
   to 56x35 — pin the square. */
.woocommerce-account img.dp-view-order__book-image {
  height: 56px;
}

.dp-view-order__book-title {
  display: block;
  color: var(--acc-ink);
  font-weight: 600;
}

.dp-view-order__book-child {
  display: block;
  color: var(--acc-soft);
  font-size: 0.88rem;
}

/* Delivery estimate and the step timeline: one bordered block each. */
.dp-delivery-estimate,
.dp-view-order__progress {
  margin: 0 0 16px;
  padding: 22px;
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-radius);
  background: #fff;
}

.dp-delivery-estimate__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0 0 18px;
}

.dp-delivery-estimate__window {
  color: var(--acc-accent);
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap;
}

.dp-delivery-estimate__phases {
  display: grid;
  gap: 14px;
}

.dp-delivery-estimate__phase {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dp-delivery-estimate__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--acc-tint);
  color: var(--acc-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.dp-delivery-estimate__phase-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 2px;
  min-width: 0;
}

.dp-delivery-estimate__phase-label {
  color: var(--acc-ink);
  font-weight: 600;
}

.dp-delivery-estimate__phase-time {
  margin-left: 6px;
  color: var(--acc-accent);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.dp-delivery-estimate__phase-note {
  color: var(--acc-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.dp-account-layout .dp-delivery-estimate__disclaimer {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--acc-line);
  color: var(--acc-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.dp-account-layout .dp-view-order__progress > h3 {
  margin-bottom: 18px;
}

.dp-timeline__step {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 0 18px;
}

.dp-timeline__step::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: rgba(19, 36, 64, 0.1);
}

.dp-timeline__step:last-child {
  padding-bottom: 0;
}

.dp-timeline__step:last-child::before {
  display: none;
}

.dp-timeline__step--done::before {
  background: var(--acc-accent);
}

.dp-timeline__marker {
  flex: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(19, 36, 64, 0.16);
  border-radius: 50%;
  background: #fff;
  color: #fff;
}

.dp-timeline__step--done .dp-timeline__marker {
  border-color: var(--acc-accent);
  background: var(--acc-accent);
}

.dp-timeline__step--current .dp-timeline__marker {
  border-color: var(--acc-accent);
  box-shadow: 0 0 0 4px rgba(106, 90, 224, 0.14);
}

.dp-timeline__step--current .dp-timeline__marker::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acc-accent);
}

.dp-timeline__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.dp-timeline__label {
  color: var(--acc-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.dp-timeline__step--done .dp-timeline__label {
  color: var(--acc-ink);
}

.dp-timeline__step--current .dp-timeline__label {
  color: var(--acc-ink);
  font-weight: 600;
}

.dp-timeline__note {
  color: var(--acc-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.dp-timeline--terminal {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--acc-danger-tint);
}

.dp-account-layout .dp-timeline__terminal-label {
  margin: 0 0 4px;
  color: var(--acc-danger);
  font-weight: 600;
}

.dp-account-layout .dp-timeline__terminal-note {
  color: var(--acc-soft);
  font-size: 0.9rem;
}

.dp-account-layout .dp-timeline__terminal-note a,
.dp-account-layout .dp-view-order__support a {
  color: var(--acc-accent);
  font-weight: 600;
}

/* Betalingen feilet / venter på betaling (04.11.2026): «Betal nå» under teksten. */
.dp-progress--betaling {
  gap: 2px;
}

.woocommerce-account .dp-timeline__pay {
  margin-top: 12px;
}

/* «Avbryt» under the order details: the text sat at the top of the 52 px
   button (inline-block with line-height 1). */
.dp-view-order__details a.order-actions-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dp-tracking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--acc-tint);
}

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

.dp-tracking__label {
  color: var(--acc-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.dp-tracking__value {
  color: var(--acc-ink);
  font-size: 0.95rem;
  word-break: break-all;
}

.woocommerce-account .dp-tracking__button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--acc-radius-sm);
  background: var(--acc-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-account .dp-tracking__button:hover {
  background: var(--acc-accent-hover);
  color: #fff;
}

.dp-account-layout .dp-view-order__support {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--acc-line);
  color: var(--acc-muted);
  font-size: 0.88rem;
}

.dp-view-order__notes {
  margin: 0 0 16px;
}

.dp-account-layout .dp-view-order__notes > h3 {
  margin-bottom: 12px;
}

.dp-view-order__note {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--acc-fill);
}

.dp-view-order__note + .dp-view-order__note {
  margin-top: 8px;
}

.dp-account-layout .dp-view-order__note .meta {
  margin: 0 0 4px;
  color: var(--acc-muted);
  font-size: 0.8rem;
}

.dp-account-layout .dp-view-order__note .description p {
  font-size: 0.92rem;
}

/* WooCommerce's order table and customer details (woocommerce_view_order). */
.dp-view-order__details {
  margin-top: 36px;
}

.dp-account-layout .dp-view-order__details h2 {
  margin-bottom: 12px;
}

.dp-view-order__details .woocommerce-order-details,
.dp-view-order__details .woocommerce-customer-details {
  margin: 0 0 32px;
}

.dp-account-layout .dp-account-content table.shop_table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--acc-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--acc-radius);
  background: #fff;
  overflow: hidden;
  font-size: 0.95rem;
}

.dp-account-layout .dp-account-content table.shop_table th,
.dp-account-layout .dp-account-content table.shop_table td {
  padding: 14px 18px;
  border: 0;
  border-top: 1px solid var(--acc-line);
  background: transparent;
  color: var(--acc-ink);
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.dp-account-layout .dp-account-content table.shop_table thead th {
  border-top: 0;
  background: var(--acc-fill);
  color: var(--acc-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.dp-account-layout .dp-account-content table.shop_table .product-total,
.dp-account-layout .dp-account-content table.shop_table tfoot td {
  text-align: right;
  white-space: nowrap;
}

.dp-account-layout .dp-account-content table.shop_table .product-name a {
  color: var(--acc-ink);
}

.dp-account-layout .dp-account-content table.shop_table .product-quantity {
  color: var(--acc-muted);
  font-weight: 500;
}

.dp-account-layout .dp-account-content table.shop_table tfoot th {
  color: var(--acc-soft);
}

.dp-account-layout .dp-account-content table.shop_table tfoot tr:last-child th,
.dp-account-layout .dp-account-content table.shop_table tfoot tr:last-child td {
  color: var(--acc-ink);
  font-weight: 700;
}

.woocommerce-account .woocommerce-customer-details .col2-set::before,
.woocommerce-account .woocommerce-customer-details .col2-set::after {
  content: none;
  display: none;
}

.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.woocommerce-account .woocommerce-customer-details .woocommerce-column {
  float: none;
  width: auto;
  max-width: none;
}

.dp-account-layout .woocommerce-customer-details address {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-radius);
  background: #fff;
  color: var(--acc-soft);
  font-style: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.dp-account-layout .woocommerce-customer-details address p {
  margin: 6px 0 0;
}

/* ── Addresses ───────────────────────────────────────────────────────────── */
.dp-address-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.woocommerce-account .dp-address-card {
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-radius);
  background: #fff;
}

.dp-address-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.dp-account-layout .dp-address-card__title {
  margin: 0;
  color: var(--acc-ink);
  font-family: "Poppins", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.dp-account-layout .dp-address-card__edit {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--acc-tint);
  color: var(--acc-accent);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.dp-account-layout .dp-address-card__edit:hover {
  background: var(--acc-tint-strong);
}

.dp-account-layout .dp-address-card__body {
  margin: 0;
  color: var(--acc-soft);
  font-style: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.dp-address-card--empty .dp-address-card__body {
  color: var(--acc-muted);
  font-size: 0.92rem;
}

/* ── Forms (Kontodetaljer, edit address) ─────────────────────────────────── */
.dp-account-layout .dp-account-content form {
  max-width: 640px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dp-account-layout .dp-account-content .form-row {
  float: none;
  width: auto;
  margin: 0 0 18px;
  padding: 0;
}

.dp-account-layout .dp-account-content .form-row label {
  display: block;
  margin: 0 0 6px;
  color: var(--acc-ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.dp-account-layout .dp-account-content .required {
  color: var(--acc-danger);
  border: 0;
  text-decoration: none;
}

.dp-account-layout .dp-account-content .form-row .optional {
  color: var(--acc-muted);
  font-weight: 400;
}

.dp-account-layout .dp-account-content input.input-text,
.dp-account-layout .dp-account-content input[type="text"],
.dp-account-layout .dp-account-content input[type="email"],
.dp-account-layout .dp-account-content input[type="password"],
.dp-account-layout .dp-account-content input[type="tel"],
.dp-account-layout .dp-account-content select,
.dp-account-layout .dp-account-content textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--acc-line-strong);
  border-radius: var(--acc-radius-sm);
  background: #fff;
  box-shadow: none;
  color: var(--acc-ink);
  font-family: inherit;
  /* 16 px: anything smaller makes iOS Safari zoom into the field. */
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-account-layout .dp-account-content input.input-text:focus,
.dp-account-layout .dp-account-content select:focus,
.dp-account-layout .dp-account-content textarea:focus {
  outline: none;
  border-color: var(--acc-accent);
  box-shadow: 0 0 0 3px rgba(106, 90, 224, 0.16);
}

/* WooCommerce's eye button sits inside the password field. */
.dp-account-layout .dp-account-content .password-input {
  display: block;
  position: relative;
  width: 100%;
}

.dp-account-layout .dp-account-content .password-input input {
  padding-right: 48px;
}

/* Country picker (selectWoo) dressed as the other fields. */
.dp-account-layout .select2-container {
  width: 100% !important;
}

.dp-account-layout .select2-container--default .select2-selection--single {
  height: 48px;
  border: 1px solid var(--acc-line-strong);
  border-radius: var(--acc-radius-sm);
  background: #fff;
}

/* WooCommerce gives the text 8 px padding all round, which pushed it below
   the middle of the 48 px box. */
.dp-account-layout .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 36px 0 14px;
  color: var(--acc-ink);
  font-size: 1rem;
  line-height: 46px;
}

.dp-account-layout .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 1px;
  right: 8px;
  height: 46px;
}

.dp-account-layout .select2-container--focus .select2-selection--single,
.dp-account-layout .select2-container--open .select2-selection--single {
  border-color: var(--acc-accent);
  box-shadow: 0 0 0 3px rgba(106, 90, 224, 0.16);
}

.dp-account-form__grid,
.dp-account-layout .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.dp-account-layout .woocommerce-address-fields__field-wrapper > .form-row {
  grid-column: 1 / -1;
}

/* Names, and postcode + city, pair up on one row. */
.dp-account-layout .woocommerce-address-fields__field-wrapper > .form-row-first,
.dp-account-layout .woocommerce-address-fields__field-wrapper > .form-row-last,
.dp-account-layout .woocommerce-address-fields__field-wrapper > [id$="_postcode_field"],
.dp-account-layout .woocommerce-address-fields__field-wrapper > [id$="_city_field"] {
  grid-column: auto;
}

/* WooCommerce's clearfix pseudo-elements would take a grid cell each. */
.dp-account-layout .woocommerce-address-fields__field-wrapper::before,
.dp-account-layout .woocommerce-address-fields__field-wrapper::after,
.dp-account-form__grid::before,
.dp-account-form__grid::after {
  content: none;
  display: none;
}

.dp-account-layout .dp-account-form__note {
  display: block;
  margin-top: 6px;
  color: var(--acc-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* «Bytt passord»: a section of the form, not a box inside the box. */
.dp-account-layout .dp-password-fieldset {
  min-width: 0;
  margin: 30px 0 8px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--acc-line);
  border-radius: 0;
  background: transparent;
}

/* A floated legend renders as a normal block inside the fieldset instead of
   sitting on its border. */
.dp-account-layout .dp-password-fieldset legend {
  float: left;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  color: var(--acc-ink);
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.dp-account-layout .dp-password-fieldset__hint {
  clear: both;
  margin: 0 0 18px;
  color: var(--acc-soft);
  font-size: 0.92rem;
}

.dp-account-layout .dp-account-form__submit-row,
.dp-account-layout .dp-address-form__submit {
  margin: 8px 0 0;
}

.woocommerce-account .dp-account-content button[type="submit"],
.woocommerce-account .dp-account-content .dp-account-form .dp-account-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--acc-radius-sm) !important;
  background: var(--acc-accent);
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
  transition: background-color 0.15s ease;
}

.woocommerce-account .dp-account-content .dp-account-form .dp-account-submit::before {
  content: none;
}

.woocommerce-account .dp-account-content button[type="submit"]:hover,
.woocommerce-account .dp-account-content .dp-account-form .dp-account-submit:hover {
  background: var(--acc-accent-hover);
  box-shadow: none;
  color: #fff;
  transform: none;
}

/* ── Notices («Adressen er endret» …) ────────────────────────────────────────
   header.php prints WooCommerce's notices in a bar under the site header
   (.dp-site-notices), above the account layout. */
body.logged-in.woocommerce-account .dp-site-notices {
  border-bottom: 0;
  background: #fff;
}

body.logged-in.woocommerce-account .dp-site-notices__inner {
  width: min(1120px, calc(100vw - 40px));
  padding: 16px 0 0;
}

.woocommerce-account .dp-site-notices .woocommerce-message,
.woocommerce-account .dp-site-notices .woocommerce-info,
.woocommerce-account .dp-site-notices .woocommerce-error {
  margin: 0;
  padding: 14px 18px 14px 46px;
  border: 1px solid var(--acc-line);
  border-radius: 14px;
  background: var(--acc-fill);
  box-shadow: none;
  color: var(--acc-ink);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* WooCommerce focuses the notice for screen readers (tabindex -1); the
   browser's focus ring drew a thick black frame around it. */
.woocommerce-account .dp-site-notices [role="alert"]:focus {
  outline: none;
}

.woocommerce-account .dp-site-notices .woocommerce-message {
  border-color: rgba(36, 138, 82, 0.22);
  background: #f1faf4;
}

.woocommerce-account .dp-site-notices .woocommerce-error {
  border-color: rgba(176, 65, 62, 0.22);
  background: var(--acc-danger-tint);
}

.woocommerce-account .dp-site-notices .woocommerce-message::before {
  color: #248a52;
}

.woocommerce-account .dp-site-notices .woocommerce-message::before,
.woocommerce-account .dp-site-notices .woocommerce-info::before,
.woocommerce-account .dp-site-notices .woocommerce-error::before {
  top: 15px;
  left: 16px;
}

.woocommerce-account .dp-site-notices .woocommerce-error li {
  margin: 0;
}

/* Short pages (Adresser) ended in the beige site background under the white
   page — the footer that normally fills it is hidden here. */
body.logged-in.woocommerce-account {
  background: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Tablet and phone (≤989px): one column, the menu becomes a tab bar.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 989px) {
  body.logged-in.woocommerce-account .dp-page-shell {
    padding-top: 20px;
  }

  .dp-account-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .dp-account-layout .dp-account-content {
    max-width: none;
  }

  .dp-account-nav {
    position: static;
  }

  .dp-account-nav__profile,
  .dp-account-layout .dp-account-nav__help,
  .dp-account-nav__list .woocommerce-MyAccount-navigation-link--customer-logout {
    display: none;
  }

  .dp-account-nav__list {
    flex-direction: row;
    gap: 4px;
    padding: 4px;
    border-radius: 16px;
    background: #f2f0f8;
  }

  .dp-account-nav__list li {
    flex: 1 1 0;
    min-width: 0;
  }

  .dp-account-layout .dp-account-nav__list a {
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .dp-account-layout .dp-account-nav__list a:hover {
    background: rgba(255, 255, 255, 0.6);
  }

  .dp-account-layout .dp-account-nav__list li.is-active a {
    background: #fff;
    box-shadow: 0 1px 2px rgba(19, 36, 64, 0.08), 0 4px 14px rgba(19, 36, 64, 0.06);
  }

  .dp-account-head--dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 12px;
  }

  .dp-account-head--dashboard .dp-account-head__text {
    display: contents;
  }

  .dp-account-head--dashboard .dp-account-head__title {
    grid-column: 1;
    grid-row: 1;
  }

  .dp-account-head--dashboard .dp-account-head__sub {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .dp-account-layout .dp-account-head__logout {
    grid-column: 2;
    grid-row: 1;
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--acc-line-strong);
    border-radius: 999px;
    color: var(--acc-soft);
    font-size: 0.86rem;
    font-weight: 600;
  }

  .dp-account-layout .dp-account-details__logout {
    display: block;
    max-width: 640px;
    margin: 32px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--acc-line);
    text-align: center;
  }

  .dp-account-layout .dp-account-details__logout a {
    color: var(--acc-soft);
    font-size: 0.92rem;
    font-weight: 600;
  }
}

/* Two columns of numbers on tablets and phones. */
@media (max-width: 749px) {
  body.logged-in.woocommerce-account .dp-page-shell__inner {
    width: 100%;
  }

  body.logged-in.woocommerce-account .dp-site-notices__inner {
    width: calc(100vw - 32px);
  }

  body.logged-in.woocommerce-account .dp-page-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .dp-account-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 32px;
  }

  .dp-account-layout .dp-account-overview__card {
    padding: 14px 16px;
  }

  .dp-account-overview__value {
    font-size: 1.3rem;
  }

  .dp-account-overview__value--small {
    font-size: 0.98rem;
  }

  .dp-account-section {
    margin-bottom: 32px;
  }

  .dp-address-list,
  .woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .dp-account-layout .dp-account-head__sub {
    font-size: 0.95rem;
  }

  .dp-delivery-estimate,
  .dp-view-order__progress {
    padding: 18px;
  }

  .dp-account-layout .dp-account-content table.shop_table th,
  .dp-account-layout .dp-account-content table.shop_table td {
    padding: 12px 14px;
  }

  .woocommerce-account .dp-account-content button[type="submit"],
  .woocommerce-account .dp-account-content .dp-account-form .dp-account-submit {
    width: 100%;
  }
}

/* Phone: icon above a short label so all four tabs fit; book cards put the
   cover beside the title and give progress and buttons the full width. */
@media (max-width: 600px) {
  .dp-account-layout .dp-account-nav__list a {
    flex-direction: column;
    gap: 3px;
    min-height: 56px;
    padding: 6px 2px;
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .dp-account-nav__label--long {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .dp-account-nav__label--short {
    display: inline;
  }

  .dp-account-layout .dp-account-nav__list a {
    position: relative;
  }

  .dp-book-card {
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas:
      "media head"
      "progress progress"
      "actions actions";
    grid-template-rows: auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--acc-radius);
  }

  .dp-book-card__media {
    width: 68px;
    height: 68px;
    border-radius: 12px;
  }

  .dp-book-card__media--stack img {
    border-radius: 8px;
  }

  .dp-account-layout .dp-book-card__title {
    font-size: 1.2rem;
  }

  .dp-account-layout .dp-book-card__title--flere {
    font-size: 1.06rem;
  }

  .dp-book-card__actions {
    gap: 8px;
  }

  .dp-book-card__actions > .dp-book-card__button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
  }

  .dp-book-card__actions > .dp-book-card__support {
    flex-basis: 100%;
    text-align: center;
  }

  .dp-account-layout .dp-order-rows__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 2px 10px;
    padding: 14px 10px 14px 16px;
  }

  .dp-order-rows__main,
  .dp-order-rows__side {
    display: contents;
  }

  .dp-order-rows__number {
    grid-column: 1;
    grid-row: 1;
  }

  .dp-order-rows__date {
    grid-column: 1;
    grid-row: 2;
  }

  .dp-order-rows__status {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    margin-top: 6px;
  }

  .dp-order-rows__total {
    grid-column: 2;
    grid-row: 1 / 4;
    min-width: 0;
  }

  .dp-order-rows__chevron {
    grid-column: 3;
    grid-row: 1 / 4;
  }

  .dp-account-layout .dp-account-head__title {
    font-size: 1.75rem;
  }
}

@media (max-width: 380px) {
  .dp-account-form__grid,
  .dp-account-layout .woocommerce-address-fields__field-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .dp-account-layout .woocommerce-address-fields__field-wrapper > .form-row {
    grid-column: 1 / -1;
  }
}
