/* Fotoherbst Commerce 3.6.1 – dashboard-width public shop layout */
:root{--fh-content:1380px;--fh-form:760px;--fh-gap:20px}
.shell{width:100%;max-width:var(--fh-content)!important;box-sizing:border-box;margin:0 auto!important;padding:24px 32px 48px!important}
.shop-top{width:100%;max-width:none;margin:0 0 18px!important;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
body:not(.admin) .card{box-sizing:border-box}
.checkout-card,.success-card{width:100%;max-width:none!important;margin-left:0!important;margin-right:0!important}
.checkout-card form{width:100%}
.checkout-card form>button,.checkout-card form>.actions{margin-top:20px}
.checkout-card .grid{align-items:start}
.checkout-card label{min-width:0}
.checkout-card input:not(.check),.checkout-card textarea,.checkout-card select{box-sizing:border-box;width:100%}
.customer-choice,.customer-status{width:100%;max-width:none;box-sizing:border-box;margin:0 0 18px;padding:18px 20px;border:1px solid rgba(120,130,145,.28);border-radius:14px;background:rgba(255,255,255,.72);display:flex;align-items:center;justify-content:space-between;gap:18px}
.customer-choice>div:first-child,.customer-status>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.customer-choice span,.customer-status span{font-size:.94rem;color:#657080}
.customer-choice-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.customer-status-mark{display:grid!important;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;font-size:18px!important;font-weight:700;background:rgba(30,130,80,.12);color:#1b754c!important}
.order-total,.payment-choice,.legal-confirm{box-sizing:border-box}
/* Keep authentication/security forms readable inside the wide shop canvas. */
.auth-card form,.account-security form{max-width:var(--fh-form)}
footer.card{width:100%;max-width:none;margin-left:0;margin-right:0}
@media(max-width:720px){.shell{padding:14px!important}.shop-top,.customer-choice,.customer-status{max-width:100%}.customer-choice,.customer-status{align-items:flex-start;flex-direction:column}.customer-choice-actions{width:100%;justify-content:stretch}.customer-choice-actions .btn,.customer-status .btn{width:100%;text-align:center;box-sizing:border-box}.checkout-card{max-width:100%!important}}


/* Fotoherbst Commerce 3.7.0 – customer dashboard and shop navigation */
.customer-nav{width:100%;display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px;padding:8px;border:1px solid rgba(120,130,145,.24);border-radius:14px;background:rgba(255,255,255,.72);box-sizing:border-box}
.customer-nav a{padding:10px 14px;border-radius:10px;text-decoration:none;font-weight:650}
.customer-nav a.active{background:rgba(70,90,120,.10)}
.customer-dashboard-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr);gap:24px;align-items:center}
.customer-dashboard-hero h2{margin:.2rem 0}.customer-latest{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid rgba(120,130,145,.22);border-radius:12px}.customer-latest strong{font-size:1.15rem}
.customer-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}.customer-stat{padding:18px 20px;border:1px solid rgba(120,130,145,.24);border-radius:14px;background:rgba(255,255,255,.72);display:flex;flex-direction:column;gap:4px;box-sizing:border-box}.customer-stat span,.customer-stat small{color:#657080}.customer-stat strong{font-size:1.55rem}
.customer-import{display:flex;justify-content:space-between;align-items:center;gap:20px}.customer-import p{margin:.3rem 0 0}.customer-import form{margin:0;flex:0 0 auto}.customer-section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:28px 0 12px}.customer-section-heading h2{margin:.15rem 0 0}.customer-order-list{display:grid;gap:14px}.customer-order-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.customer-order-card h2{margin:.2rem 0}.customer-order-card p{margin:.35rem 0}.customer-order-card .actions{justify-content:flex-end}
@media(max-width:900px){.customer-dashboard-hero{grid-template-columns:1fr}.customer-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-order-card,.customer-import{align-items:flex-start;flex-direction:column}.customer-order-card .actions{justify-content:flex-start}.customer-import form{width:100%}.customer-import button{width:100%}}
@media(max-width:560px){.customer-stat-grid{grid-template-columns:1fr}.customer-nav{display:grid;grid-template-columns:1fr 1fr}.customer-nav a{text-align:center}.customer-section-heading{align-items:flex-start;flex-direction:column}}


