/* Customer purchase access only. Shared brand, storefront and checkout stay intact. */
.z-orders-view:has(>#mis-pedidos:not([hidden])>.z-customer-access){max-width:760px;padding-block:20px 28px}
.z-orders-view:has(>#mis-pedidos:not([hidden])>.z-customer-access)>.z-orders-nav{justify-content:flex-end;margin-bottom:12px;min-height:44px}
.z-orders-view:has(>#mis-pedidos:not([hidden])>.z-customer-access)>.z-orders-nav>a{display:none}
.z-orders-view:has(>#mis-pedidos:not([hidden])>.z-customer-access) #new-order{min-height:44px;margin:0;padding:9px 14px;border:1px solid var(--line,#dfe4d8);border-radius:12px;background:transparent!important;color:var(--field,#174c3c)!important;border-color:var(--line,#dfe4d8)!important;box-shadow:none;font-size:13px;font-weight:600}
.z-order-history:has(>.z-customer-access){padding:24px;border-radius:20px;margin:0;background:#fff}
.z-order-history:has(>.z-customer-access)>h1{margin:0;font-size:28px;letter-spacing:-.7px;line-height:1.2}
.z-order-history:has(>.z-customer-access)>.z-eyebrow,.z-order-history:has(>.z-customer-access)>h1+p{display:none}
.z-order-history>.z-customer-access{border:0;border-radius:0;box-shadow:none;background:transparent;padding:0;margin:18px 0 0;scroll-margin-top:7rem}
.z-order-history>.z-customer-access h2{font-size:18px;line-height:1.35;margin:0 0 6px;font-weight:700;letter-spacing:0}
.z-order-history>.z-customer-access>p{font-size:14px;line-height:1.55;margin:0 0 16px;color:var(--muted,#607368);max-width:50ch}
.z-customer-access form{display:grid;gap:8px;max-width:420px;margin:0}
.z-customer-access label{font-size:13px;font-weight:600;color:var(--field,#174c3c);margin:0}
.z-customer-access input{width:100%;min-height:48px;box-sizing:border-box;font:inherit;font-size:16px;border:1px solid #c9d5c8;border-radius:12px;background:var(--field-soft,#f8faf5);color:inherit;padding:11px 14px;margin:0;transition:border-color .15s,box-shadow .15s}
.z-customer-access input::placeholder{color:#78867c;opacity:1}
.z-customer-access input:focus-visible{outline:2px solid var(--field,#174c3c);outline-offset:2px}
.z-customer-access .z-customer-code{font-variant-numeric:tabular-nums;letter-spacing:.3em;font-size:22px;max-width:240px}
.z-customer-access button.btn,.z-customer-access .z-customer-detail-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;max-width:100%;min-height:46px;margin:0;padding:11px 16px;border:1px solid transparent;border-radius:12px;font:inherit;font-size:14px;font-weight:600;line-height:1.4;text-align:center;white-space:normal;cursor:pointer;text-decoration:none;transition:background-color .15s,border-color .15s,box-shadow .15s}
.z-customer-access button.z-primary,.z-customer-access .z-customer-detail-button{background:var(--field,#174c3c);color:#fff;box-shadow:0 2px 4px #17392c12}
.z-customer-access button.z-primary:hover:not(:disabled),.z-customer-access .z-customer-detail-button:hover{box-shadow:0 3px 8px #17392c24}
.z-customer-access form>.btn{margin-top:4px;width:100%}
.z-customer-access button.z-customer-secondary,.z-customer-access .z-customer-detail-secondary{background:transparent;color:var(--field,#174c3c);border:1px solid #c6d4c8;box-shadow:none}
.z-customer-access button.z-customer-quiet{background:transparent;color:var(--muted,#607368);border-color:transparent;box-shadow:none}
.z-customer-access button.z-customer-secondary:hover:not(:disabled),.z-customer-access button.z-customer-quiet:hover:not(:disabled),.z-customer-access .z-customer-detail-secondary:hover{background:var(--field-soft,#edf2e9);border-color:#9fb69f}
.z-customer-access .btn:focus-visible,.z-customer-access summary:focus-visible{outline:3px solid #b66139;outline-offset:3px}
.z-customer-access .btn:active:not(:disabled){transform:translateY(1px)}
.z-customer-access button.btn:disabled{opacity:.65;cursor:wait}
.z-customer-access svg{flex:0 0 18px;pointer-events:none}
.z-customer-access [data-icon=refresh]>svg,.z-customer-access [data-icon=exit]>svg{order:-1}
.z-customer-access [data-icon=spinner]>svg{animation:z-customer-spin .9s linear infinite}
.z-order-history>.z-customer-access>.z-customer-reassurance{font-size:12px;line-height:1.5;max-width:420px;margin:10px 0 0}
.z-customer-access [role=status]:empty{display:none}
.z-order-history>.z-customer-access>[role=status]{padding:10px 12px;border-radius:10px;background:var(--field-soft,#edf2e9);font-weight:500;font-size:13px;margin:12px 0}
.z-order-history>.z-customer-access>[role=status][data-tone=error]{border-left:3px solid #b66139;background:#fbf5eb;color:#69462c}
.z-customer-access>button.btn{margin-top:12px;min-height:44px;font-size:13px;padding:9px 12px}
.z-customer-actions{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin:0 0 16px}
.z-customer-actions button.btn{min-height:44px;padding:9px 12px;font-size:13px}
.z-customer-access .z-order-list{margin:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:14px}
.z-customer-access .z-order-card,.z-order-history:has(>.z-customer-access)>#my-orders-list>.z-order-card{grid-template-columns:64px minmax(0,1fr);gap:5px 14px;padding:16px;border-radius:16px;box-shadow:0 2px 8px #203e3205}
.z-customer-access .z-order-card-title{font-size:17px;line-height:1.35}
.z-customer-access .z-order-thumb{width:64px;height:72px;border-radius:10px}
.z-customer-access .z-order-card-amount{font-size:18px;line-height:1.4}
.z-customer-access .z-order-state{font-size:11px;padding:4px 9px;line-height:1.4}
.z-customer-access .z-order-card-reference{margin:6px 0;font-size:12px;line-height:1.5}
.z-customer-order-detail{grid-column:1/-1;overflow-wrap:anywhere;font-size:13px;margin:0}
.z-customer-access .z-customer-detail-button{width:100%;min-height:44px;justify-content:space-between;list-style:none;padding:10px 14px}
.z-customer-order-detail summary::-webkit-details-marker{display:none}
.z-customer-order-detail[open]>summary>svg{transform:rotate(-90deg)}
.z-customer-detail-content{padding:14px 2px 2px;font-size:13px}
.z-customer-detail-content strong{font-size:12px;font-weight:600;color:var(--muted,#607368)}
.z-customer-detail-content p{margin:4px 0 12px;line-height:1.5;overflow-wrap:anywhere}
.z-customer-adoption{grid-column:1/-1;padding:12px 0 0;margin:8px 0 0;border-top:1px solid var(--line,#dfe4d8)}
.z-customer-adoption strong{font-size:13px;font-weight:700}
.z-customer-adoption p{margin:5px 0 12px;font-size:13px;line-height:1.5;color:var(--muted,#607368)}
.z-customer-access .z-customer-save{width:100%;box-shadow:0 2px 4px #174c3c12}
.z-customer-access [hidden]{display:none!important}
.z-customer-access-hint{margin-block:0 1rem;font-size:.9rem}
/* Hide the duplicate guest projection only while the account is authenticated. */
.z-customer-authenticated>#my-orders-list,.z-customer-authenticated>#list-my-orders,.z-customer-authenticated>#my-orders-status{display:none!important}
.z-order-history:has(>#my-orders-list:empty):has(>.z-customer-access)>#list-my-orders,.z-order-history:has(>#my-orders-list:empty):has(>.z-customer-access)>#my-orders-status{display:none}
@keyframes z-customer-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){
 .z-orders-view:has(>#mis-pedidos:not([hidden])>.z-customer-access){padding-top:12px;padding-bottom:18px}
 .z-orders-view:has(>#mis-pedidos:not([hidden])>.z-customer-access)>.z-orders-nav{margin-bottom:8px}
 .z-order-history:has(>.z-customer-access){padding:20px 18px;border-radius:18px}
 .z-order-history:has(>.z-customer-access)>h1{font-size:26px}
 .z-order-history>.z-customer-access{margin-top:16px}
 .z-customer-actions{justify-content:space-between;gap:4px}
}
@media(prefers-reduced-motion:reduce){.z-customer-access .btn,.z-customer-access input{transition:none}.z-customer-access [data-icon=spinner]>svg{animation:none}.z-customer-access .btn:active:not(:disabled){transform:none}}

.z-order-history:has(>.z-customer-access)>#my-orders-list:empty{display:none}
.z-orders-view:has(>#mis-pedidos:not([hidden])>.z-customer-access) #new-order:hover:not(:disabled){background:var(--field-soft,#edf2e9)!important}

.z-orders-view:has(>#mis-pedidos:not([hidden])>.z-customer-access[data-authenticated=false]){max-width:520px}

/* Same Zembra tokens and existing card structure; verified order content only. */
.z-customer-detail-content .z-customer-delivery{padding-top:14px;margin-top:14px;border-top:1px solid var(--line,#dfe4d8)}
.z-customer-detail-content .z-customer-delivery p{font-size:15px;line-height:1.5;margin:5px 0;overflow-wrap:anywhere}
.z-customer-detail-content .z-customer-delivery strong{font-size:15px;line-height:1.5}

.z-customer-payment{padding:18px 0;border-bottom:1px solid var(--z-line,#dce3d6);margin-bottom:18px}.z-customer-payment h3{margin:0 0 8px}.z-customer-payment .z-customer-pay-total{font-size:1.75rem;font-weight:800;color:var(--z-green,#194c3b);margin:8px 0 14px}.z-customer-payment button{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:12px}.z-customer-payment p{line-height:1.55}.z-customer-payment small{display:block;font-size:.875rem;line-height:1.6;margin-top:12px}.z-customer-payment .z-customer-secondary{margin-top:12px}

.z-customer-return{font:16px/1.55 Arial,sans-serif;color:#194c3b;background:#fafbf7;max-width:620px;margin:40px auto;padding:24px}.z-customer-return>.z-customer-payment{margin-top:24px}.z-customer-return>a{font:700 30px Georgia,serif;color:#194c3b;text-decoration:none}.z-customer-return .z-primary{display:block;text-align:center;text-decoration:none}.z-customer-return h1{font-size:30px;line-height:1.2}
