/* POLYBAG order UI - Simplified version of CORO */

.polyWrap{
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 8px 30px;
}

.polyCard {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  font-size:15px;
  width: 100%;
  max-width: 1400px;
}

.polyHeader{
  padding: 10px 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.polyTitle{
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 2px;
}

.polySub{
  opacity: .75;
  font-size: 15px;
}

.polyGrid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  padding: 18px;
}

@media (max-width: 920px){
  .polyGrid{ grid-template-columns: 1fr; }
}

@media (max-width: 920px){
  .polyForm{ border-left: none; padding: 0; }
}

.polyPreview{
  min-width: 0;
}

.polyImgFrame{
  background: rgba(0,0,0,.03);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polyProdImg{
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.polyDesc{
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.5;
}

.polyMeta{
  margin-top: 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

.polyMetaLbl{
  font-weight: 600;
  margin-right: 6px;
  font-size:17px;
}

#polySku{
  font-size:15px;
}

#polySize{
  font-size:15px;
}

.polyForm{
  padding: 10px 12px;
  border-left: 1px solid rgba(0,0,0,.06);
}

.polyField{
  margin-bottom: 14px;
}

.polyLbl{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity: .8;
}

.polyInput,
.polySelect{
  padding: 12px 12px;
  border-radius: 12px;
  font-size:17px;
}

.polyActions{
  margin-top: 18px;
}

/* Make the right-side form rows symmetrical */
.polyForm .polyField{
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  column-gap: 12px;
  margin-bottom: 14px;
}

.polyForm .polyLbl{
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity: .75;
}

/* Force all selects/inputs to be same width */
.polyForm .polyInput,
.polyForm .polySelect{
  width: 250px;
  max-width: 250px;
  box-sizing: border-box;
}

/* Stack nicely on small screens */
@media (max-width: 520px){
  .polyForm .polyField{
    grid-template-columns: 1fr;
  }
  .polyForm .polyInput,
  .polyForm .polySelect{
    width: 100%;
    max-width: 100%;
  }
}

/* Button styling */
.polyUploadBtn{
  border: none;
  cursor: pointer;
  margin-top: 6px;
  height: 40px;
  padding: 0 16px;
}

.polyBtnDisabled{
  opacity: .5;
  cursor: not-allowed;
}

/* Hide price for non-logged-in users */
body.not-logged-in .polyPrice {
  display: none;
}

/* Quantity help message */
#polyQtyHelp{
  display: grid;
  grid-template-columns: 120px 220px;
  column-gap: 12px;  
  font-size: 12px;
  color: #666;
  margin-top: -14px;
  padding: 6px;
  opacity: 0.85;
}

#polyQtyHelp::before{
  content: "";
}

#polyQtyHelp > span{
  grid-column: 2 / 3;
}

#polyQtyHelp.invalid {
  color: #c81e1e;
  opacity: 1;
}

.polyQtyMsg {
  display: block;
  grid-column: 2 / -1;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Add to Cart button styling */
#polyAddToCart.polyUploadBtn{
  background: #c81e1e;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  width: 100%;
}

/* Disabled state */
#polyAddToCart.polyUploadBtn.polyBtnDisabled,
#polyAddToCart.polyUploadBtn:disabled{
  background: #d7d7d7;
  color: #777;
  opacity: 1;
  cursor: not-allowed;
}

/* Hover */
#polyAddToCart.polyUploadBtn:not(:disabled):hover{
  filter: brightness(.95);
}

/* Price formatting */
.polyPriceBlock{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  background: linear-gradient(180deg, #fafafa, #f3f3f3);
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

#polyTotalPrice{
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #111;
  margin-bottom: 2px;
}

.polyPriceMeta{
  margin-top: 4px;
  font-size: 13px;
  color: #666;
}

#polyUnitPrice {
  font-weight: 600;
  color: #333;
}

/* ---- Proof / Dropzone area ---- */
.polyProofArea{
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.polyProofHeader{
  margin-bottom: 10px;
}

.polyProofHint{
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.polySameWrap{
  margin: 8px 0 10px 0;
}

.polySameLbl{
  font-size: 13px;
  color: #333;
  user-select: none;
  cursor: pointer;
}

.polySameNote{
  font-size: 12px;
  color: #666;
  margin: 4px 0 10px 18px;
}

.polyDropzones{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Make the DZ boxes feel like part of your form */
.polyDZ{
  border: 2px dashed rgba(0,0,0,.20);
  border-radius: 12px;
  background: #fff;
  min-height: 110px;
  padding: 10px;
}

/* Label row above each DZ when in 2-sided mode */
.polyDZTitle{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity: .8;
  margin: 0 0 6px 2px;
}

/* Slightly tighter previews */
.polyDZ .dz-preview{
  margin: 6px;
}

.polyDZWrap{
  position: relative;
}

.polyDzClearBtn{
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;

  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;

  background: #c41f1f;
  color: #fff;
  opacity: .92;
}

.polyDzClearBtn:hover{ 
  opacity: 1; 
}

/* Disabled dropzone state */
.dz-disabled{
  opacity: .55;
}

.dz-disabled .dz-message{
  cursor: not-allowed;
}

/* Upload button styling */
#polyUploadBtn.polyUploadBtn{
  background: #c81e1e;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  width: 100%;
}

/* Disabled state */
#polyUploadBtn.polyUploadBtn.polyBtnDisabled,
#polyUploadBtn.polyUploadBtn:disabled{
  background: #d7d7d7;
  color: #777;
  opacity: 1;
  cursor: not-allowed;
}

/* Hover */
#polyUploadBtn.polyUploadBtn:not(:disabled):hover{
  filter: brightness(.95);
}

.polyPlaceholder{
  opacity: .7;
  padding: 12px 0;
}