/* RDS CAL Configurator 1.2.1 — consolidated presentation layer */
.rdsprod-product-store {
  --rdsprod-ink: #19365d;
  --rdsprod-heading: #213f68;
  --rdsprod-text: #3e5572;
  --rdsprod-muted: #5a6a7e;
  --rdsprod-blue: #2f6fce;
  --rdsprod-blue-hover: #285fae;
  --rdsprod-blue-soft: #f2f7ff;
  --rdsprod-blue-soft-strong: #eaf2fe;
  --rdsprod-line: #dbe5f0;
  --rdsprod-line-strong: #b9cce3;
  --rdsprod-surface: #ffffff;
  --rdsprod-surface-soft: #f8fafc;
  --rdsprod-canvas: #f6f9fc;
  --rdsprod-danger: #b42318;
  --rdsprod-success: #157253;
  width: 100%;
  padding: 0 0 54px;
  color: var(--rdsprod-text);
  background: #ffffff;
  font-family: Archivo, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rdsprod-product-store,
.rdsprod-product-store *,
.rdsprod-product-store *::before,
.rdsprod-product-store *::after {
  box-sizing: border-box;
}

.rdsprod-product-store button,
.rdsprod-product-store input,
.rdsprod-product-store select,
.rdsprod-product-store a {
  font: inherit;
}

.rdsprod-product-store button {
  margin: 0;
}

.rdsprod-product-store [hidden] {
  display: none;
}

.rdsprod-product-store__wrap {
  width: min(100%, 1600px);
  margin: 30px auto 0;
  padding-inline: 48px;
}

@media (max-width: 992px) {
  .rdsprod-product-store__wrap {
    padding-inline: 20px;
  }

}

.rdsprod-shop-heading {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 48px 0;
}

.rdsprod-shop-heading h1 {
  margin: 0;
  padding: 0;
  color: #12161c;
  font-family: inherit;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  text-transform: none;
}

.rdsprod-shop-heading h1 span {
  color: #1258b8;
}

.rdsprod-anchor {
  display: block;
  height: 0;
  overflow: hidden;
}

.rdsprod-discount {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 0 0 16px;
  padding: 10px 18px;
  color: var(--rdsprod-heading);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d4dfec;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(25, 54, 93, 0.07), 0 1px 3px rgba(25, 54, 93, 0.03);
  font-size: 13px;
  font-weight: 650;
}

.rdsprod-discount__section {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rdsprod-discount__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--rdsprod-blue);
}

.rdsprod-discount__icon svg {
  width: 100%;
  height: 100%;
}

