.gallery-modal{box-sizing:border-box;width:min(880px,calc(100vw - 32px));max-width:100%;max-height:88dvh;margin:auto;padding:0;border:1px solid #b9c3a9;border-radius:28px;background:#f5f5ed;color:#2c3627;box-shadow:0 28px 100px #1d291b55;overflow:auto;font:inherit}
.gallery-modal::backdrop{background:#26322280;backdrop-filter:blur(7px)}
.gallery-modal *{box-sizing:border-box;min-width:0}
.gallery-modal-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 28px;border-bottom:1px solid #cdd5c2;background:#f5f5edf5;backdrop-filter:blur(10px)}
.gallery-modal-head h2{margin:0;font-size:clamp(22px,4vw,30px);font-weight:400;overflow-wrap:anywhere}
.gallery-modal-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #a6b093;border-radius:50%;background:transparent;color:inherit;font:28px/1 Arial;cursor:pointer}
.gallery-modal-body{display:grid;gap:18px;padding:26px 28px}
.order-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;padding:20px;border:1px solid #cbd3bf;border-radius:20px;background:#fffef8;box-shadow:0 8px 25px #46513908}
.order-card-image{width:100%;height:auto;max-height:200px;object-fit:contain;align-self:start;border-radius:6px}
.order-card-content h3{font-weight:400;line-height:1.4;font-size:20px;margin:12px 0;overflow-wrap:anywhere}
.order-status{display:inline-block;padding:5px 12px;border-radius:30px;background:#e6ebdd;font-size:12px;color:#415237}
.commerce-details{display:grid;gap:0;margin:12px 0 20px;width:100%}
.commerce-detail{display:grid;grid-template-columns:minmax(110px,34%) minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid #dce1d3;align-items:start;font-size:14px;line-height:1.6}
.commerce-detail dt{color:#647356;font-size:12px}.commerce-detail dd{margin:0;overflow-wrap:anywhere;white-space:normal}
.profile-details{flex-basis:100%;margin:0}.profile-details .commerce-detail{grid-template-columns:110px minmax(0,1fr)}
.profile-editor{display:grid;gap:18px}.profile-editor .form-grid{gap:16px}.profile-editor label{display:block;margin-bottom:8px;font-size:13px;color:#647356}.profile-editor input,.profile-editor select{box-sizing:border-box;width:100%;max-width:100%;min-height:48px;border:1px solid #b9c3aa;border-radius:10px;padding:12px;background:#fffef8;color:inherit;font:inherit}.profile-email{overflow-wrap:anywhere}.profile-save-status:empty{display:none}.profile-save-status{color:#8b2424;overflow-wrap:anywhere}
.payment-summary-card{margin:24px 0;padding:24px;border:1px solid #b9c3aa;border-radius:20px;background:#fffef8}.payment-summary-card h2{font-size:25px;font-weight:400}.payment-summary-card .outline{white-space:normal;text-align:center;max-width:100%}
.bank-payment #bank-transfer{display:grid;gap:12px}.bank-payment input[readonly]{background:#e8edde;color:#35412f}.bank-payment .bank-symbol-help{font-size:13px;line-height:1.7;color:#647356;overflow-wrap:anywhere}.bank-contact{margin:20px 0}
.gallery-modal .solid{display:inline-flex;align-items:center;justify-content:center;white-space:normal;max-width:100%;text-align:center;min-height:44px}.gallery-modal button:focus-visible,.gallery-modal a:focus-visible{outline:3px solid #718655;outline-offset:3px}
@media(max-width:600px){.gallery-modal{width:calc(100vw - 20px);max-height:92dvh;border-radius:20px}.gallery-modal-head{padding:16px}.gallery-modal-body{padding:16px}.order-card{grid-template-columns:minmax(0,1fr);padding:16px;gap:14px}.order-card-image{max-height:180px}.order-card-content h3{font-size:18px}.commerce-detail{grid-template-columns:minmax(0,1fr);gap:2px;padding:9px 0}.profile-details .commerce-detail{grid-template-columns:minmax(0,1fr)}.payment-summary-card{padding:18px}.profile-editor .form-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.gallery-modal{scroll-behavior:auto}}
