#gp-checkout{padding:16px 0;color:var(--gp-ink)}
#gp-checkout h3{margin:18px 0 10px}
#delivery-account{border:1px solid var(--gp-border);border-radius:10px;padding:12px}
#delivery-account summary{cursor:pointer;font-weight:bold}
#delivery-details,#delivery-auth-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#gp-checkout input:not([type=checkbox]),#gp-checkout textarea,#gp-checkout select{width:100%;padding:9px;border-radius:6px;border:1px solid var(--gp-border);font:inherit}
#gp-checkout input[type=checkbox]{width:auto}
#gp-checkout label{display:block;color:var(--gp-ink)}
#gp-checkout .delivery-wide,#gp-checkout .delivery-actions{grid-column:1/-1}
#gp-checkout .delivery-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#gp-checkout button:not(.gp-button),#gp-checkout a:not(.gp-button){color:var(--gp-ink);background:var(--gp-panel);padding:8px;border:1px solid var(--gp-border);border-radius:6px;cursor:pointer}
#delivery-receipt img{display:block;width:min(100%,350px);height:auto;border:1px solid var(--gp-border);margin:10px auto}
#delivery-pages figure{margin:10px 0;text-align:center}
#delivery-feedback:not(:empty),#delivery-account-status:not(:empty){padding:9px 0;font-size:13px}
#delivery-receipt p{padding:14px 0}
@media(max-width:520px){#delivery-details,#delivery-auth-form{grid-template-columns:1fr}}
#delivery-history{border:1px solid var(--gp-border);padding:12px;border-radius:10px;margin:12px 0}
#delivery-history summary{cursor:pointer;font-weight:700}
#gp-checkout .gp-history-order,#grafiplot-preview .gp-store-admin .gp-history-order{padding:12px;margin:10px 0;background:var(--gp-bg);border:1px solid var(--gp-border);border-radius:8px;overflow-wrap:anywhere}
#grafiplot-preview .gp-store-admin{border-top:2px solid var(--gp-border);padding-top:20px;margin-top:25px}
#grafiplot-preview .gp-store-admin button{border:1px solid var(--gp-border);border-radius:6px;padding:10px;background:var(--gp-panel);color:var(--gp-ink);cursor:pointer;margin:5px}
#grafiplot-preview .gp-history-customer{padding:14px;margin:12px 0;background:var(--gp-panel);border:1px solid var(--gp-border);border-radius:8px;overflow-wrap:anywhere}
#delivery-text{white-space:pre-wrap;padding:12px;max-height:240px;overflow:auto;background:var(--gp-panel);border:1px solid var(--gp-border);font:13px Arial;border-radius:8px}
#delivery-receipt>.delivery-actions{position:static}

#delivery-personal-offer{padding:15px;margin:15px 0;border:1px solid var(--gp-red);border-radius:10px;background:var(--gp-panel);color:var(--gp-ink)}
#delivery-personal-offer p{font-size:12px;margin-top:6px}
#grafiplot-preview .gp-customer-offer{border:1px solid var(--gp-border);border-radius:8px;padding:12px;margin-top:12px;background:var(--gp-bg)}
#grafiplot-preview .gp-customer-offer summary{font-weight:700;cursor:pointer}
#grafiplot-preview .gp-offer-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
#grafiplot-preview .gp-offer-fields label{display:flex;flex-direction:column;font-size:12px;color:var(--gp-ink)}
#grafiplot-preview .gp-offer-fields input[type=checkbox]{align-self:flex-start;width:auto;margin:10px}
#grafiplot-preview .gp-offer-fields small{grid-column:1/-1;color:var(--gp-muted)}
@media(max-width:550px){#grafiplot-preview .gp-offer-fields{grid-template-columns:1fr}}

#delivery-option-dialog{width:min(480px,calc(100vw - 32px));box-sizing:border-box;border:1px solid var(--gp-border);border-radius:18px;padding:28px;background:var(--gp-bg);color:var(--gp-ink);box-shadow:0 20px 80px #0005}
#delivery-option-dialog::backdrop{background:#00112699;backdrop-filter:blur(3px)}
#delivery-option-dialog p{margin:16px 0;color:var(--gp-ink)}
#delivery-option-dialog .delivery-option-actions{display:grid;gap:12px}
#delivery-option-dialog button{font:inherit;cursor:pointer;padding:14px;border-radius:8px;border:1px solid var(--gp-border);background:var(--gp-panel);color:var(--gp-ink)}
#delivery-option-dialog button.gp-button{background:var(--gp-red);color:white}
#delivery-option-dialog button.secondary{background:var(--gp-panel);color:var(--gp-ink)}
