.dcb2-tooltip-icon{
  position:relative;
  z-index:5;
}

.dcb2-field-wrapper label{
  position:relative;
}

.dcb2-tooltip-icon{
  pointer-events:auto;
  touch-action:manipulation;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:15px;
  aspect-ratio:1 / 1;
  border:1px solid currentColor;
  border-radius:50%;
  font-size:12px;
  font-weight:800;
  line-height:1;
  cursor:help;
  user-select:none;
  flex-shrink:0;
}

.dcb2-color-option + span{
  transition:0.2s ease;
}

.dcb2-color-option:checked + span{
  border:3px solid #6b46c1;
  transform:scale(1.1);
}

.dcb2-image-box{
  border:2px solid #ddd;
  border-radius:8px;
  padding:8px;
  text-align:center;
  transition:0.2s ease;
}

.dcb2-image-fallback{
  background:#fff;
  border:2px solid #6b46c1;
  font-weight:600;
  min-height:80px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dcb2-image-option:checked + .dcb2-image-box{
  border:3px solid #6b46c1;
  transform:scale(1.03);
}

.dcb2-delivery-option:checked + .dcb2-delivery-box{
  border:3px solid #6b46c1;
  transform:scale(1.03);
}

.dcb2-delivery-group{
  margin-top:10px;
}

.dcb2-delivery-box{
  border:2px solid #e2e2e2;
  padding:18px;
  border-radius:12px;
  transition:0.25s ease;
  background:#fff;
}

.dcb2-delivery-option:checked + .dcb2-delivery-box{
  border:2px solid #6b46c1;
  background:#f8f6ff;
  transform:translateY(-3px);
}

.dcb2-delivery-box:hover{
  border-color:#6b46c1;
}

.dcb2-cutoff-timer{
  font-size:12px;
  margin-bottom:12px;
  color:#555;
}

.dcb2-cutoff-timer strong{
  color:#c53030;
  font-weight:700;
}

/* IMAGE GRID SYSTEM (RESPONSIVE FIX) */
.dcb2-image-group{
  display:grid;
  grid-template-columns:repeat(var(--dcb-columns, 3), 1fr);
  gap:12px;
}

@media (max-width:768px){
  .dcb2-image-group{
    grid-template-columns:repeat(2, 1fr);
  }
}

/* PERFECT ALIGNMENT SYSTEM */
.dcb2-modifiers-wrapper{
  width:100%;
  padding-left:20px;
  padding-right:20px;
  box-sizing:border-box;
}

.dcb2-block-wrapper,
.dcb2-field-wrapper,
.dcb2-image-group{
  width:100%;
  box-sizing:border-box;
}

/* IMAGE LABEL TEXT FIX */
.dcb2-image-box > div{
  word-break:normal;
  overflow-wrap:normal;
  white-space:normal;
  text-align:center;
  line-height:1.2;
}

@media (max-width:768px){
  .dcb2-image-box > div{
    font-size:13px;
  }
}

/* UNIFORM CARD HEIGHT */
.dcb2-image-group{
  align-items:stretch;
  grid-auto-columns:1fr;
  justify-items:stretch;
}

.dcb2-image-label{
  display:flex;
  width:100%;
  min-width:0;
}

.dcb2-image-box{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  width:100%;
  height:100%;
}

/* INPUTS WIDTH (don't affect radio/checkbox) */
.dcb2-field-wrapper input:not([type="radio"]):not([type="checkbox"]),
.dcb2-field-wrapper select,
.dcb2-field-wrapper textarea{
  width:100%;
  box-sizing:border-box;
}

/* Keep natural size for radios/checkboxes */
.dcb2-field-wrapper input[type="radio"],
.dcb2-field-wrapper input[type="checkbox"]{
  width:auto !important;
}

.dcb2-tooltip-bubble{
  position:absolute;
  z-index:999999;
  max-width:240px;
  padding:10px 12px;
  background:rgba(0,0,0,0.85);
  color:#fff;
  border-radius:10px;
  font-size:13px;
  line-height:1.3;
  box-shadow:0 8px 24px rgba(0,0,0,0.25);
}

/* RADIO / CHECKBOX rows */
.dcb2-choice{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0;
  line-height:1.2;
}

.dcb2-choice input[type="radio"],
.dcb2-choice input[type="checkbox"]{
  margin:0 !important;
  flex:0 0 auto;
}

.dcb2-choice-text{
  display:inline;
}

/* FORCE alignment (works with WooCommerce Blocks too) */
.dcb2-modifiers-wrapper .dcb2-field-wrapper label.dcb2-choice{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  margin:8px 0 !important;
  line-height:1.2 !important;
  width:100% !important;
}

/* Prevent the text from jumping to another line due to theme rules */
.dcb2-modifiers-wrapper .dcb2-field-wrapper label.dcb2-choice .dcb2-choice-text{
  display:inline !important;
  float:none !important;
  clear:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* Extra safety: kill theme floats inside the option row */
.dcb2-modifiers-wrapper .dcb2-field-wrapper label.dcb2-choice *{
  float:none !important;
  clear:none !important;
}

.dcb2-file-upload{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.dcb2-file-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:2px solid #ddd;
  border-radius:12px;
  cursor:pointer;
  background:#fff;
  transition:0.2s ease;
}

.dcb2-file-btn:hover{
  border-color:#6b46c1;
  transform:translateY(-1px);
}

.dcb2-file-btn input[type="file"]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.dcb2-file-btn-text{
  font-weight:700;
  font-size:13px;
}

.dcb2-file-name{
  font-size:13px;
  opacity:0.85;
}

.dcb2-file-hint{
  width:100%;
  font-size:12px;
  color:#666;
}