#catalogPage[hidden],#upload[hidden],.upload-page [hidden]{display:none!important}
.top nav a[aria-current=page]{color:#236b71;text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){.top:has(#uploadTab) nav{flex-wrap:wrap;gap:5px 4px}}
.upload-page{max-width:880px;margin:24px auto;padding:clamp(20px,4vw,40px);border-radius:20px;background:#fffaf3f5;color:#493830}
.upload-page h1{margin:0 0 24px;font:700 clamp(24px,3.5vw,36px)/1.1 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:-.035em}
.upload-page h1:focus{outline:0}
.upload-label{display:block;margin-bottom:5px;font-weight:650}
.upload-order{box-sizing:border-box;width:min(100%,360px);min-height:44px;border:1px solid #d9c4b1;border-radius:9px;padding:8px 12px;background:#fffdfa;color:inherit}
.upload-page :focus-visible{outline:3px solid #278b93;outline-offset:2px}
.upload-drop{width:100%;min-height:140px;margin:18px 0 0;padding:18px;display:grid;align-content:center;justify-items:center;gap:5px;border:2px dashed #97b4ac;border-radius:15px;color:#235d60;background:#edf4ed}
.upload-drop strong{font-size:18px}.upload-drop span{color:#546758;font-size:14px}
.upload-drop:hover,.upload-drop.dragging{background:#dfefe5;border-color:#237481}
.upload-page progress{width:100%;height:8px;accent-color:#236b71;display:block}
#uploadFiles{list-style:none;padding:0;margin:12px 0;max-height:380px;overflow:auto}
#uploadFiles li{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid #e5d3c0}
.upload-thumb{height:48px;width:48px;border-radius:7px;background:#efe5d8;overflow:hidden}
.upload-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.upload-file-name{overflow-wrap:anywhere}.upload-file-state{display:block;color:#6b5b4f;font-size:13px}
.upload-file-buttons,.upload-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.upload-actions{margin-top:16px}
.upload-page button:disabled{opacity:.6;cursor:default}
.upload-primary,.upload-secondary,.upload-file-buttons button{min-height:42px;border:1px solid #d8c3ad;border-radius:9px;padding:8px 14px;font-weight:650}
.upload-primary{background:#236b71;border-color:#236b71;color:#fff}.upload-secondary,.upload-file-buttons button{background:#f4e8da;color:#493830}
.upload-file-buttons button{min-height:34px;padding:4px 8px;font-size:13px}
.upload-error{color:#a3263d}.upload-error:empty{display:none}
@media(max-width:700px){.upload-page{margin:12px}.upload-drop{min-height:120px}#uploadFiles li{grid-template-columns:40px minmax(0,1fr);gap:6px 10px}.upload-thumb{width:40px;height:40px}.upload-file-buttons{grid-column:2}}

body:has(#upload:not([hidden])){display:flex;flex-direction:column;min-height:100dvh}
body:has(#upload:not([hidden])) main{flex:1}
@media(max-width:380px){.top:has(#uploadTab) nav{display:grid;grid-template-columns:repeat(3,max-content);justify-content:space-between}}
.gift-receipt { padding: clamp(6px,2vw,20px); }
.gift-receipt h2,.gift-offer h3,#uploadGift h2,.account-bonus h3 { margin: 0 0 10px; }
.gift-offer,#uploadGift,.account-bonus { margin: 16px 0; padding: clamp(16px,3vw,26px); background:#e9f2ec; color:#204b4d; border-radius:14px; }
.gift-offer h3,#uploadGift h2 { font-size:clamp(22px,3vw,30px); line-height:1.15; max-width:22em; }
#uploadGift[hidden],.spend-bonus[hidden] { display:none; }
.account-bonus strong { font-size:24px; }
.spend-bonus { display:flex; align-items:center; gap:8px; padding:10px; border-radius:8px; background:#e9f2ec; }
.spend-bonus input { width:auto; }

.direct-upload #catalogPage { display:none }
.direct-upload .upload-order[readonly] { font-weight:650; font-variant-numeric:tabular-nums }
.order-number-notice {
  display:grid; justify-items:center; gap:9px; width:100%; margin-top:16px;
  padding:16px; border:1px solid #e8ba72; border-radius:14px;
  background:#fff0d3; color:#663c13; text-align:center;
}
.order-number-notice strong { font-size:clamp(16px,3vw,19px); line-height:1.35; text-wrap:balance }
.order-number-notice .order-number-required { color:#b0202e; font-weight:800 }
.order-number-notice [data-copy-number] {
  min-height:46px; padding:7px 17px; border:0; border-radius:10px;
  font:700 clamp(19px,4.7vw,25px)/1.2 Inter,system-ui,sans-serif;
  font-variant-numeric:tabular-nums; background:#006966; color:white; cursor:pointer;
}
.order-number-notice [data-copy-status] { font-size:13px }
.order-number-notice [data-copy-number]:focus-visible { outline:3px solid #543811; outline-offset:3px }
@media(max-width:360px) {
  .store-page .top.has-menu { gap:4px; padding-inline:6px }
  .store-page .top > .header-catalog { padding-inline:9px; font-size:13px }
  .store-page .top.has-menu .catalog-cart { padding-inline:7px; font-size:12px }
  .store-page .top .catalog-cart span { min-width:18px; margin-left:2px }
}
