/* Theme page title on calculator pages (Hello Elementor .page-header) */
.page-header {
  text-align: center;
}

.page-header .entry-title {
  font-family: "Fredoka", sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sb-navy);
  text-align: center;
}

/* Sahara Blanket brand tokens (Elementor kit) */
.sb-calculator {
  --sb-primary: #6ec1e4;
  --sb-primary-dark: #4aabcc;
  --sb-navy: #0b1838;
  --sb-text: #3d4f5f;
  --sb-muted: #7a7a7a;
  --sb-bg: #ffffff;
  --sb-surface: #f4faff;
  --sb-border: #d7ebf5;
  --sb-selected-bg: #eaf7fd;
  --sb-selected-border: #6ec1e4;
  --sb-shadow: 0 12px 40px rgba(11, 24, 56, 0.08);
  --sb-radius: 18px;

  max-width: 520px;
  margin: 24px auto;
  padding: 28px 24px 24px;
  background: var(--sb-bg);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  direction: rtl;
  text-align: right;
  font-family: "Heebo", "Fredoka", Arial, sans-serif;
  color: var(--sb-navy);
}

/* Prevent theme/Elementor button styles from bleeding in */
.sb-calculator button,
.sb-calculator .sb-calc-btn,
.sb-calculator .sb-calc-card,
.sb-calculator .sb-calc-link,
.sb-calculator .sb-calc-skip,
.sb-calculator .sb-calc-more-toggle,
.sb-calculator .sb-calc-num-btn,
.sb-calculator .sb-calc-quick-pick {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: 1.4;
  box-shadow: none;
}

.sb-calc-wizard {
  /* Step transitions live on .sb-calc-step-body only — avoids flash on card select */
}

.sb-calc-step-body.is-entering {
  animation: sbCalcStepIn 0.22s ease;
}

@keyframes sbCalcStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sb-calc-header {
  margin-bottom: 24px;
}

.sb-calc-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sb-navy);
  line-height: 1.3;
}

.sb-calc-subtitle {
  margin: 0 0 20px;
  color: var(--sb-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sb-calc-progress-wrap {
  margin-bottom: 8px;
}

.sb-calc-progress-label {
  font-size: 0.82rem;
  color: var(--sb-muted);
  margin-bottom: 10px;
}

.sb-calc-progress {
  height: 5px;
  background: var(--sb-border);
  border-radius: 999px;
  overflow: hidden;
}

.sb-calc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sb-primary), var(--sb-primary-dark));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.sb-calc-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.sb-calc-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sb-border);
  transition: background 0.25s, transform 0.25s;
}

.sb-calc-step-dot.is-active {
  background: var(--sb-primary);
  transform: scale(1.15);
}

.sb-calc-step-dot.is-done {
  background: var(--sb-primary-dark);
}

.sb-calc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.sb-calc-cards--stack {
  grid-template-columns: 1fr;
}

.sb-calc-card {
  position: relative;
  min-height: 54px;
  padding: 16px 14px;
  border: 1.5px solid var(--sb-border);
  border-radius: 14px;
  background: var(--sb-bg) !important;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sb-navy) !important;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
}

.sb-calculator .sb-calc-card:hover:not(:disabled),
.sb-calculator .sb-calc-card:focus-visible:not(:disabled) {
  border-color: var(--sb-primary) !important;
  background: var(--sb-surface) !important;
  color: var(--sb-navy) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 24, 56, 0.06);
}

.sb-calculator .sb-calc-card:active {
  transform: translateY(0);
}

.sb-calc-card.is-selected {
  border-color: var(--sb-selected-border) !important;
  background: var(--sb-selected-bg) !important;
  box-shadow: 0 0 0 1px var(--sb-selected-border);
  color: var(--sb-navy) !important;
}

.sb-calculator .sb-calc-card.is-selected:hover:not(:disabled),
.sb-calculator .sb-calc-card.is-selected:focus-visible:not(:disabled) {
  border-color: var(--sb-primary-dark) !important;
  background: #dff1fa !important;
  color: var(--sb-navy) !important;
  box-shadow: 0 0 0 2px rgba(110, 193, 228, 0.45);
  transform: translateY(-1px);
}

.sb-calc-card.is-recommended:not(.is-selected) {
  border-color: #b8dff0;
  background: var(--sb-surface) !important;
}

