/* Customer Files: direct photo uploader. Keeps uploads in the customer context. */
.customer-photo-page-intro-v8 .button-row{align-items:center}
.customer-photo-page-intro-v8 [data-customer-photo-upload]{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px}
.customer-photo-page-intro-v8 [data-customer-photo-upload] svg{width:19px;height:19px}
.customer-photo-gallery-panel-v8 .photo-gallery-grid{align-items:start}
.customer-photo-gallery-panel-v8 .photo-gallery-card img{aspect-ratio:4/3;object-fit:cover}

.customer-photo-uploader-backdrop-v8{
  position:fixed;
  inset:0;
  z-index:3600;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(2,8,15,.82);
  animation:customer-photo-fade-v8 .16s ease-out;
}
.customer-photo-uploader-dialog-v8{
  width:min(920px,100%);
  max-height:min(860px,calc(100dvh - 48px));
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  color:#f7f9fc;
  background:#071420;
  border:1px solid #294158;
  border-radius:12px;
  box-shadow:0 24px 70px rgba(0,0,0,.48);
  animation:customer-photo-rise-v8 .18s ease-out;
}
.customer-photo-uploader-dialog-v8>header{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 42px;
  gap:15px;
  align-items:start;
  padding:22px 24px;
  border-bottom:1px solid #22384c;
  background:#091827;
}
.customer-photo-uploader-dialog-v8>header>span{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  color:#ff7a00;
  border:1px solid #ff7a00;
  border-radius:50%;
  background:rgba(255,122,0,.06);
}
.customer-photo-uploader-dialog-v8>header>span svg{width:22px;height:22px}
.customer-photo-uploader-dialog-v8>header small{
  display:block;
  margin:0 0 3px;
  color:#ff922f;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.customer-photo-uploader-dialog-v8>header h2{margin:0;color:#fff;font-size:23px;line-height:1.15;letter-spacing:-.02em}
.customer-photo-uploader-dialog-v8>header p{margin:6px 0 0;color:#aebbd0;font-size:14px;line-height:1.45}
.customer-photo-uploader-dialog-v8>header>button{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  color:#dbe5ef;
  border:1px solid #31465b;
  border-radius:8px;
  background:#0e1d2d;
  cursor:pointer;
}
.customer-photo-uploader-dialog-v8>header>button:hover{border-color:#ff7a00;color:#fff}
.customer-photo-uploader-dialog-v8>header>button svg{width:19px;height:19px}

.customer-photo-uploader-body-v8{min-height:0;overflow:auto;padding:22px 24px;scrollbar-width:thin;scrollbar-color:#34516b transparent}
.customer-photo-upload-fields-v8{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(180px,.65fr);gap:14px;margin-bottom:16px}
.customer-photo-upload-fields-v8 label{display:grid;gap:7px;min-width:0}
.customer-photo-upload-fields-v8 label.wide{grid-column:1/-1}
.customer-photo-upload-fields-v8 label>span{color:#d8e1eb;font-size:12px;font-weight:800;letter-spacing:.02em}
.customer-photo-upload-fields-v8 label>span small{color:#7f91a7;font-weight:600}
.customer-photo-upload-fields-v8 :is(select,input){width:100%;min-height:45px;padding:0 13px;color:#f7f9fc;background:#0b1a29;border:1px solid #334b61;border-radius:7px;outline:none}
.customer-photo-upload-fields-v8 :is(select,input):focus{border-color:#ff7a00;box-shadow:0 0 0 2px rgba(255,122,0,.14)}

.customer-photo-upload-drop-v8{
  position:relative;
  min-height:164px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:24px;
  color:#dfe9f2;
  text-align:center;
  border:1px dashed #58738c;
  border-radius:10px;
  background:#0a1927;
  cursor:pointer;
  transition:border-color .15s ease,background-color .15s ease;
}
.customer-photo-upload-drop-v8:hover,.customer-photo-upload-drop-v8:focus-within{border-color:#ff7a00;background:#0d1d2c}
.customer-photo-upload-drop-v8.is-busy{cursor:wait;opacity:.75}
.customer-photo-upload-drop-v8 input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.customer-photo-upload-drop-v8 svg{width:34px;height:34px;color:#ff7a00}
.customer-photo-upload-drop-v8 strong{font-size:17px}
.customer-photo-upload-drop-v8 span{color:#98a9bc;font-size:13px}

.customer-photo-upload-preview-grid-v8{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.customer-photo-upload-preview-v8{position:relative;min-width:0;margin:0;overflow:hidden;border:1px solid #2d4358;border-radius:8px;background:#0a1927}
.customer-photo-upload-preview-v8 img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#101c29}
.customer-photo-upload-preview-v8 figcaption{display:grid;gap:2px;padding:9px 10px}
.customer-photo-upload-preview-v8 figcaption strong{overflow:hidden;color:#f4f7fb;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.customer-photo-upload-preview-v8 figcaption small{color:#8192a5;font-size:11px}
.customer-photo-upload-preview-v8>button{position:absolute;top:7px;right:7px;width:30px;height:30px;display:grid;place-items:center;color:#fff;border:1px solid #53687c;border-radius:50%;background:#07121de6;cursor:pointer}
.customer-photo-upload-preview-v8>button:hover{border-color:#ff7a00;background:#182433}
.customer-photo-upload-preview-v8>button svg{width:15px;height:15px}
.customer-photo-upload-empty-v8{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;color:#8496aa;border:1px solid #24394d;border-radius:8px;background:#081623}
.customer-photo-upload-empty-v8 svg{width:19px;height:19px;color:#57bcea}

.customer-photo-upload-visible-v8{display:flex;align-items:flex-start;gap:11px;margin-top:16px;padding:14px 15px;border:1px solid #294258;border-radius:8px;background:#091827;cursor:pointer}
.customer-photo-upload-visible-v8 input{width:18px;height:18px;margin:2px 0 0;accent-color:#ff7a00}
.customer-photo-upload-visible-v8 span{display:grid;gap:3px}
.customer-photo-upload-visible-v8 strong{color:#eef3f8;font-size:13px}
.customer-photo-upload-visible-v8 small{color:#91a2b5;font-size:12px;line-height:1.4}
.customer-photo-upload-no-proposal-v8{display:flex;gap:14px;align-items:flex-start;padding:22px;color:#e8eef5;border:1px solid #81511f;border-radius:9px;background:#20170e}
.customer-photo-upload-no-proposal-v8>svg{width:27px;height:27px;flex:0 0 auto;color:#ff922f}
.customer-photo-upload-no-proposal-v8 strong{font-size:16px}
.customer-photo-upload-no-proposal-v8 p{margin:5px 0 0;color:#c9b59e;line-height:1.5}

.customer-photo-uploader-dialog-v8>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-top:1px solid #22384c;background:#091827}
.customer-photo-uploader-dialog-v8>footer>span{display:flex;align-items:center;gap:8px;color:#8fa1b5;font-size:12px}
.customer-photo-uploader-dialog-v8>footer>span svg{width:17px;height:17px;color:#43d58b}
.customer-photo-uploader-dialog-v8>footer>div{display:flex;gap:10px}
.customer-photo-uploader-dialog-v8>footer button{min-height:42px;padding:0 18px}
.customer-photo-uploader-dialog-v8>footer button.primary{display:inline-flex;align-items:center;gap:8px}
.customer-photo-uploader-dialog-v8>footer button svg{width:17px;height:17px}
.customer-photo-uploader-dialog-v8 button:disabled{cursor:not-allowed;opacity:.48}
.customer-photo-uploader-dialog-v8 :is(button,input,select):focus-visible{outline:2px solid #36bffa;outline-offset:2px}

@keyframes customer-photo-fade-v8{from{opacity:0}to{opacity:1}}
@keyframes customer-photo-rise-v8{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

@media(max-width:760px){
  .customer-photo-uploader-backdrop-v8{padding:0;place-items:stretch}
  .customer-photo-uploader-dialog-v8{width:100vw;max-height:none;height:100dvh;border:0;border-radius:0}
  .customer-photo-uploader-dialog-v8>header{grid-template-columns:40px minmax(0,1fr) 40px;padding:16px}
  .customer-photo-uploader-dialog-v8>header>span{width:40px;height:40px}
  .customer-photo-uploader-dialog-v8>header h2{font-size:20px}
  .customer-photo-uploader-dialog-v8>header p{font-size:12px}
  .customer-photo-uploader-body-v8{padding:16px}
  .customer-photo-upload-fields-v8{grid-template-columns:1fr}
  .customer-photo-upload-fields-v8 label.wide{grid-column:auto}
  .customer-photo-upload-drop-v8{min-height:142px}
  .customer-photo-upload-preview-grid-v8{grid-template-columns:repeat(2,minmax(0,1fr))}
  .customer-photo-uploader-dialog-v8>footer{align-items:stretch;flex-direction:column;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .customer-photo-uploader-dialog-v8>footer>span{display:none}
  .customer-photo-uploader-dialog-v8>footer>div{display:grid;grid-template-columns:.7fr 1.3fr}
  .customer-photo-uploader-dialog-v8>footer button{width:100%;padding:0 10px}
}

@media(prefers-reduced-motion:reduce){
  .customer-photo-uploader-backdrop-v8,.customer-photo-uploader-dialog-v8{animation:none}
  .customer-photo-upload-drop-v8{transition:none}
}
