/* The customer's account on a webshop (templates/site/account/) and the
   order page (templates/site/order.html.twig): wider than the shop's card
   (as the checkout), in the site's text font, its heading font
   (--pgb-head-font, Shop\ShopPageFrame) and its accent (--pgb-accent).
   Loaded with shop.css (site/page.html.twig), also in the editor canvas. */
.ec-block:has(.pgb-acc-head),
.ec-block-styled:has(.pgb-acc-head),
.pgb-shop-page:has(.pgb-acc-head),
.ec-block:has(.pgb-ord),
.ec-block-styled:has(.pgb-ord),
.pgb-shop-page:has(.pgb-ord) {
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
}
.pgb-card:has(.pgb-acc-head),
.pgb-card:has(.pgb-ord) {
    box-sizing: border-box;
    width: 100%;
    max-width: 1080px !important;
}
.pgb-card:has(.pgb-acc-head) h1,
.pgb-card:has(.pgb-ord) h1 {
    font-family: var(--pgb-head-font, inherit);
    font-size: 34px;
    font-weight: 600;
}
.pgb-acc-card h2,
.pgb-ord-sub {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

/* The head: the greeting, signing out, the pages */
.pgb-acc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
}
.pgb-acc-head form {
    margin: 0;
}
.pgb-acc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 20px 0 24px;
    border-bottom: 1px solid #e2e8f0;
}
.pgb-acc-nav a {
    padding: 10px 14px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
}
.pgb-acc-nav a.is-on {
    border-bottom-color: var(--pgb-accent, #1e293b);
    color: inherit;
    font-weight: 600;
}

/* Buttons next to the shop's: a line one, a small one */
.pgb-button--line {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: inherit;
}
.pgb-card a.pgb-button--line {
    color: inherit;
}
.pgb-button--sm {
    padding: 10px 16px;
    font-size: 14px;
}
.pgb-acc-head .pgb-button--sm {
    padding: 8px 14px;
}

/* Cards, notes, what was just done */
.pgb-acc-card {
    box-sizing: border-box;
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}
.pgb-acc-card--quiet {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    border-style: dashed;
}
.pgb-acc-note {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
.pgb-acc-said {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    font-size: 14px;
}
.pgb-acc-empty {
    margin: 0;
    color: #64748b;
}
.pgb-acc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pgb-acc-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.pgb-acc-badge--busy {
    background: color-mix(in srgb, var(--pgb-accent, #1e293b) 12%, #fff);
    color: color-mix(in srgb, var(--pgb-accent, #1e293b) 80%, #000);
}
.pgb-acc-badge--done {
    background: #dcfce7;
    color: #166534;
}

/* The steps: paid, sent, delivered */
.pgb-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}
.pgb-steps li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #94a3b8;
}
.pgb-steps li::before {
    content: "";
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
}
.pgb-steps li.is-done {
    color: inherit;
}
.pgb-steps li.is-done::before {
    background: var(--pgb-accent, #1e293b);
}
.pgb-step-name {
    font-weight: 600;
}
.pgb-steps li.is-done .pgb-step-when {
    color: #64748b;
}

/* The orders: a card each */
.pgb-acc-orders {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pgb-acc-order {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}
.pgb-acc-order-top,
.pgb-acc-order-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}
.pgb-acc-order-id {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}
.pgb-acc-order-id span {
    color: #64748b;
    font-size: 14px;
}
.pgb-acc-items {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.pgb-acc-items img,
.pgb-acc-thumb,
.pgb-acc-download img,
.pgb-ord-line img {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f1f5f9;
    object-fit: cover;
}
.pgb-acc-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    margin-left: 6px;
    font-size: 14px;
}
.pgb-acc-names strong {
    font-size: 15px;
}
.pgb-acc-names span {
    color: #64748b;
}
.pgb-acc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The downloads strip under the orders, and the downloads page */
.pgb-acc-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 16px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
}
.pgb-card a.pgb-acc-strip {
    color: inherit;
}
.pgb-acc-strip-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: var(--pgb-accent, #1e293b);
}
.pgb-acc-strip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}
.pgb-acc-strip-text span {
    color: #64748b;
}
.pgb-acc-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pgb-acc-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.pgb-acc-download.is-closed {
    opacity: 0.6;
}
.pgb-acc-download-text {
    display: flex;
    flex: 1 1 200px;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 14px;
}
.pgb-acc-download-text span {
    color: #64748b;
}

/* Mijn gegevens: the forms in a grid */
.pgb-acc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.pgb-acc-grid .pgb-form {
    gap: 12px;
    margin: 0;
}
.pgb-acc-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.pgb-acc-row label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}
.pgb-acc-grid select {
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 16px;
}
.pgb-acc-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 14px;
}
.pgb-acc-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.pgb-acc-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
}
.pgb-switch {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.pgb-switch-knob {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.15s;
}
.pgb-switch-knob::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.15s;
}
.pgb-switch.is-on .pgb-switch-knob {
    background: var(--pgb-accent, #1e293b);
}
.pgb-switch.is-on .pgb-switch-knob::after {
    left: 21px;
}
.pgb-acc-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
}
.pgb-acc-check input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
}
.pgb-acc-card--quiet h2,
.pgb-acc-card--quiet .pgb-acc-check {
    color: #64748b;
}

/* The order page: its lines and where it is, the summary beside */
.pgb-ord-back {
    display: inline-block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
}
.pgb-card a.pgb-ord-back {
    color: #64748b;
}
.pgb-ord-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 22px;
}
.pgb-ord {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
}
.pgb-ord-main {
    display: flex;
    flex: 999 1 460px;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.pgb-ord-side {
    display: flex;
    flex: 1 1 260px;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.pgb-ord-main .pgb-acc-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pgb-ord-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 14px;
}
.pgb-ord-track > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pgb-ord-track span {
    color: #64748b;
}
.pgb-ord-lines {
    gap: 0 !important;
    padding-top: 4px;
    padding-bottom: 4px;
}
.pgb-ord-line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}
.pgb-ord-line:last-child {
    border-bottom: 0;
}
.pgb-ord-line-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.pgb-ord-line-text a {
    font-weight: 600;
    text-decoration: none;
}
.pgb-ord-line-text span {
    color: #64748b;
    font-size: 14px;
}
.pgb-ord-sum {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}
.pgb-ord-sum > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.pgb-ord-sum > div > span:first-child {
    color: #64748b;
}
.pgb-ord-total {
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 16px;
    font-weight: 700;
}
.pgb-ord-total > span:first-child {
    color: inherit !important;
}
.pgb-ord-who {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    line-height: 1.55;
}
.pgb-ord-who p {
    margin: 0 0 8px;
}
.pgb-ord-return summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}
.pgb-ord-return .pgb-return {
    margin: 14px 0 0;
}
.pgb-ord-side .pgb-button--line {
    text-align: center;
}

@media (max-width: 760px) {
    .pgb-acc-grid,
    .pgb-acc-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .pgb-card:has(.pgb-acc-head) h1,
    .pgb-card:has(.pgb-ord) h1 {
        font-size: 28px;
    }
    .pgb-acc-actions {
        width: 100%;
    }
    .pgb-acc-actions .pgb-button {
        flex: 1 1 auto;
        text-align: center;
    }
}