.rdsprod-discount__offer {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.rdsprod-discount__offer strong {
  font-weight: 750;
}

.rdsprod-discount__offer em {
  color: var(--rdsprod-blue);
  font-style: normal;
  font-weight: 800;
}

html body .rdsprod-product-store button.rdsprod-discount__code {
  display: inline-flex;
  align-items: center;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 11px !important;
  color: var(--rdsprod-blue);
  background: var(--rdsprod-blue-soft);
  border: 1px dashed #78a4de;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

html body .rdsprod-product-store button.rdsprod-discount__code:hover {
  background: var(--rdsprod-blue-soft-strong);
  border-color: var(--rdsprod-blue);
}

.rdsprod-discount__copied {
  color: var(--rdsprod-success);
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 760px) {
  .rdsprod-discount {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

}

@media (max-width: 992px) {
  .rdsprod-shop-heading {
    padding: 24px 20px 0;
  }

  .rdsprod-shop-heading h1 {
    font-size: 27px;
    white-space: normal;
  }

}

.rdsprod-product-store__panels {
  width: 100%;
}

.rdsprod-product-panel {
  display: grid;
  grid-template-columns: minmax(292px, 390px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.rdsprod-product-gallery {
  position: static;
  display: grid;
  gap: 14px;
}

.rdsprod-product-gallery__frame,
.rdsprod-calculator,
.rdsprod-purchase-card {
  min-width: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Calculator keeps a hairline boundary since it is a collapsible tool */
.rdsprod-calculator {
  border: 1px solid #e4ebf3;
  border-radius: 12px;
}

.rdsprod-product-gallery__frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0;
}

.rdsprod-product-gallery__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 16px 22px rgba(22, 48, 83, 0.12));
}

.rdsprod-product-gallery__badge {
  display: none;
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 2;
  padding: 7px 11px;
  color: #2b507d;
  background: rgba(248, 251, 255, 0.94);
  border: 1px solid #d4e0ed;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(25, 54, 93, 0.05);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rdsprod-purchase-card {
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.rdsprod-option-group {
  padding-top: 13px;
}

.rdsprod-purchase-card > .rdsprod-option-group--version,
.rdsprod-purchase-card > .rdsprod-option-group:first-child {
  padding-top: 0;
}

.rdsprod-option-group__title {
  margin: 0 0 7px;
  color: var(--rdsprod-heading);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.35;
}

.rdsprod-version-switcher,
.rdsprod-option-group__buttons,
.rdsprod-pack-options {
  display: grid;
  gap: 9px;
}

.rdsprod-version-switcher--card,
.rdsprod-pack-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rdsprod-option-group__buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rdsprod-version-switcher__button,
.rdsprod-cal-type,
.rdsprod-pack-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 66px;
  padding: 12px 15px;
  color: var(--rdsprod-heading);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #d4dfec;
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(25, 54, 93, 0.065), 0 1px 2px rgba(25, 54, 93, 0.03);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.rdsprod-version-switcher__button {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.rdsprod-cal-type {
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  text-align: left;
}

.rdsprod-pack-option {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.rdsprod-version-switcher__button:hover,
.rdsprod-cal-type:hover:not(:disabled),
.rdsprod-pack-option:hover:not(:disabled) {
  transform: translateY(-2px);
  color: var(--rdsprod-heading);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  border-color: #aebfd3;
  box-shadow: 0 12px 26px rgba(25, 54, 93, 0.12), 0 2px 6px rgba(25, 54, 93, 0.04);
}

.rdsprod-version-switcher__button.is-active,
.rdsprod-cal-type.is-selected,
.rdsprod-pack-option.is-selected {
  color: var(--rdsprod-ink);
  background: #e1ecfb;
  border-color: #5f91d4;
  box-shadow: 0 0 0 1px rgba(47, 111, 206, 0.10), 0 12px 26px rgba(47, 111, 206, 0.12);
}

/* Radio indicator on the selector cards, matching the pack card radios */
.rdsprod-version-switcher__button::after,
.rdsprod-cal-type::after,
.rdsprod-pack-option::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 1.5px solid #aebed1;
  border-radius: 50%;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.rdsprod-version-switcher__button.is-active::after,
.rdsprod-cal-type.is-selected::after,
.rdsprod-pack-option.is-selected::after {
  background: radial-gradient(circle, #ffffff 0 3px, var(--rdsprod-blue) 3.5px);
  border-color: var(--rdsprod-blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 206, 0.13);
}

.rdsprod-version-switcher__button span,
.rdsprod-pack-option strong {
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.rdsprod-cal-type strong {
  color: inherit;
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -0.014em;
  line-height: 1.22;
}

.rdsprod-version-switcher__button span {
  font-size: 17px;
  letter-spacing: -0.016em;
}

.rdsprod-version-switcher__button small,
.rdsprod-pack-option small {
  display: block;
  margin-top: 3px;
  color: var(--rdsprod-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.rdsprod-cal-type small {
  display: block;
  margin-top: 4px;
  color: var(--rdsprod-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.38;
}

.rdsprod-product-store button.rdsprod-version-switcher__button:hover > span,
.rdsprod-product-store button.rdsprod-cal-type:hover > strong,
.rdsprod-product-store button.rdsprod-pack-option:hover > strong,
.rdsprod-product-store button.rdsprod-version-switcher__button.is-active > span,
.rdsprod-product-store button.rdsprod-cal-type.is-selected > strong,
.rdsprod-product-store button.rdsprod-pack-option.is-selected > strong {
  color: var(--rdsprod-heading);
}

.rdsprod-product-store button.rdsprod-version-switcher__button:hover > small,
.rdsprod-product-store button.rdsprod-cal-type:hover > small,
.rdsprod-product-store button.rdsprod-version-switcher__button.is-active > small,
.rdsprod-product-store button.rdsprod-cal-type.is-selected > small {
  color: var(--rdsprod-muted);
}

.rdsprod-pack-option small,
.rdsprod-pack-option small .amount,
.rdsprod-pack-option small .woocommerce-Price-currencySymbol {
  color: var(--rdsprod-blue);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.rdsprod-product-store button.rdsprod-pack-option:hover > small,
.rdsprod-product-store button.rdsprod-pack-option:hover > small .amount,
.rdsprod-product-store button.rdsprod-pack-option:hover > small .woocommerce-Price-currencySymbol,
.rdsprod-product-store button.rdsprod-pack-option.is-selected > small,
.rdsprod-product-store button.rdsprod-pack-option.is-selected > small .amount,
.rdsprod-product-store button.rdsprod-pack-option.is-selected > small .woocommerce-Price-currencySymbol {
  color: var(--rdsprod-blue);
}

.rdsprod-pack-option:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.rdsprod-pack-option--custom-carrier,
.rdsprod-custom-carriers {
  display: none;
}

.rdsprod-custom-quantity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 24px;
  align-items: center;
  min-height: 94px;
  padding: 17px 19px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfe 100%);
  border: 1px solid #d4dfec;
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(25, 54, 93, 0.055), 0 1px 2px rgba(25, 54, 93, 0.025);
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.rdsprod-custom-quantity:hover {
  transform: translateY(-1px);
  border-color: #aebfd3;
  box-shadow: 0 10px 24px rgba(25, 54, 93, 0.09), 0 2px 6px rgba(25, 54, 93, 0.035);
}

.rdsprod-custom-quantity.is-selected {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fe 100%);
  border-color: #79a4dc;
  box-shadow: 0 0 0 1px rgba(47, 111, 206, 0.06), 0 10px 24px rgba(47, 111, 206, 0.09);
}

.rdsprod-custom-quantity.has-warning {
  border-color: #e5a39d;
}

.rdsprod-custom-quantity__indicator {
  position: relative;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  background: #ffffff;
  border: 2px solid #8daed8;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(47, 111, 206, 0.06);
}

.rdsprod-custom-quantity.is-selected .rdsprod-custom-quantity__indicator {
  background: var(--rdsprod-blue);
  border-color: var(--rdsprod-blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 206, 0.12);
}

.rdsprod-custom-quantity.is-selected .rdsprod-custom-quantity__indicator::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.rdsprod-custom-quantity__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rdsprod-custom-quantity__copy strong {
  color: var(--rdsprod-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.35;
}

.rdsprod-custom-quantity__copy small {
  color: var(--rdsprod-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.rdsprod-custom-quantity__copy .rdsprod-custom-quantity__range {
  color: #3269b8;
  font-weight: 700;
}

.rdsprod-custom-quantity__controls {
  display: grid;
  grid-template-columns: minmax(150px, 178px) minmax(112px, 122px);
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  width: 100%;
}

.rdsprod-custom-quantity__field {
  display: grid;
  grid-template-columns: minmax(104px, 1fr) auto;
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--rdsprod-line);
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(25, 54, 93, 0.035);
}

.rdsprod-custom-quantity__input {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  color: var(--rdsprod-ink);
  background: #ffffff;
  border: 0;
  border-right: 1px solid #e6ecf3;
  outline: 0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
}

.rdsprod-custom-quantity__input::-webkit-inner-spin-button,
.rdsprod-custom-quantity__input::-webkit-outer-spin-button,
.rdsprod-quantity__input::-webkit-inner-spin-button,
.rdsprod-quantity__input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.rdsprod-custom-quantity__input:focus {
  box-shadow: inset 0 0 0 2px rgba(47, 111, 206, 0.2);
}

.rdsprod-custom-quantity__field-suffix {
  padding: 0 12px;
  color: var(--rdsprod-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.rdsprod-custom-quantity__price {
  display: grid;
  min-width: 108px;
  text-align: right;
}

.rdsprod-custom-quantity__price > span {
  color: #8b98aa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rdsprod-custom-quantity__price strong {
  color: var(--rdsprod-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.rdsprod-custom-quantity__price small {
  color: var(--rdsprod-muted);
  font-size: 13px;
}

.rdsprod-custom-quantity.is-disabled .rdsprod-custom-quantity__controls {
  opacity: 0.46;
}

.rdsprod-custom-quantity.is-disabled .rdsprod-custom-quantity__field {
  background: #fafbfd;
  box-shadow: none;
}

.rdsprod-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.rdsprod-user-cal-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
}

.rdsprod-custom-quantity__warning {
  color: var(--rdsprod-danger);
}

.rdsprod-user-cal-note {
  margin-top: 12px;
  padding: 10px 13px;
  color: #1d3a5f;
  background: #eaf2fd;
  border: 1px solid rgba(47, 111, 206, 0.28);
  border-left: 3px solid var(--rdsprod-blue);
  border-radius: 8px;
}

.rdsprod-purchase-card__selected {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin-top: 14px;
  padding: 11px 14px;
  background: #f7f9fc;
  border: 1px solid #e0e8f1;
  border-radius: 9px;
}

.rdsprod-purchase-card__selected span {
  color: var(--rdsprod-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rdsprod-purchase-card__selected strong {
  color: var(--rdsprod-heading);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.rdsprod-purchase-card__checkout-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px 24px;
  margin-top: 12px;
  padding: 12px 0 11px;
  border-top: 1px solid #d9e3ee;
  border-bottom: 1px solid #d9e3ee;
}

.rdsprod-purchase-card__delivery {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: center;
  align-self: center;
  color: #33475e;
  font-size: 13.5px;
  font-weight: 650;
  /* Wrap instead of overflowing into the Quantity cell when the row
     gets tight (e.g. zoomed or mid-width layouts). */
  min-width: 0;
  white-space: normal;
}

html body .rdsprod-product-store .rdsprod-purchase-card__delivery span {
  color: #33475e;
}

.rdsprod-purchase-card__delivery svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--rdsprod-blue);
}

.rdsprod-purchase-card__checkout-total {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 5px;
}

/* Slim, theme-pinned packs stepper: theme input rules stretch number
 * inputs to large widths, pushing the delivery note on smaller screens. */
html body .rdsprod-product-store .rdsprod-quantity {
  flex: 0 0 auto !important;
  /* Cap the stepper instead of max-content sizing (was ~330px). */
  width: 280px !important;
  max-width: 100% !important;
}

html body .rdsprod-product-store input.rdsprod-quantity__input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

/* The stepper buttons are bare <button>s and were fully exposed to theme
   button styling (press offsets, padding, borders), which rendered the
   minus and plus at different sizes. Pin both identically. */
html body .rdsprod-product-store .rdsprod-quantity__minus,
html body .rdsprod-product-store .rdsprod-quantity__plus {
  box-sizing: border-box !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  background: transparent;
  color: var(--rdsprod-blue);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.rdsprod-purchase-card__checkout-quantity {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.rdsprod-purchase-card__checkout-label {
  margin: 0;
  color: #4b647f;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.rdsprod-purchase-card__checkout-price {
  /* Reserve the column at the widest possible price ($1,199.99) so the
     delivery note and stepper never shift when the price length changes
     (em-dash vs full price under strict check gating). Scales with the
     smaller mobile font automatically. */
  min-width: 5.4em;
  color: #183a63;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.rdsprod-purchase-card__primary-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.rdsprod-secure-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #3f7b69;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.rdsprod-secure-checkout__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.rdsprod-purchase-card__action-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

.rdsprod-quantity {
  display: grid;
  grid-template-columns: 48px minmax(74px, 1fr) 48px;
  min-width: 172px;
  min-height: 46px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  border: 1px solid #bfcfe1;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(25, 54, 93, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.rdsprod-quantity button,
.rdsprod-quantity input {
  min-width: 0;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  color: var(--rdsprod-ink);
  background: transparent;
  border: 0;
}

.rdsprod-quantity button {
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.rdsprod-quantity button:hover {
  color: var(--rdsprod-blue);
  background: #eef5fe;
  transform: translateY(-1px);
}

html body .rdsprod-product-store input.rdsprod-quantity__input {
  width: 100%;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  color: var(--rdsprod-ink);
  background: transparent !important;
  background-image: none !important;
  border-top: 0 !important;
  border-right: 1px solid #dbe5ef !important;
  border-bottom: 0 !important;
  border-left: 1px solid #dbe5ef !important;
  border-radius: 0 !important;
  outline: 0;
  box-shadow: none !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  appearance: textfield;
}

.rdsprod-purchase-card__cta-group {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(270px, 300px);
  gap: 12px;
  min-width: 0;
}

.rdsprod-add-to-cart,
.rdsprod-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.rdsprod-add-to-cart {
  gap: 9px;
  color: #ffffff;
  background: linear-gradient(180deg, #4383df 0%, #2f6fce 58%, #2a65bc 100%);
  border: 1px solid #2b66bd;
  box-shadow: 0 10px 22px rgba(47, 111, 206, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.rdsprod-add-to-cart:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #ffffff;
  background: linear-gradient(180deg, #326fc7 0%, var(--rdsprod-blue-hover) 100%);
  border-color: var(--rdsprod-blue-hover);
  box-shadow: 0 10px 22px rgba(47, 111, 206, 0.22);
}

.rdsprod-product-store button.rdsprod-add-to-cart:hover:not(:disabled) .rdsprod-add-to-cart__label,
.rdsprod-product-store button.rdsprod-add-to-cart:hover:not(:disabled) .rdsprod-add-to-cart__price,
.rdsprod-product-store button.rdsprod-add-to-cart:hover:not(:disabled) .rdsprod-add-to-cart__icon {
  color: #ffffff;
}

.rdsprod-add-to-cart:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.rdsprod-add-to-cart.is-success {
  background: var(--rdsprod-success);
  border-color: var(--rdsprod-success);
}

.rdsprod-add-to-cart__icon,
.rdsprod-add-to-cart__spinner {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.rdsprod-add-to-cart__spinner {
  animation: rdsprod-spin 700ms linear infinite;
}

.rdsprod-add-to-cart__separator {
  opacity: 0.58;
}

.rdsprod-secondary-cta {
  position: relative;
  color: #285b9d;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #bfcfe1;
  box-shadow: 0 7px 16px rgba(25, 54, 93, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rdsprod-secondary-cta::after {
  content: "→";
  margin-left: 8px;
  color: #6d8eb8;
  font-size: 15px;
  font-weight: 500;
  transition: transform 150ms ease;
}

.rdsprod-secondary-cta:hover {
  transform: translateY(-1px);
  color: #244f87;
  background: #f9fbfe;
  border-color: #acc1db;
  box-shadow: 0 7px 16px rgba(25, 54, 93, 0.07);
  text-decoration: none;
}

.rdsprod-secondary-cta:hover::after {
  transform: translateX(2px);
}

.rdsprod-cart-notice {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
}

.rdsprod-cart-notice.is-success {
  color: #0d6848;
  background: #eefaf5;
  border: 1px solid #b9e2d3;
}

.rdsprod-cart-notice.is-error {
  color: #9d281f;
  background: #fff4f2;
  border: 1px solid #efc2bd;
}

.rdsprod-calculator {
  margin: 14px 0 2px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-color: #e4ebf3;
  box-shadow: none;
}

.rdsprod-calculator__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.92) 100%);
}

.rdsprod-calculator__head > .rdsprod-calculator__title {
  color: var(--rdsprod-ink);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.rdsprod-calculator__description {
  grid-column: 1 / -1;
  color: var(--rdsprod-muted);
  font-size: 13px;
  line-height: 1.5;
}

.rdsprod-calculator__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
  padding: 4px 12px;
  color: #2e63a7;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #c8d6e7;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(25, 54, 93, 0.055);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

html body .rdsprod-product-store button.rdsprod-calculator__toggle,
html body .rdsprod-product-store button.rdsprod-calculator__toggle .rdsprod-calculator__toggle-label,
html body .rdsprod-product-store button.rdsprod-calculator__toggle svg {
  color: #2e63a7;
}

html body .rdsprod-product-store button.rdsprod-calculator__toggle:hover,
html body .rdsprod-product-store button.rdsprod-calculator__toggle:focus,
html body .rdsprod-product-store button.rdsprod-calculator__toggle:focus-visible,
html body .rdsprod-product-store button.rdsprod-calculator__toggle:active {
  color: #244f87;
  background: #eef5fe;
  border-color: #9eb7d4;
  box-shadow: 0 7px 16px rgba(25, 54, 93, 0.09);
}

html body .rdsprod-product-store button.rdsprod-calculator__toggle:hover .rdsprod-calculator__toggle-label,
html body .rdsprod-product-store button.rdsprod-calculator__toggle:hover svg,
html body .rdsprod-product-store button.rdsprod-calculator__toggle:focus .rdsprod-calculator__toggle-label,
html body .rdsprod-product-store button.rdsprod-calculator__toggle:focus svg,
html body .rdsprod-product-store button.rdsprod-calculator__toggle:focus-visible .rdsprod-calculator__toggle-label,
html body .rdsprod-product-store button.rdsprod-calculator__toggle:focus-visible svg,
html body .rdsprod-product-store button.rdsprod-calculator__toggle:active .rdsprod-calculator__toggle-label,
html body .rdsprod-product-store button.rdsprod-calculator__toggle:active svg {
  color: #244f87;
}

.rdsprod-calculator__toggle-label,
.rdsprod-calculator__toggle svg {
  color: inherit;
  opacity: 1;
}

.rdsprod-calculator__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 150ms ease;
}

.rdsprod-calculator.is-open .rdsprod-calculator__toggle svg {
  transform: rotate(180deg);
}

.rdsprod-calculator__stage {
  display: none;
  padding: 13px 16px 15px;
  background: rgba(248, 251, 255, 0.58);
  border-top: 1px solid #dce6f0;
}

.rdsprod-calculator.is-open .rdsprod-calculator__stage {
  display: block;
}

.rdsprod-calculator__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.rdsprod-calculator__form-view,
.rdsprod-calculator__result-view {
  display: grid;
  align-content: start;
}

.rdsprod-calculator__field {
  display: grid;
  gap: 5px;
}

.rdsprod-calculator__field span {
  display: block;
  min-width: 0;
  color: var(--rdsprod-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.rdsprod-calculator__field input {
  width: 100%;
  height: 37px;
  padding: 0 12px;
  color: var(--rdsprod-ink);
  background: #ffffff;
  border: 1px solid var(--rdsprod-line);
  border-radius: 7px;
  outline: 0;
}

.rdsprod-calculator__field input:focus {
  border-color: #7ea8df;
  box-shadow: 0 0 0 3px rgba(47, 111, 206, 0.12);
}

.rdsprod-calculator__button,
.rdsprod-calculator__recalculate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 224px;
  min-height: 39px;
  margin: 11px 0 0 !important;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(180deg, #3d7dd8 0%, var(--rdsprod-blue) 100%);
  border: 1px solid #2b66bd;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(47, 111, 206, 0.18);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.rdsprod-product-store button.rdsprod-calculator__button:hover,
.rdsprod-product-store button.rdsprod-calculator__recalculate:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: linear-gradient(180deg, #356fc5 0%, var(--rdsprod-blue-hover) 100%);
  box-shadow: 0 10px 22px rgba(47, 111, 206, 0.22);
}

.rdsprod-calculator__placeholder,
.rdsprod-calculator__error,
.rdsprod-calculator__reason {
  margin: 7px 0 0;
  color: var(--rdsprod-muted);
  font-size: 14px;
  line-height: 1.5;
}

.rdsprod-calculator__error {
  color: var(--rdsprod-danger);
}

.rdsprod-calculator__badge {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 5px 8px;
  color: #2e63a7;
  background: var(--rdsprod-blue-soft);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rdsprod-calculator__result-view > .rdsprod-calculator__title {
  display: block;
  color: var(--rdsprod-ink);
  font-size: 16px;
  font-weight: 700;
}

.rdsprod-calculator__rows {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.rdsprod-calculator__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 8px 12px;
  background: var(--rdsprod-surface-soft);
  border: 1px solid var(--rdsprod-line);
  border-radius: 7px;
}

.rdsprod-calculator__row span,
.rdsprod-calculator__row strong {
  color: var(--rdsprod-heading);
  font-size: 14px;
  font-weight: 700;
}

.rdsprod-calculator__row small {
  grid-column: 1 / -1;
  color: var(--rdsprod-muted);
  font-size: 13px;
}

.rdsprod-shop-error {
  padding: 14px 16px;
  color: #9d281f;
  background: #fff4f2;
  border: 1px solid #efc2bd;
  border-radius: 8px;
}

@keyframes rdsprod-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1280px) {
  .rdsprod-product-panel {
    grid-template-columns: minmax(244px, 300px) minmax(0, 1fr);
  }

  .rdsprod-product-gallery__image {
    max-height: 296px;
  }

}

@media (max-width: 1180px) {
  .rdsprod-product-panel {
    grid-template-columns: minmax(222px, 264px) minmax(0, 1fr);
    gap: 26px;
  }

  .rdsprod-product-gallery__image {
    max-height: 260px;
  }

}

@media (max-width: 1060px) {
  .rdsprod-product-panel {
    grid-template-columns: minmax(206px, 238px) minmax(0, 1fr);
  }

  .rdsprod-product-gallery__image {
    max-height: 300px;
  }

}

@media (max-width: 980px) {
  .rdsprod-product-panel {
    grid-template-columns: 1fr;
  }

  .rdsprod-product-gallery {
    position: static;
    /* Single shrinkable column: the calculator left the gallery in
       1.2.5/3.1.5, and the old two-column minimums (260px + 300px)
       forced ~574px of width on phones. */
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .rdsprod-product-gallery__frame {
    min-height: 312px;
  }

  .rdsprod-purchase-card__action-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .rdsprod-secondary-cta {
    width: 100%;
    max-width: none;
  }

}

@media (max-width: 760px) {  .rdsprod-purchase-card {
    padding: 21px;
  }

  .rdsprod-version-switcher--card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rdsprod-purchase-card__checkout-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .rdsprod-purchase-card__delivery {
    justify-self: start;
    align-items: start;
  }

  .rdsprod-purchase-card__checkout-quantity {
    justify-content: flex-start;
  }

  .rdsprod-add-to-cart,
  .rdsprod-secondary-cta {
    width: 100%;
    max-width: none;
    min-width: 0;
    white-space: normal;
  }

}

@media (max-width: 560px) {
  .rdsprod-purchase-card {
    padding: 17px;
  }

  .rdsprod-option-group__buttons,
  .rdsprod-calculator__grid {
    grid-template-columns: 1fr;
  }

  .rdsprod-calculator__head {
    grid-template-columns: 1fr;
  }

  .rdsprod-calculator__toggle,
  .rdsprod-calculator__button,
  .rdsprod-calculator__recalculate {
    width: 100%;
    min-width: 0;
  }

  .rdsprod-purchase-card__checkout-quantity {
    justify-content: space-between;
    width: 100%;
  }

  /* Must out-rank the desktop stepper pin (width auto / no-shrink
     !important) so the mobile cap actually applies. */
  html body .rdsprod-product-store .rdsprod-purchase-card__checkout-quantity .rdsprod-quantity {
    flex: 1 1 auto !important;
    width: min(100%, 198px) !important;
    min-width: 0 !important;
  }

  .rdsprod-purchase-card__checkout-price {
    font-size: 22px;
  }

  .rdsprod-add-to-cart,
  .rdsprod-secondary-cta,
  .rdsprod-add-to-cart__label,
  .rdsprod-add-to-cart__price {
    font-size: 14.5px;
  }

  .rdsprod-purchase-card__selected {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rdsprod-purchase-card__selected strong {
    text-align: left;
  }

}

@media (max-width: 390px) {
  .rdsprod-version-switcher--card {
    grid-template-columns: 1fr;
  }

  .rdsprod-purchase-card__checkout-quantity {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (prefers-reduced-motion: reduce) {
  .rdsprod-product-store *,
  .rdsprod-product-store *::before,
  .rdsprod-product-store *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

}

/* =========================================================
   Pack cards: WooCommerce variations rendered as selector
   cards, matching the Windows Server year cards.
   ========================================================= */
.rdsprod-pack-grid {
  display: grid;
  /* 5 cards across on desktop once the 1 CAL variation exists; wraps on
     narrower screens. */
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
}

/* The per-type filter sets [hidden]; the flex display on the shared card
   rule would otherwise out-rank the UA hidden rule. */
.rdsprod-pack-option[hidden] {
  display: none !important;
}

/* Theme pinning for the pack cards, matching the other selector cards. */
html body .rdsprod-product-store .rdsprod-pack-option {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  transform: none !important;
}
html body .rdsprod-product-store .rdsprod-pack-option:hover:not(:disabled) {
  transform: translateY(-2px) !important;
}

/* =========================================================
   Calculator row: sits below the configurator column as a
   compact full-width bar; the description shows once opened.
   ========================================================= */
.rdsprod-calculator:not(.is-open) .rdsprod-calculator__description {
  display: none;
}

.rdsprod-calculator:not(.is-open) .rdsprod-calculator__head {
  gap: 8px 12px;
  padding: 9px 12px;
}

.rdsprod-calculator:not(.is-open) .rdsprod-calculator__head > .rdsprod-calculator__title {
  font-size: 14px;
}

