
:root{
  --g73-blue:#063bd8;
  --g73-orange:#ff620f;
  --g73-gray:#b9b9b9;
}

.g73fb,
.g73fb *{box-sizing:border-box}

.g73fb{
  width:calc(100vw - 36px);
  max-width:1280px;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  margin:0;
  padding:0 18px 38px;
  background:#fff;
  color:#111;
  font-family:Arial,Helvetica,sans-serif;
}

.g73fb-title-wrap{width:60%;text-align:center}
.g73fb-title{
  margin:0 0 4px;
  color:var(--g73-blue);
  font-size:clamp(28px,3vw,42px);
  font-weight:900;
  line-height:1;
  letter-spacing:-1px;
}

.g73fb-layout{
  display:grid;
  grid-template-columns:minmax(0,1.58fr) minmax(350px,.95fr);
  gap:12px;
  align-items:start;
}

.g73fb-preview-card{
  min-height:455px;
  overflow:hidden;
  border:2px solid var(--g73-gray);
  border-radius:12px;
  background:#fff;
}

.g73fb-preview-stage{
  min-height:455px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  cursor:pointer;
  background-color:#fff;
  background-image:
    linear-gradient(45deg,#e8e8e8 25%,transparent 25%),
    linear-gradient(-45deg,#e8e8e8 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#e8e8e8 75%),
    linear-gradient(-45deg,transparent 75%,#e8e8e8 75%);
  background-size:26px 26px;
  background-position:0 0,0 13px,13px -13px,-13px 0;
}

.g73fb-preview-stage:focus{outline:3px solid rgba(6,59,216,.15);outline-offset:-3px}
.g73fb-preview-empty{text-align:center}
.g73fb-preview-empty span{display:block;color:var(--g73-blue);font-size:22px;font-weight:900;margin-bottom:8px}
.g73fb-preview-empty small{color:#aaa;font-size:13px;font-weight:700}
.g73fb-preview-image{display:none;max-width:100%;max-height:410px;object-fit:contain}
.g73fb-preview-file{display:grid;gap:8px;text-align:center;color:#999}
.g73fb-preview-file strong{color:var(--g73-blue);font-size:20px}
.g73fb-preview-file[hidden],.g73fb-artwork-status[hidden]{display:none!important}

.g73fb-artwork-status{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 12px}
.g73fb-artwork-status span{border-radius:20px;background:#f5f7ff;color:var(--g73-blue);font-size:12px;font-weight:800;padding:5px 10px}
.g73fb-artwork-status .is-excellent{color:var(--g73-orange)}
.g73fb-artwork-status .is-acceptable{color:var(--g73-blue)}
.g73fb-artwork-status .is-low{color:#d11}

.g73fb-left-bottom{
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  gap:12px;
  margin-top:12px;
  align-items:start;
}

.g73fb-upload-zone{min-height:320px}
.g73fb-file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.g73fb-upload-button{
  display:inline-flex;
  width:210px;
  min-height:56px;
  align-items:center;
  justify-content:center;
  border:2px solid var(--g73-gray);
  border-radius:10px;
  background:#fff;
  color:var(--g73-blue);
  font-size:20px;
  font-weight:900;
  cursor:pointer;
}
.g73fb-lower-image-wrap{min-height:245px;display:flex;align-items:flex-start;justify-content:center;padding-top:16px}
.g73fb-lower-image{max-width:245px;max-height:300px;object-fit:contain}
.g73fb-lower-image-placeholder{width:245px;height:245px}

.g73fb-summary-card{
  width:286px;
  padding:16px 18px 14px;
  border:0;
  border-radius:10px;
  background:#fafafa;
  box-shadow:none;
}
.g73fb-summary-card h2,.g73fb-option-card h2{
  margin:0 0 10px;
  color:var(--g73-blue);
  font-size:20px;
  line-height:1.1;
  font-weight:900;
}
.g73fb-summary-card dl{margin:0}
.g73fb-summary-card dl>div{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:0 0 10px;
}
.g73fb-summary-card dt{color:#b0b0b0;font-size:13px;font-weight:800}
.g73fb-summary-card dd{margin:0;color:var(--g73-blue);font-size:13px;font-weight:800;text-align:right;overflow-wrap:anywhere}
.g73fb-summary-card [data-summary-dpi]{color:var(--g73-orange)!important}
.g73fb-production-time{color:var(--g73-orange)!important}
.g73fb-summary-total{border-top:1px solid #eee;margin-top:10px;padding-top:12px}
.g73fb-summary-total span{display:block;color:var(--g73-blue);font-size:20px;font-weight:900;margin-bottom:18px}
.g73fb-summary-total strong{display:block;color:var(--g73-orange);font-size:22px;font-weight:900;text-align:right}

.g73fb-right{display:grid;gap:12px}
.g73fb-option-card{padding:18px 20px;border:0;background:transparent;box-shadow:none}
.g73fb-option-card h2{font-size:23px}
.g73fb-text-input,
.g73fb-standard-grid select,
.g73fb-standard-grid input,
.g73fb-custom-grid select,
.g73fb-custom-grid input{
  width:100%;
  height:52px;
  min-height:52px;
  border:2px solid var(--g73-gray);
  border-radius:11px;
  background:#fff;
  color:var(--g73-blue);
  font-family:Arial,Helvetica,sans-serif;
  font-size:20px;
  font-weight:800;
  padding:10px 14px;
}

.g73fb-standard-grid{display:grid;grid-template-columns:1.7fr .7fr;gap:12px}
.g73fb-custom-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.g73fb-standard-grid label,.g73fb-custom-grid label{
  display:grid;
  grid-template-rows:20px 52px;
  gap:6px;
  min-width:0;
  color:#aaa;
  font-size:12px;
  font-weight:900;
}
.g73fb-muted-note{margin:10px 0 0;color:#b0b0b0;font-size:13px;font-weight:800}

.g73fb-custom-toggle,
.g73fb-checkbox-option{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  color:var(--g73-blue);
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}
.g73fb-custom-toggle input,.g73fb-checkbox-option input{
  width:22px;
  height:22px;
  accent-color:var(--g73-blue);
}

.g73fb-two-col-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.g73fb-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  border:2px solid var(--g73-gray);
  border-radius:11px;
  background:#fff;
  color:var(--g73-blue);
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}
.g73fb-pill input{position:absolute;opacity:0;pointer-events:none}
.g73fb-pill.is-active{background:var(--g73-blue);border-color:var(--g73-blue);color:#fff}

.g73fb-agreement-row{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 24px;
  column-gap:10px;
  align-items:center;
  padding:4px 20px 0;
  color:#aaa;
  font-size:13px;
  font-weight:900;
}
.g73fb-agreement-row>label{display:flex;align-items:center;gap:8px;min-width:0}
.g73fb-agreement-row input{width:23px;height:23px;accent-color:var(--g73-blue)}
.g73fb-agreement-row a{color:var(--g73-blue);text-decoration:underline}
.g73fb-agreement-help{
  width:22px;height:22px;border-radius:50%;border:1.5px solid var(--g73-blue);
  background:#fff;color:var(--g73-blue);font-weight:800;font-size:13px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;
}
.g73fb-agreement-tooltip{
  position:absolute;
  left:20px;
  bottom:calc(100% + 10px);
  width:min(480px,90vw);
  padding:14px 16px;
  border-radius:10px;
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:600;
  line-height:1.35;
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  transition:.15s ease;
  z-index:20;
  box-shadow:0 12px 30px rgba(0,0,0,.2);
}
.g73fb-agreement-tooltip strong{display:block;margin-bottom:6px}
.g73fb-agreement-tooltip ul{margin:0;padding-left:18px}
.g73fb-agreement-row:hover .g73fb-agreement-tooltip,
.g73fb-agreement-row.is-open .g73fb-agreement-tooltip{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.g73fb-add-to-cart{
  display:flex;
  align-items:center;
  justify-content:center;
  width:72%;
  height:54px;
  justify-self:center;
  margin:0;
  padding:0 24px;
  border:0;
  border-radius:8px;
  background:var(--g73-orange);
  color:#fff;
  font-family:Arial,Helvetica,sans-serif;
  font-size:28px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}
.g73fb-add-to-cart:disabled{background:#d7d7d7;color:#8c8c8c;cursor:not-allowed}
.g73fb-submit-message{min-height:18px;margin:0;color:#aaa;font-size:12px;font-weight:800;text-align:center}
.g73fb-cart-thumb{width:80px;height:80px;object-fit:contain}
.g73fb-notice{padding:15px;border:1px solid #f59e0b;background:#fffbeb;border-radius:8px}

@media(max-width:1024px){
  .g73fb-title-wrap{width:100%}
  .g73fb-layout{grid-template-columns:1fr}
}
@media(max-width:720px){
  .g73fb{width:calc(100vw - 24px);padding:0 12px 28px}
  .g73fb-preview-card,.g73fb-preview-stage{min-height:330px}
  .g73fb-preview-image{max-height:290px}
  .g73fb-left-bottom,.g73fb-standard-grid,.g73fb-custom-grid,.g73fb-two-col-options{grid-template-columns:1fr}
  .g73fb-summary-card{width:100%}
  .g73fb-add-to-cart{width:100%}
}


/* v1.0.2: tighter spacing and mutually exclusive size cards */
.g73fb-right{
  gap:4px;
}

.g73fb-option-card{
  padding-top:10px;
  padding-bottom:10px;
  margin:0;
}

.g73fb-option-card + .g73fb-option-card{
  margin-top:0;
}

.g73fb-size-card{
  padding-top:8px;
  padding-bottom:8px;
}

.g73fb-size-heading{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  color:var(--g73-blue);
  font-size:23px;
  line-height:1.1;
  font-weight:900;
  cursor:pointer;
}

.g73fb-size-heading input{
  width:22px;
  height:22px;
  margin:0;
  flex:0 0 auto;
  accent-color:var(--g73-blue);
}

.g73fb-size-heading span{
  display:block;
}

.g73fb-standard-grid,
.g73fb-custom-grid{
  margin-top:0;
}

.g73fb-muted-note{
  margin-top:8px;
}

.g73fb-size-card:has([data-use-standard]:not(:checked)) .g73fb-standard-grid,
.g73fb-size-card:has([data-use-custom]:not(:checked)) .g73fb-custom-grid{
  opacity:.55;
}

.g73fb-size-card:has([data-use-standard]:not(:checked)) .g73fb-muted-note,
.g73fb-size-card:has([data-use-custom]:not(:checked)) .g73fb-muted-note{
  opacity:.7;
}

.g73fb-agreement-row{
  margin-top:2px;
}

.g73fb-add-to-cart{
  margin-top:2px;
}
