/* pw-of form styles (flexbox) */
.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;}
.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;padding: 0 10px;}
.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;}

/* 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;}

/* 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, .sku-retail, .sku-upcharge { width:75px; flex:0 0 75px; 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 {background: none; border: none; transition: all 0.5s ease-in-out;}
button.delete-row-btn:hover {background: none; transform: scale(1.2); margin-left: -5px;}
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);}
.col-100.file-upload {margin-top: 30px;}
.currency {position: absolute; left: 5px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #6d6d6d;}


.size-label { font-weight:700; margin-bottom:4px; font-size:13px; }

.col-5 {flex: 1;}

.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; }
.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;
  text-align: center;
}
.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;
}


/* 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: #2b7cff; color: #fff; }
.pwof-tier-s2 { background: #27ae60; color: #fff; }
.pwof-tier-s3 { background: #f39c12; color: #fff; }
.pwof-tier-s4 { background: #c0392b; 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;
}

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;
}



/* 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;
}
}