.sb-calculator .sb-calc-card.is-recommended:not(.is-selected):hover:not(:disabled),
.sb-calculator .sb-calc-card.is-recommended:not(.is-selected):focus-visible:not(:disabled) {
  border-color: var(--sb-primary) !important;
  background: #eaf7fd !important;
  color: var(--sb-navy) !important;
}

.sb-calc-card__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sb-muted);
}

.sb-calculator .sb-calc-card:hover .sb-calc-card__hint {
  color: var(--sb-muted) !important;
}

.sb-calc-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sb-navy);
  background: var(--sb-primary);
  border-radius: 999px;
}

.sb-calc-more-toggle {
  display: block;
  width: 100%;
  margin: 10px 0 4px;
  padding: 10px;
  background: transparent !important;
  border: 1px dashed var(--sb-border);
  border-radius: 12px;
  color: var(--sb-primary-dark) !important;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.sb-calculator .sb-calc-more-toggle:hover:not(:disabled),
.sb-calculator .sb-calc-more-toggle:focus-visible:not(:disabled) {
  background: var(--sb-surface) !important;
  color: var(--sb-primary-dark) !important;
  border-color: var(--sb-primary) !important;
}

.sb-calc-cards--extra {
  margin-top: 8px;
}

.sb-calc-field {
  margin-bottom: 14px;
}

.sb-calc-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sb-navy);
}

.sb-calc-field-group {
  padding: 14px;
  margin-top: 10px;
  background: var(--sb-surface);
  border-radius: 12px;
  border: 1px solid var(--sb-border);
}

.sb-calc-field-group__title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sb-muted);
}

.sb-calc-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--sb-border);
  border-radius: 12px;
  font-size: 1.05rem;
  background: #fff;
  color: var(--sb-navy);
  box-sizing: border-box;
}

.sb-calc-input:focus {
  outline: none;
  border-color: var(--sb-primary);
  box-shadow: 0 0 0 3px rgba(110, 193, 228, 0.25);
}

.sb-calc-num-control {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.sb-calc-num-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.sb-calc-num-input {
  width: 100%;
  min-height: 56px;
  padding: 14px 52px 14px 16px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.sb-calc-num-unit {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sb-muted);
  pointer-events: none;
}

.sb-calc-num-btn {
  flex: 0 0 52px;
  min-height: 56px;
  border: 1.5px solid var(--sb-border);
  border-radius: 14px;
  background: var(--sb-surface) !important;
  color: var(--sb-navy) !important;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sb-calculator .sb-calc-num-btn:hover:not(:disabled),
.sb-calculator .sb-calc-num-btn:focus-visible:not(:disabled) {
  border-color: var(--sb-primary) !important;
  background: #eaf7fd !important;
  color: var(--sb-navy) !important;
}

.sb-calculator .sb-calc-num-btn:active {
  transform: scale(0.96);
  background: var(--sb-selected-bg) !important;
}

.sb-calc-quick-picks {
  margin-top: 12px;
}

.sb-calc-quick-picks__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sb-muted);
}

.sb-calc-quick-picks__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sb-calc-quick-pick {
  min-width: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--sb-border);
  border-radius: 999px;
  background: #fff !important;
  color: var(--sb-navy) !important;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sb-calculator .sb-calc-quick-pick:hover:not(:disabled),
.sb-calculator .sb-calc-quick-pick:focus-visible:not(:disabled) {
  border-color: var(--sb-primary) !important;
  background: var(--sb-surface) !important;
  color: var(--sb-navy) !important;
}

.sb-calc-quick-pick.is-selected {
  border-color: var(--sb-primary) !important;
  background: var(--sb-selected-bg) !important;
  box-shadow: 0 0 0 1px var(--sb-primary);
}

.sb-calc-field-group .sb-calc-num-field {
  margin-bottom: 0;
}

.sb-calc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--sb-border);
}

.sb-calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 0.2s, transform 0.15s;
}

.sb-calc-btn--primary {
  background: var(--sb-primary) !important;
  color: var(--sb-navy) !important;
  flex: 1;
  box-shadow: 0 4px 14px rgba(110, 193, 228, 0.35);
}

.sb-calculator .sb-calc-btn--primary:hover:not(:disabled),
.sb-calculator .sb-calc-btn--primary:focus-visible:not(:disabled) {
  background: #dff1fa !important;
  color: var(--sb-navy) !important;
  box-shadow: 0 4px 14px rgba(110, 193, 228, 0.35);
}

