/* ── Dheerah Product Add-Ons — Frontend Styles ──────────────────────────── */

.dheerah-addons-wrapper {
  margin: 18px 0 22px;
  border-top: 1px solid #ebebeb;
  padding-top: 18px;
}

/* ── Group ───────────────────────────────────────────────────────────────── */
.dheerah-addon-group {
  margin-bottom: 20px;
}

.dheerah-group-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #555;
  margin-bottom: 10px;
}

.dheerah-required {
  color: #c0392b;
  margin-left: 2px;
}

/* ── Radio buttons ───────────────────────────────────────────────────────── */
.dheerah-radio-group,
.dheerah-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dheerah-radio-option,
.dheerah-checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.dheerah-radio-option input[type="radio"],
.dheerah-checkbox-option input[type="checkbox"] {
  display: none;
}

.dheerah-option-text {
  display: inline-block;
  border: 1.5px solid #d0d0d0;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: all .18s ease;
  user-select: none;
}

.dheerah-option-text em {
  font-style: normal;
  font-size: 12px;
  color: #c0392b;
  margin-left: 4px;
}

/* Selected state */
.dheerah-radio-option input[type="radio"]:checked  + .dheerah-option-text,
.dheerah-checkbox-option input[type="checkbox"]:checked + .dheerah-option-text {
  border-color: #c0392b;
  background: #c0392b;
  color: #fff;
}

.dheerah-radio-option input[type="radio"]:checked + .dheerah-option-text em,
.dheerah-checkbox-option input[type="checkbox"]:checked + .dheerah-option-text em {
  color: rgba(255,255,255,.85);
}

.dheerah-radio-option:hover .dheerah-option-text,
.dheerah-checkbox-option:hover .dheerah-option-text {
  border-color: #c0392b;
  color: #c0392b;
}

/* ── Select dropdown ─────────────────────────────────────────────────────── */
.dheerah-select {
  width: 100%;
  max-width: 340px;
  padding: 9px 12px;
  border: 1.5px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.dheerah-select:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

/* ── Text input ──────────────────────────────────────────────────────────── */
.dheerah-text-group { max-width: 360px; }
.dheerah-text-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  transition: border-color .15s;
}
.dheerah-text-input:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
.dheerah-text-price-note {
  display: block;
  font-size: 12px;
  color: #c0392b;
  margin-top: 5px;
}

/* ── Live price display ──────────────────────────────────────────────────── */
.dheerah-addon-price-summary {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #888;
  transition: opacity .2s;
}

/* ── Validation error ────────────────────────────────────────────────────── */
.dheerah-addon-group.dheerah-invalid .dheerah-group-label {
  color: #c0392b;
}
.dheerah-addon-group.dheerah-invalid .dheerah-option-text {
  border-color: #f9a8a8;
}
.dheerah-addon-group.dheerah-invalid .dheerah-select,
.dheerah-addon-group.dheerah-invalid .dheerah-text-input {
  border-color: #c0392b;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .dheerah-radio-group, .dheerah-checkbox-group {
    gap: 6px;
  }
  .dheerah-option-text {
    padding: 7px 14px;
    font-size: 13px;
  }
}
