/* Product-only add-on controls matching the existing SunMax option buttons. */
body.single-product .sunmax-rpp-choice {
  display:block;
  clear:both;
  border:0;
  margin:16px 0 13px;
  padding:0;
  min-width:0;
  max-width:100%;
}
body.single-product .sunmax-rpp-choice legend {
  float:none;
  width:auto;
  padding:0;
  margin:0 0 10px;
  font-size:18px;
  font-weight:750;
  line-height:1.3;
  letter-spacing:-.02em;
  color:#122f40;
}
body.single-product .sunmax-rpp-options {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}
body.single-product .sunmax-rpp-option {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:12px 20px;
  margin:0;
  border:1.5px solid #b4c9d6;
  border-radius:11px;
  color:#0b3147;
  background:white;
  font-size:17px;
  font-weight:550;
  line-height:1.3;
  cursor:pointer;
  transition:background-color .15s,border-color .15s,color .15s;
  position:relative;
  box-shadow:none;
}
body.single-product .sunmax-rpp-option:focus-visible {
  outline:2px solid #0a789d;
  outline-offset:2px;
}
body.single-product .sunmax-rpp-option.is-selected {
  color:#fff;
  background:#087199;
  border-color:#087199;
  font-weight:650;
}
body.single-product .sunmax-rpp-extra {
  display:inline-flex;
  align-items:center;
  margin-left:7px;
  padding:2px 7px;
  border-radius:6px;
  background:#e7f4fa;
  color:#006188;
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
}
body.single-product .sunmax-rpp-option.is-selected .sunmax-rpp-extra {
  background:rgba(255,255,255,.18);
  color:#fff;
}
@media(max-width:767px) {
  body.single-product .sunmax-rpp-choice legend {font-size:18px}
  body.single-product .sunmax-rpp-option {min-height:50px;font-size:15px;padding:10px 15px}
}

/* v1.1: Align the add-on with SunMax's existing selector rhythm.
   WooCommerce's reset link is intentionally visually hidden only on
   supported SunMax pages; button-based deselection still works. */
body.single-product form.variations_form .variations .reset_variations,
body.single-product form.variations_form .reset_variations {
  display: none !important;
  visibility: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.single-product form.variations_form .sunmax-rpp-choice {
  box-sizing: border-box;
  margin: 4px 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
}
body.single-product form.variations_form .sunmax-rpp-choice legend {
  display: block;
  box-sizing: border-box;
  margin: 0 0 9px !important;
  padding: 0 !important;
  font-size: 18px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.025em !important;
  color: #122f40 !important;
}
body.single-product form.variations_form .sunmax-rpp-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.single-product form.variations_form .sunmax-rpp-option {
  box-sizing: border-box !important;
  appearance: none;
  width: auto !important;
  height: auto !important;
  min-height: 48px !important;
  padding: 11px 14px !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 550;
  line-height: 1.25 !important;
  white-space: nowrap;
  border-radius: 9px !important;
}
body.single-product form.variations_form .sunmax-rpp-option.is-selected {
  font-weight: 650;
}
@media (max-width: 767px) {
  body.single-product form.variations_form .sunmax-rpp-option {
    min-height: 46px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
  }
}