.sb-calc-btn--primary.is-added {
  background: #27ae60 !important;
  border-color: #27ae60;
  color: #fff !important;
}

.sb-calculator .sb-calc-btn--primary.is-added:hover:not(:disabled),
.sb-calculator .sb-calc-btn--primary.is-added:focus-visible:not(:disabled) {
  background: #219a52 !important;
  color: #fff !important;
}

.sb-calc-btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.sb-calc-btn--ghost {
  background: transparent !important;
  color: var(--sb-muted) !important;
  border: 1.5px solid var(--sb-border);
  min-width: 88px;
}

.sb-calculator .sb-calc-btn--ghost:hover:not(:disabled),
.sb-calculator .sb-calc-btn--ghost:focus-visible:not(:disabled) {
  border-color: var(--sb-primary) !important;
  color: var(--sb-navy) !important;
  background: var(--sb-surface) !important;
}

.sb-calc-error {
  color: #b42318;
  font-size: 0.88rem;
  margin: 12px 0 0;
  padding: 8px 12px;
  background: #fef3f2;
  border-radius: 8px;
}

.sb-calc-advisory {
  font-size: 0.85rem;
  color: #854d0e;
  background: #fffbeb;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 12px;
  border-right: 3px solid #fbbf24;
}

.sb-calc-optional {
  margin-top: 24px;
  padding: 16px;
  background: var(--sb-surface);
  border-radius: 14px;
  border: 1px solid var(--sb-border);
}

.sb-calc-optional__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sb-calc-optional__badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sb-muted);
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  white-space: nowrap;
}

.sb-calc-link {
  display: inline;
  background: transparent !important;
  border: none !important;
  color: var(--sb-navy) !important;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(11, 24, 56, 0.25);
  text-underline-offset: 3px;
  text-align: right;
}

.sb-calculator .sb-calc-link:hover,
.sb-calculator .sb-calc-link:focus-visible {
  background: transparent !important;
  border: none !important;
  color: var(--sb-primary-dark) !important;
  text-decoration-color: var(--sb-primary-dark);
  box-shadow: none !important;
}

.sb-calculator .sb-calc-link:active {
  background: transparent !important;
  color: var(--sb-navy) !important;
  transform: none;
}

.sb-calc-medical-panel {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.sb-calc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--sb-text);
}

.sb-calc-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--sb-primary-dark);
}

.sb-calc-skip {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--sb-muted) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(122, 122, 122, 0.45);
  text-underline-offset: 2px;
}

.sb-calculator .sb-calc-skip:hover,
.sb-calculator .sb-calc-skip:focus-visible {
  background: transparent !important;
  border: none !important;
  color: var(--sb-navy) !important;
  text-decoration-color: var(--sb-primary-dark);
  box-shadow: none !important;
}

.sb-calculator .sb-calc-skip:active {
  background: transparent !important;
  transform: none;
}

.sb-calculator .sb-calc-check:hover {
  color: var(--sb-navy);
}

.sb-calc-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 24, 56, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.sb-calc-modal-box {
  background: #fff;
  border-radius: var(--sb-radius);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  direction: rtl;
  text-align: right;
  box-shadow: var(--sb-shadow);
}

.sb-calc-modal-box h3 {
  margin: 0 0 12px;
  color: var(--sb-navy);
}

.sb-calc-modal-box p {
  margin: 0 0 16px;
  line-height: 1.6;
  color: var(--sb-text);
}

.sb-calc-loading {
  text-align: center;
  padding: 40px;
  color: var(--sb-muted);
}

.sb-calc-results h2 {
  margin: 0 0 8px;
  color: var(--sb-navy);
}

.sb-calculator--results {
  padding: 18px 16px 16px;
  margin-top: 8px;
}

.sb-calc-results__head {
  margin-bottom: 10px;
}

.sb-calc-results__head h2 {
  margin: 0 0 2px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.sb-calc-results__sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--sb-muted);
  line-height: 1.4;
}

.sb-calc-results__pick {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sb-navy);
}

.sb-calc-message {
  background: var(--sb-surface);
  border-right: 3px solid var(--sb-primary);
  padding: 10px 12px;
  border-radius: 8px;
  margin: 0 0 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--sb-text);
}

.sb-calc-message:last-child {
  margin-bottom: 0;
}

