/* pw-of form styles (flexbox) */
body { width: 100vw; }
.pwof-container { font-family: Arial, Helvetica, sans-serif; 
  /* max-width:1200px;  */
  margin:18px auto; color:#222; padding:6px; }
.form-title { text-align: center; margin: -20px 0 50px;}
.pwof-section { border:1px solid #e9e9e9; padding:14px; border-radius:8px; margin-bottom:14px; background:#fafafa; }
.pwof-section h2 { margin:0 0 10px 0; font-size:18px; text-transform: uppercase; color: white; background: #005288; padding: 10px; border-radius: 5px; }
.row { display:flex; gap:12px; flex-wrap:wrap; margin: 0px !important; }
.flex-row {display: flex; width: 100%; gap: 10px;}
div#pwof-customer-fields { max-width: 100%; }
.flex-row.special-row {width: 100vw; max-width: 100%;}
.col { flex:1 1 48%; min-width:220px; }
.col-50 { flex:1 1 50%; min-width:150px; }
.col-25 { display:flex; gap:20px; }
.col-100 { flex:1 1 100%; }
.other-option input[type="date"] {width: 200px;}
label { display:block; margin-bottom:6px; font-weight:600 !important; }
label.radio-option {font-weight: 400 !important;}
input[type="text"], input[type="email"], input[type="date"], input[type="number"], select, textarea { width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; box-sizing:border-box; font-size:14px; }
.flex-row .col-25 {flex: 1;}
.flex-row label { display: block; width: 100%;}
textarea { min-height:90px; }
.radio-group { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-left: 15px; }
.radio-group label { display:flex; align-items:center; gap:6px; font-weight:400 !important; }
.btn { background:#0073aa; color:#fff; padding:8px 12px; border:none; border-radius:6px; cursor:pointer; }
.btn.secondary { background:#eee; color:#222; }
.btn.green { background:#2e7d32; color:#fff; border: 2px solid #2e7d32;}
.btn.green:hover {background: white; color: #2e7d32;}
div#pwof-art-intent-wrap { margin-top: 10px; }

/* design block */
.pwof-design-block { border:1px solid #ddd; border-radius:8px; padding:12px; background:#fff; margin-bottom:12px; }
.design-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.design-title { font-size:16px; margin:0; color: red; }
.order-type-container { display: flex; flex-direction: row; align-items: center;}
.order-type { display: flex; gap: 12px; margin-left: 10px;}
.small { font-weight: 400; font-style: italic; font-size: 11px; }

/* sku area */
.sku-area { margin-top:8px; border-top:1px dashed #eee; padding-top:30px; overflow:auto !important; }
.sku-row { display:flex; gap:5px; align-items:center; margin-bottom:6px; }
.sku-cell { display:flex; align-items:center; justify-content:center; background:transparent; }
.sku-header .sku-cell { font-weight:700; background:#f5f7f8; height: 40px; font-size: 0.85em;}
.sku-num { width:20px; flex:0 0 20px; }
.sku-style { width:50px; flex:0 0 50px; }
.sku-style-name { width:225px; flex:0 0 225px; }
.sku-color { width:135px; flex:0 0 135px; }
.sku-size { width:53px; flex:0 0 53px; text-align:center;}
/* .sku-price {width: 70px; flex: 0 0 70px; text-align: center;} */
.sku-price, .sku-retail, .sku-upcharge { width:70px; flex:0 0 70px; margin-right: -9px; position: relative; display: inline-block;}
.sku-price input, .sku-retail input, .sku-upcharge input {width: 70px !important; box-sizing: border-box; text-align: right;}
.sku-header .sku-price, .sku-header .sku-retail, .sku-header .sku-upcharge { display: flex; background: #aeaeae; border: 1px solid #eee; line-height: 1; text-align: center; font-size: .75em; overflow-wrap: break-word; padding: 2px; color: black;}
.sku-area .sku-retail {display: none !important; }
.sku-retail-group {display: flex; gap: 5px;}
.sku-area.upc-on .sku-retail {  display: flex !important;}
button.delete-row-btn, button.pwof-override-btn, .pwof-override-badge {background: none !important; border: none; transition: all 0.5s ease-in-out; padding: 0;}
button.delete-row-btn:hover, button.pwof-override-btn:hover, .pwof-override-badge:hover {background: none; transform: scale(1.5);}
button.delete-design-btn {transition: all 0.5s ease-in-out; transform: scale(1);}
button.delete-design-btn:hover { transform: scale(1.1);}
button.add-color-btn { transition: all 0.5s ease-in-out; transform: scale(1); font-size: 10px; padding: 5px 10px; margin-left: 5px;}
button.add-color-btn:hover { transform: scale(1.1);}
/* .sku-delete {width: 50px; flex: 0 0 70px; margin-left: -30px; } */
.col-100.file-upload {margin-top: 30px;}
.currency {position: absolute; left: 5px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #6d6d6d;}
span.question-mark { border: 1px solid; border-color: black; border-radius: 50%; padding: 2px 2px 2px 4px; font-size: 8px; position: relative; top: -2px; left: -3px;}
.disclaimer-note { font-size: .55em; font-style: italic; margin: 0 50px; text-align: right; }
div#grand-upc:hover, div#grand-total:hover { cursor: help; }
button.delete-row-btn { flex: 0 0 auto; min-width: 10px; min-height: 10px; display: inline-flex; align-items: center; justify-content: center; }
input#promo-code { height: 25px; }
button#promo-apply, button#promo-clear { font-size: 11px; padding: 1px 3px;}
button#pwof-add-design, button#promo-apply, button#promo-clear { border: 2px solid #005288; background-color: #005288; }
button#pwof-add-design:hover, button#promo-apply:hover, button#promo-clear:hover { background-color: white; color: #005288; border: 2px solid #005288;}
.size-label { font-weight:700; margin-bottom:4px; font-size:13px; }
input#promo-code { height: 25px; }
button#pwof-save-draft, button#pwof-save-draft-new { border: 2px solid #eee; padding: 3px 6px;}
button#pwof-save-draft:hover, button#pwof-save-draft-new:hover { background: white; border: 2px solid #eee; color: black; }
.col-5 {flex: 1;}
input#art_due_date { width: 15%; }
.button-container { display: flex; justify-content: end; margin: 30px 0 0px; }

        /* Art mode hides anything marked order-only */
        #pwof-form.pwof-mode-art .pwof-order-only { display:none !important; }

        /* Art mode: hide sizing/pricing/total columns but keep style/color fields */
        #pwof-form.pwof-mode-art .sku-row .sku-cell.sku-size,
        #pwof-form.pwof-mode-art .sku-row .sku-cell.sku-qty,
        #pwof-form.pwof-mode-art .sku-row .sku-cell.sku-price,
        #pwof-form.pwof-mode-art .sku-row .sku-cell.sku-upcharge,
        #pwof-form.pwof-mode-art .sku-row .sku-cell.c
        /* #pwof-form.pwof-mode-art .totals-summary  */
        { display:none !important; }

        #pwof-form.pwof-mode-art .sku-total-line {
            color: transparent !important;
        }

        #pwof-form.pwof-mode-art .sku-total-line > strong {
            margin-right: -140px;
        }


button#pwof-send-quote-btn:hover {
    border: 2px solid #005288;
    background: #005288;
    color: white;
}
button#pwof-send-quote-btn {
    background: white;
    color: #005288;
    border: 2px solid #005288;
}

.validation-alert {
  background: #fff4e5;
  border: 1px solid #f59e0b;
  color: #7c2d12;
  padding: 10px 12px;
  margin: 0 0 12px 0;
  border-radius: 4px;
  font-size: 0.95rem;
}

.validation-alert .pwof-miss-list {
  margin: 6px 0 0 18px;
}

.validation-alert .pwof-miss-link {
  background: none;
  border: none;
  padding: 0;
  color: #1d4ed8;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.validation-alert .pwof-miss-link:focus {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.pwof-auto-locked {
  background: #f1f5f9;
  cursor: not-allowed;
}
.pwof-deco-lock-icon{
  font-size: 12px;
  opacity: .75;
  cursor: help;
  margin-left: 4px;
}

.add-shipto-btn {
  background: #f3f3f3;
  border: 1px solid #ccc;
  color: #333;
  font-size: 14px;
  padding: 5px 10px;
  margin-top: 5px;
  border-radius: 4px;
  cursor: pointer;
}

.add-shipto-btn:hover {
  background: #e8e8e8;
}


/* color rows */
.color-row input.size-input { width:100%; box-sizing:border-box; }
.color-row .sku-cell input { width:100%; padding: 3px;}

/* sku actions & totals */
.sku-actions { margin-top:8px; width: 100%;}
.totals-summary { margin-top:10px; padding:8px; background:#f4f7f6; border-radius:6px; font-weight:600; width: 100%;}
.totals-summary .sku-total-line { margin-bottom: 4px;}
/* other */
.small-note { display: flex; flex-direction: row; font-size:12px; color:#6b6b6b; margin-top:-5px; margin-left: 20px; font-style:italic; }
.smaller-note { font-style: italic; font-size: .8em; font-weight: 400; }
.reorder span.small-note { margin: 0; }
.hidden { display:none !important; }
.pwof-success { background:#e6ffed; border:1px solid #c6f0cf; color:#0a6b2b; padding:12px; border-radius:6px; margin:18px 0; }
.radio-group.line-break {
    display: flex; flex-direction: column; align-content: flex-start; align-items: flex-start; gap: 0;}

/* styling for inserted concept thumbnail & title */
.pwof-thumb-container {
  /* flex: 0 0 200px; */
  display: flex;
  /* text-align: center; */
  gap: 50px;
}
.concept-thumb-flex {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 1em;
  justify-content: center;
}
.pwof-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: center;
  margin: 0 auto;
  padding: 10px;
  transition: all 0.3s ease;
}
.pwof-thumb:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Image itself */
.pwof-thumb img {
  width: 100%;
  height: auto;
  max-width: 250px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.3s ease-in;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.pwof-thumb img[src] {
  opacity: 1;
}
/* Text states ("Searching...", "No preview found") should still center properly */
.pwof-thumb em {
  font-size: 13px;
  color: #777;
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
}

/* Caption/title text under image */
.pwof-thumb-info strong {
  display: block;
  text-align: center;
  color: #333;
  font-size: 12px;
  font-weight: 600;
}
.pwof-tier-badge {
  display: inline-block;
  background: #eee;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  margin-top: 2px;
}
/* Concept input section */
 .concept-row-container.row {
    display: flex !important;
    flex-direction: row;
}
select.demographic-select {
    width: 15% !important;
}

/* Each side column */
.concept-row1, .concept-row2 {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Labels & inputs consistent */
.concept-row-container label {
  font-weight: 500;
  color: #222;
}
.concept-row-container input[type="text"], .concept-row-container select {
    height: 40px;
}
.concept-row-container input,
.concept-row-container select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.pwof-tier-badge {
  margin-top: 6px;
  display: inline-block;
  padding: 2px 8px;
  font-size: 13px;
  border-radius: 12px;
  background: #eee;
  color: #333;
}
.pwof-tier-s1 { background: #8ed7f8; color: #fff; }
.pwof-tier-s2 { background: #4083b9; color: #fff; }
.pwof-tier-s3 { background: #1d3e6c; color: #fff; }
.pwof-tier-s4 { background: #1a2434; color: #fff; }
.pwof-tier-e1 { background: #7be08f; color: #fff; }
.pwof-tier-e2 { background: #2e9359; color: #fff; }
.pwof-tier-e3 { background: #174e1e; color: #fff; }


/* styling for the billing and shipping address sections */
fieldset {
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
  }

  legend {
    padding: 0 0.5rem !important;
    font-size: 16px;
    text-decoration: underline;
  }

  .address-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .address-row {
    display: grid !important;
    gap: 1rem;
  }

  .address-row-1 {
    grid-template-columns: 1fr 1fr 2fr;
  }

  .address-row-2 {
    grid-template-columns: 3fr 2fr 1fr 1fr 2fr;
  }
  .ship-address-row-2 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

  .address-row-3 {
    grid-template-columns: 1fr 2fr;
  }

  .address-row div {
    display: flex;
    flex-direction: column;
  }

button.btn.green {
    margin-right: 50px;
}

.pwof-overlay.hidden { display: none; }

.pwof-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwof-overlay-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  width: calc(100% - 40px);
}

.pwof-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,82,136,1); /* Perrin blue */
  border-radius: 50%;
  animation: pwofSpin .8s linear infinite;
}

@keyframes pwofSpin { to { transform: rotate(360deg); } }


div#grand-total {
    text-align: right;
    margin-right: 50px;
    font-size: 18px;
}


.art-direction .row {
  display: flex;
  gap: 10px;
}
.art-direction .col-50 {
  flex: 1;
}
.art-direction textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

.error {
  border: 2px solid #d33 !important;
  background-color: #fff6f6;
}


/* Adds red asterisk */
.required-label {
  color: red;
  margin-left: 3px;
}


/* ============================================================
   FORM VALIDATION VISUALS
   ============================================================ */
.was-validated :invalid {
  border: 2px solid #fc9494 !important;
  background-color: #fff5f5;
}

.was-validated :invalid:focus {
  outline: 2px solid fc9494;
  box-shadow: 0 0 0 2px rgba(224, 0, 0, 0.2);
}

/* Highlight invalid selects */
.was-validated select:invalid {
  border: 2px solid #fc9494 !important;
  background-color: #fff5f5;
}

/* Highlight radio button groups by wrapping container */
.was-validated .radio-group[data-required="true"] {
  border: 2px solid transparent;
  padding: 6px 10px;
  border-radius: 6px;
}

.was-validated .radio-group[data-required="true"].invalid {
  border-color: #fc9494;
  background-color: #fff5f5;
}

/* Highlight required inputs when dynamically required */
.pwof-required-field {
  border: 1px solid #fc9494;
  background-color: #fff5f5;
}

/* focus state so it doesn't feel broken while typing */
.pwof-required-field:focus {
  border-color: #e66;
  outline: none;
  box-shadow: 0 0 0 2px rgba(252,148,148,0.15);
}

/* .is-locked lets you dim or style locked fields */
.price-input.is-locked, .upcharge-input.is-locked {
  background-color: #f7f7f7;
  cursor: not-allowed;
}

/* Subtle highlight for manual pricing fields that need attention */
.price-input.needs-price,
.upcharge-input.needs-price {
  background-color: #fff7ed; /* warm amber-50 */
  border-color: #f59e0b;     /* amber-500 */
}

.price-input.needs-price::placeholder,
.upcharge-input.needs-price::placeholder {
  color: #b45309;            /* amber-700 */
}

.sku-cell.sku-override{
  margin-left: 10px;
}

.pwof-override-btn{
  font-size: 17px;
}

.pwof-override-badge{
  display:inline-block;
  padding: 0px 5px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color:#b91c1c;
  border:1px solid #b91c1c;
}


/* responsive */
/* responsive */
/* responsive */
/* responsive */
@media (max-width: 900px) {
.flex-row {
    flex-direction: column !important;
}
.address-row {
    grid-template-columns: 1fr !important;
}
.radio-group {
    flex-direction: column;
    align-items: start;
}
.other-option input[type="date"] {
    width: 130px;
}
.col-25 {
    flex-direction: column;
}
.concept-thumb-flex {
    flex-direction: column;
    align-items: center;
}
button.delete-design-btn.btn.secondary {
    font-size: 80%;
}
.pwof-thumb-container {
    margin-top: 20px;
}
div#grand-pieces, div#grand-total {
    margin-right: 20px !important;
}
div#grand-pieces {
    margin-top: 75px;
}
button.btn.green {
    margin: 0;
}
}