/* Fotoherbst Commerce 3.8.0 – customer order details and documents */
.customer-order-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0;overflow:hidden}.customer-order-summary>div{display:flex;flex-direction:column;gap:5px;padding:20px 22px;border-right:1px solid rgba(120,130,145,.20)}.customer-order-summary>div:last-child{border-right:0}.customer-order-summary strong{font-size:1.08rem}.customer-order-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.72fr);gap:18px;align-items:start}.customer-order-detail-grid aside{display:grid;gap:18px}.customer-order-detail-grid aside .card{margin:0}.customer-order-main table{width:100%}.table-scroll{overflow-x:auto}.customer-order-totals{margin:20px 0 0 auto;max-width:430px;display:grid;gap:8px}.customer-order-totals span{display:flex;justify-content:space-between;gap:20px}.customer-order-totals .grand{font-size:1.15rem;padding-top:10px;border-top:1px solid rgba(120,130,145,.28)}.customer-order-doc-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.customer-doc{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid rgba(120,130,145,.18)}.customer-doc:last-child{border-bottom:0}.customer-doc>div{display:flex;flex-direction:column;gap:3px;min-width:0}.customer-doc small{color:#657080}.customer-note{margin-top:22px;padding-top:18px;border-top:1px solid rgba(120,130,145,.22)}.order-item-personal{margin-top:5px}
@media(max-width:960px){.customer-order-summary{grid-template-columns:1fr 1fr}.customer-order-summary>div:nth-child(2){border-right:0}.customer-order-summary>div:nth-child(-n+2){border-bottom:1px solid rgba(120,130,145,.20)}.customer-order-detail-grid,.customer-order-doc-grid{grid-template-columns:1fr}}
@media(max-width:600px){.customer-order-summary{grid-template-columns:1fr}.customer-order-summary>div{border-right:0;border-bottom:1px solid rgba(120,130,145,.20)!important}.customer-order-summary>div:last-child{border-bottom:0!important}.customer-doc{align-items:flex-start;flex-direction:column}.customer-doc .btn{width:100%;box-sizing:border-box;text-align:center}}

/* Fotoherbst Commerce 3.9.0 – customer ticket center */
.ticket-center-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ticket-center-card{display:flex;flex-direction:column;justify-content:space-between;gap:18px;margin:0}.ticket-center-main{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:20px;align-items:start}.ticket-center-main h2{margin:.55rem 0 .25rem}.ticket-center-main p{margin:.35rem 0}.ticket-center-qr{display:grid;place-items:center;min-height:220px;padding:5px;border-radius:14px;background:#fff;box-sizing:border-box}.ticket-center-qr img{display:block;width:100%;max-width:210px;height:auto}.ticket-center-qr-disabled{background:rgba(120,130,145,.08);color:#657080;text-align:center;padding:24px}.ticket-center-actions{display:flex;gap:10px;flex-wrap:wrap}.ticket-status{display:inline-flex;align-items:center;width:max-content;padding:6px 10px;border-radius:999px;font-size:.88rem;font-weight:750}.ticket-status.active{background:rgba(30,130,80,.12);color:#17663f}.ticket-status.checked{background:rgba(65,100,160,.12);color:#365d96}.ticket-status.revoked{background:rgba(180,55,55,.12);color:#a32f2f}.ticket-status.pending{background:rgba(160,120,35,.13);color:#805f18}
@media(max-width:1000px){.ticket-center-grid{grid-template-columns:1fr}}@media(max-width:620px){.ticket-center-main{grid-template-columns:1fr}.ticket-center-qr{width:100%;max-width:360px;margin:0 auto}.ticket-center-qr img{max-width:320px}.ticket-center-actions{display:grid;grid-template-columns:1fr}.ticket-center-actions .btn{text-align:center;box-sizing:border-box;width:100%}}


/* Fotoherbst Commerce 3.10.0 – customer document center */
.document-center-list{display:grid;gap:14px}.document-center-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0}.document-center-card h2{margin:.45rem 0 .2rem}.document-center-card p{margin:.2rem 0}.document-center-meta{display:flex;align-items:center;gap:24px;text-align:right}.document-center-meta>strong{font-size:1.15rem;white-space:nowrap}.document-center-meta .actions{justify-content:flex-end}.document-type{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.82rem;font-weight:750;background:rgba(65,100,160,.12);color:#365d96}.document-type.credit{background:rgba(30,130,80,.12);color:#17663f}
@media(max-width:800px){.document-center-card,.document-center-meta{align-items:flex-start;flex-direction:column}.document-center-meta{width:100%;gap:12px;text-align:left}.document-center-meta .actions{width:100%;justify-content:flex-start}}@media(max-width:560px){.document-center-meta .actions{display:grid;grid-template-columns:1fr;width:100%}.document-center-meta .btn{width:100%;box-sizing:border-box;text-align:center}}


/* Fotoherbst Commerce 3.11.0 – customer communication center */
.customer-message-list{display:grid;gap:14px}.customer-message{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0}.customer-message.unread{border-left:4px solid currentColor}.customer-message h2{margin:.4rem 0 .25rem}.customer-message p{margin:.25rem 0}.customer-message .actions{justify-content:flex-end;align-items:center}.customer-message .actions form{margin:0}.message-state{display:inline-flex;margin-right:10px;padding:4px 8px;border-radius:999px;font-size:.78rem;font-weight:750;background:rgba(120,130,145,.12)}.customer-message.unread .message-state{background:rgba(65,100,160,.14);color:#365d96}.message-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;font-size:.72rem;background:rgba(65,100,160,.16);color:#365d96;box-sizing:border-box}.customer-message-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0}.customer-message-summary p{margin:.3rem 0 0}
@media(max-width:760px){.customer-message,.customer-message-summary{align-items:flex-start;flex-direction:column}.customer-message .actions{width:100%;justify-content:flex-start}.customer-message .actions .btn,.customer-message .actions form,.customer-message .actions button,.customer-message-summary .btn{width:100%;box-sizing:border-box;text-align:center}}


/* Fotoherbst Commerce 3.12.0 – customer privacy & data control */
.privacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.privacy-grid>.card{margin:0}.privacy-grid form{max-width:760px}.privacy-grid label{display:flex;align-items:flex-start;gap:10px;margin:18px 0}.privacy-grid label input[type=checkbox]{width:auto;flex:0 0 auto;margin-top:.2rem}
@media(max-width:800px){.privacy-grid{grid-template-columns:1fr}}