.sb-calc-messages-fold,
.sb-calc-upsells-fold {
  margin: 10px 0 0;
  border: 1px solid var(--sb-border);
  border-radius: 12px;
  background: var(--sb-surface);
  overflow: hidden;
}

.sb-calc-messages-fold summary,
.sb-calc-upsells-fold summary {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sb-primary-dark);
  list-style: none;
}

.sb-calc-messages-fold summary::-webkit-details-marker,
.sb-calc-upsells-fold summary::-webkit-details-marker {
  display: none;
}

.sb-calc-messages-fold__body,
.sb-calc-upsells__body {
  padding: 0 12px 12px;
}

.sb-calc-notice {
  color: var(--sb-muted);
  font-size: 0.9rem;
}

.sb-calc-notice--inline {
  margin: 0 0 8px;
  font-size: 0.8rem;
}

.sb-calc-products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.sb-calc-results__bundle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-calc-product {
  border: 1.5px solid var(--sb-border);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: right;
  position: relative;
  background: var(--sb-bg) !important;
  color: var(--sb-navy) !important;
}

.sb-calc-product--selectable {
  display: block;
  width: 100%;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sb-calculator .sb-calc-product--selectable:hover:not(:disabled),
.sb-calculator .sb-calc-product--selectable:focus-visible:not(:disabled) {
  border-color: var(--sb-primary) !important;
  background: var(--sb-surface) !important;
  color: var(--sb-navy) !important;
  box-shadow: 0 4px 12px rgba(11, 24, 56, 0.06);
}

.sb-calc-product.is-selected {
  border-color: var(--sb-selected-border) !important;
  background: var(--sb-selected-bg) !important;
  box-shadow: 0 0 0 1px var(--sb-selected-border);
  color: var(--sb-navy) !important;
}

.sb-calculator .sb-calc-product--selectable:hover:not(:disabled) h3,
.sb-calculator .sb-calc-product--selectable:hover:not(:disabled) .sb-calc-price,
.sb-calculator .sb-calc-product--selectable:focus-visible:not(:disabled) h3,
.sb-calculator .sb-calc-product--selectable:focus-visible:not(:disabled) .sb-calc-price,
.sb-calculator .sb-calc-product.is-selected h3,
.sb-calculator .sb-calc-product.is-selected .sb-calc-price {
  color: var(--sb-navy) !important;
}

.sb-calculator .sb-calc-product--selectable:hover:not(:disabled) .sb-calc-price *,
.sb-calculator .sb-calc-product.is-selected .sb-calc-price * {
  color: inherit !important;
}

.sb-calculator .sb-calc-product.is-selected:hover:not(:disabled),
.sb-calculator .sb-calc-product.is-selected:focus-visible:not(:disabled) {
  border-color: var(--sb-primary-dark) !important;
  background: #dff1fa !important;
  color: var(--sb-navy) !important;
  box-shadow: 0 0 0 2px rgba(110, 193, 228, 0.45);
}

.sb-calc-product__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--sb-border);
  border-radius: 50%;
  background: #fff;
}

.sb-calc-product.is-selected .sb-calc-product__check {
  border-color: var(--sb-primary);
  background: var(--sb-primary);
  box-shadow: inset 0 0 0 3px #fff;
}

.sb-calc-product__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sb-calc-product__media {
  flex: 0 0 72px;
  position: relative;
  z-index: 1;
}

.sb-calc-product__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.2s ease;
}

.sb-calc-product__media:hover .sb-calc-product__thumb {
  transform: scale(1.04);
}

.sb-calc-product__zoom {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: 200px;
  padding: 6px;
  background: #fff;
  border: 1.5px solid var(--sb-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 24, 56, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 20;
}

.sb-calc-product__zoom img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.sb-calc-product__media:hover .sb-calc-product__zoom,
.sb-calc-product__media:focus-within .sb-calc-product__zoom {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.sb-calc-product__body {
  flex: 1;
  min-width: 0;
}

.sb-calc-product.is-best {
  border-color: var(--sb-primary);
  background: var(--sb-surface) !important;
  box-shadow: 0 2px 12px rgba(110, 193, 228, 0.18);
}

.sb-calc-product.is-best.is-selected {
  background: var(--sb-selected-bg) !important;
}

.sb-calc-best-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--sb-primary);
  color: var(--sb-navy);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 1;
}

.sb-calc-product h3 {
  margin: 0 0 4px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--sb-navy);
}

