body.dct-options-active #dct-ai-footer{
  display:none!important;
}

#dctOptionsSetup,
#dctOptionsAi{
  box-sizing:border-box;
  color:#171717;
  font-family:inherit;
}

#dctOptionsSetup *,
#dctOptionsAi *{
  box-sizing:border-box;
}

#dctOptionsSetup{
  margin:14px 0 18px;
  padding:16px;
  border:1px solid #d7d1ca;
  border-radius:14px;
  background:#faf9f7;
}

#dctOptionsSetup h4{
  margin:0 0 7px;
  font-size:18px;
}

#dctOptionsSetup p{
  margin:0 0 12px;
  color:#575757;
  line-height:1.45;
}

#dctOptionsSetup.dco-photo-mode{
  margin-top:10px;
  border:2px solid #c92323;
  background:#fff5f5;
  box-shadow:0 5px 18px rgba(201,35,35,.12);
}

#dctOptionsSetup.dco-photo-mode h4{
  color:#c00000;
  font-size:20px;
  font-weight:850;
}

#dctOptionsSetup.dco-photo-mode .dco-upload{
  border-color:#d44747;
  background:#fff;
}

#dctOptionsSetup.dco-photo-mode .dco-upload strong{
  color:#b40000;
  font-size:17px;
}

#dctOptionsSetup.dco-photo-mode .dco-upload span{
  display:block;
  margin-top:7px;
  font-weight:800;
}

.dco-upload{
  display:block;
  margin:12px 0;
  padding:17px;
  border:3px dotted #bdb6ad;
  border-radius:13px;
  background:#fff;
  text-align:center;
  cursor:pointer;
}

.dco-upload:hover,
.dco-upload:focus-within,
.dco-upload.dco-drag-active{
  border-color:#171717;
  background:#fff9e9;
}

.dco-upload input{
  display:none;
}

.dco-upload strong,
.dco-upload small{
  display:block;
}

.dco-upload small{
  margin-top:4px;
  color:#777;
}

.dco-file-ready{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:10px 0 12px;
  padding:10px;
  border-radius:12px;
  background:#fff;
  color:#171717;
  text-align:center;
}

#dctOptionsSetup .dco-file-ready img{
  display:block!important;
  width:92px!important;
  height:92px!important;
  min-width:92px!important;
  min-height:92px!important;
  max-width:92px!important;
  max-height:92px!important;
  flex:0 0 92px!important;
  object-fit:cover!important;
  border-radius:9px;
}

.dco-file-ready span{
  display:block;
  width:100%;
  min-width:0;
  overflow-wrap:anywhere;
  font-size:14px;
  font-weight:700;
}

#dctOptionsSetup .dco-remove-photo{
  display:inline-block!important;
  margin-top:2px;
  padding:7px 12px!important;
  border:2px solid #9f1515!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#9f1515!important;
  font:inherit!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.2!important;
  cursor:pointer!important;
  -webkit-text-fill-color:#9f1515!important;
}

#dctOptionsSetup .dco-remove-photo:hover,
#dctOptionsSetup .dco-remove-photo:focus-visible{
  background:#9f1515!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  outline:2px solid #ffd54a!important;
  outline-offset:2px;
}

.dco-button{
  border:0;
  border-radius:12px;
  padding:13px 18px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.dco-button-primary{
  background:#171717;
  color:#fff;
}

.dco-button-secondary{
  background:#eeeae5;
  color:#171717;
}

.dco-button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.dco-inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.dco-photo-actions{
  justify-content:center;
  margin:0!important;
}

.dco-photo-actions-slot{
  display:block;
  width:100%;
  clear:both;
  margin-top:24px!important;
  padding-top:4px;
}

#dctOptionsSetup .dco-photo-generate{
  display:inline-block!important;
  background:#b40000!important;
  color:#fff!important;
  border:2px solid #5c0000!important;
  box-shadow:0 3px 10px rgba(0,0,0,.28)!important;
  -webkit-text-fill-color:#fff!important;
}

#dctOptionsSetup .dco-photo-generate:hover,
#dctOptionsSetup .dco-photo-generate:focus-visible{
  background:#d00000!important;
  color:#fff!important;
  outline:3px solid #ffd54a!important;
  outline-offset:2px;
}

.dco-setup-status,
.dco-status{
  margin-top:10px;
  color:#666;
  font-weight:650;
  line-height:1.45;
}

.dco-setup-status.error,
.dco-status.error{
  color:#a01818;
}

.dco-native-locked{
  opacity:.48!important;
  cursor:not-allowed!important;
}

.dco-hidden-product-option{
  display:none!important;
}

body.dct-options-active .details-product-option:has([aria-label="AI Design Reference"]),
body.dct-options-active .details-product-option:has([aria-label="Approved Design Link"]){
  display:none!important;
}

#dctOptionsAi{
  width:min(1180px,calc(100% - 28px));
  margin:34px auto 46px;
  padding:26px;
  border:1px solid #ded9d2;
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 28px rgba(0,0,0,.06);
}

