/* Deepnet Product Add to Cart */
.dnpac-wrapper { max-width: 400px; width: 100%; box-sizing: border-box; font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:#111; }
.dnpac-title { margin: 0 0 10px; font-size: 18px; }
.dnpac-picker { margin-bottom: 12px; }
.dnpac-select { width: 100%; padding: 8px; box-sizing: border-box; }

.dnpac-controls { display: flex; gap: 8px; align-items: center; }
.dnpac-qty { flex: 1 1 auto; min-width: 0; padding: 8px; border: 1px solid #ccc; border-radius: 6px; }
.dnpac-action { flex: 0 0 auto; padding: 9px 14px; border-radius: 6px; border: 1px solid #0a66c2; background: #0a66c2; color: #fff; cursor: pointer; }
.dnpac-action:hover { filter: brightness(0.95); }
.dnpac-tip { margin-top: 8px; min-height: 1em; color: #0a6; }
.is-hidden { display: none; }

/* Accessibility */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
  word-wrap: normal !important;
  clip-path: inset(50%);
  white-space: nowrap !important;
}



/* Thumbnail layout: title on left, image on right; image fits (no crop) and aligns with the action button's right edge */
.dnpac-head { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 10px; 
  margin-bottom: 10px; 
}
.dnpac-head .dnpac-title { 
  margin: 0; 
  flex: 1 1 auto; 
  min-width: 0; 
}
.dnpac-thumb {
  border: none;
  background: transparent; 
  width: 64px; 
  height: 64px; 
  object-fit: contain;   /* resize to fit, do NOT crop */
  object-position: center center;
  border-radius: 8px; 
   
  background: #fff; 
}
/* Ensure the button sits flush to the right edge like the thumb above */
.dnpac-controls { 
  display: flex; 
  gap: 8px; 
  align-items: center; 
}
.dnpac-controls .dnpac-action {
  margin-left: auto;   /* push button to the far right */
}