.sb-calc-price {
  line-height: 1.2;
}

.sb-calc-price-sale {
  font-size: 1rem;
  font-weight: 700;
  color: #c0392b;
}

.sb-calc-price-regular {
  font-size: 0.8rem;
  color: var(--sb-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.sb-calc-btn--compact {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.88rem;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
}

.sb-calc-product .sb-calc-btn {
  margin-top: 8px;
}

.sb-calc-product--selectable .sb-calc-product__body h3 {
  padding-left: 24px;
}

.sb-calc-upsells {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--sb-border);
  border-radius: 12px;
  background: var(--sb-surface);
}

.sb-calc-upsells__title {
  margin: 0 0 4px;
  color: var(--sb-navy);
  font-size: 0.95rem;
}

.sb-calc-upsells__hint {
  margin: 0 0 10px;
  color: var(--sb-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.sb-calc-upsells h4 {
  margin: 0 0 8px;
  color: var(--sb-navy);
  font-size: 0.88rem;
}

.sb-calc-upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.sb-calc-upsell {
  position: relative;
  display: block;
  cursor: pointer;
}

.sb-calc-upsell-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.sb-calc-upsell__check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 2px solid var(--sb-border);
  border-radius: 4px;
  background: #fff;
  pointer-events: none;
}

.sb-calc-upsell.is-selected .sb-calc-upsell__check {
  border-color: var(--sb-primary);
  background: var(--sb-primary);
  box-shadow: inset 0 0 0 3px #fff;
}

.sb-calc-upsell__box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1.5px solid var(--sb-border);
  border-radius: 10px;
  padding: 28px 8px 8px;
  text-align: center;
  font-size: 0.78rem;
  background: #fff;
  min-height: 100%;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sb-calc-upsell__select-hint {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sb-primary-dark);
  background: #eaf7fd;
  border: 1px solid #b8dff0;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.3;
}

.sb-calc-upsell__hint-on {
  display: none;
}

.sb-calc-upsell.is-selected .sb-calc-upsell__hint-off {
  display: none;
}

.sb-calc-upsell.is-selected .sb-calc-upsell__hint-on {
  display: inline;
}

.sb-calc-upsell.is-selected .sb-calc-upsell__select-hint {
  background: var(--sb-primary);
  border-color: var(--sb-primary);
  color: var(--sb-navy);
}

.sb-calc-upsell--selectable:hover .sb-calc-upsell__box {
  border-color: var(--sb-primary);
  background: #fafdff;
}

.sb-calc-upsell.is-selected .sb-calc-upsell__box {
  border-color: var(--sb-primary);
  background: var(--sb-selected-bg);
  box-shadow: 0 0 0 1px var(--sb-primary);
}

.sb-calc-upsell__box img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 4px;
}

.sb-calc-upsell__name {
  display: block;
  margin-bottom: 2px;
  line-height: 1.35;
}

.sb-calc-upsell__price {
  display: block;
}

.sb-calc-results__checkout {
  margin: 12px 0 8px;
}

.sb-calc-results__checkout .sb-calc-btn {
  width: 100%;
  min-height: 44px;
  font-size: 0.92rem;
}

.sb-calc-restart {
  width: 100%;
  margin-top: 10px;
  min-height: 40px;
  font-size: 0.88rem;
}

.sb-calc-fallback .sb-calc-card[disabled] {
  opacity: 0.85;
  cursor: wait;
}

.sb-calc-fallback .sb-calc-loading {
  text-align: center;
  color: var(--sb-muted);
  margin-top: 16px;
  font-size: 0.95rem;
}

/* Prevent theme/Elementor from hiding button labels on hover/focus */
.sb-calculator button:not(:disabled):hover,
.sb-calculator button:not(:disabled):focus-visible {
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.sb-calculator .sb-calc-product--selectable:active:not(:disabled) {
  background: var(--sb-selected-bg) !important;
  color: var(--sb-navy) !important;
}

@media (max-width: 480px) {
  .sb-calculator {
    margin: 12px;
    padding: 20px 16px;
  }

  .page-header .entry-title {
    font-size: 36px;
  }

  .sb-calc-cards {
    grid-template-columns: 1fr;
  }

  .sb-calc-nav {
    flex-direction: column-reverse;
  }

  .sb-calc-btn--ghost,
  .sb-calc-btn--primary {
    width: 100%;
  }
}