.dco-ai-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:20px;
}

.dco-ai-head h2{
  margin:0 0 7px;
  font-size:clamp(25px,4vw,38px);
  line-height:1.08;
}

.dco-ai-head p{
  margin:0;
  max-width:720px;
  color:#626262;
  line-height:1.5;
}

.dco-badge{
  flex:0 0 auto;
  padding:8px 11px;
  border-radius:999px;
  background:#171717;
  color:#fff;
  font-size:12px;
  font-weight:800;
}

.dco-ai-grid{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  min-width:0;
  max-width:100%;
  gap:22px;
}

.dco-card{
  min-width:0;
  max-width:100%;
  padding:20px;
  border:1px solid #e1ddd7;
  border-radius:17px;
  background:#faf9f7;
  overflow:hidden;
}

.dco-card h3{
  margin:0 0 14px;
  font-size:21px;
}

.dco-summary{
  display:grid;
  gap:9px;
  margin:0;
}

.dco-summary-row{
  display:grid;
  grid-template-columns:105px minmax(0,1fr);
  min-width:0;
  gap:12px;
  padding-bottom:9px;
  border-bottom:1px solid #e3dfda;
}

.dco-summary-row:last-child{
  border-bottom:0;
}

.dco-summary-row dt{
  color:#6b6b6b;
}

.dco-summary-row dd{
  min-width:0;
  margin:0;
  font-weight:750;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.dco-preview-empty{
  display:flex;
  min-height:330px;
  align-items:center;
  justify-content:center;
  padding:28px;
  border-radius:15px;
  background:#efede9;
  color:#555;
  text-align:center;
}

.dco-preview-wrap{
  display:none;
  width:100%;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}

.dco-preview-wrap img{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  height:auto;
  max-height:720px;
  object-fit:contain;
  border:1px solid #ded9d2;
  border-radius:15px;
  background:#fff;
}

.dco-preview-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  width:100%;
  max-width:100%;
  margin-top:13px;
  overflow:hidden;
}

.dco-preview-actions .dco-button{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:48px;
  margin:0;
  padding:10px 6px;
  font-size:clamp(12px,3.2vw,15px);
  line-height:1.2;
  white-space:normal;
  overflow:hidden;
  overflow-wrap:anywhere;
}

.dco-regenerate{
  border:2px solid #b42318!important;
  background:#fff!important;
  color:#b42318!important;
  -webkit-text-fill-color:#b42318!important;
}

.dco-approve{
  border:2px solid #126b38!important;
  background:#198754!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

.dco-approval-note{
  display:block;
  margin-top:10px;
  color:#b42318;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  text-align:center;
}

.dco-loading{
  display:none;
  width:100%;
  min-width:0;
  margin:14px 0 0;
  padding:13px;
  border-radius:12px;
  background:#fff4d8;
  color:#5f4910;
  font-weight:700;
  align-items:center;
  gap:13px;
}

.dco-loading-text{
  min-width:0;
  overflow-wrap:anywhere;
}

.dco-spinner{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:4px solid #dacda9;
  border-top-color:#171717;
  border-radius:50%;
  animation:dcoSpin .8s linear infinite;
}

@keyframes dcoSpin{
  to{transform:rotate(360deg)}
}

@media(prefers-reduced-motion:reduce){
  .dco-spinner{
    animation-duration:1.8s;
  }
}

.dco-approved{
  display:none;
  margin-top:13px;
  padding:13px;
  border:1px solid #bcd7b2;
  border-radius:12px;
  background:#eef8eb;
  color:#244d1c;
  font-weight:700;
}

.dco-reference{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
}

.dco-config-error{
  padding:15px;
  border:1px solid #e5b6b6;
  border-radius:12px;
  background:#fff1f1;
  color:#8b1818;
  font-weight:700;
}

.dco-checkout-preview{
  display:block!important;
  width:max-content!important;
  max-width:140px!important;
  margin-top:10px!important;
  padding:8px!important;
  border:1px solid #ddd8d1!important;
  border-radius:10px!important;
  background:#fff!important;
  line-height:0!important;
}

.dco-checkout-preview img{
  display:block!important;
  width:120px!important;
  height:120px!important;
  object-fit:contain!important;
  border-radius:6px!important;
}

@media(max-width:760px){
  #dctOptionsAi{
    width:calc(100% - 16px);
    padding:17px;
    border-radius:16px;
  }

  .dco-ai-head{
    display:block;
  }

  .dco-badge{
    display:inline-block;
    margin-top:11px;
  }

  .dco-ai-grid{
    grid-template-columns:minmax(0,1fr);
  }

  .dco-preview-empty{
    min-height:240px;
  }

  .dco-preview-actions .dco-button,
  .dco-inline-actions .dco-button{
    width:100%;
  }

  .dco-loading{
    gap:11px;
    padding:12px;
  }

  .dco-spinner{
    width:32px;
    height:32px;
    flex-basis:32px;
    border-width:3px;
  }
}
