/* Borotoo / Hermes - AI subscription product page v6 */
.single-product {
  background: #f5f7fb;
}

.single-product #siteBody.hms-subscription-page,
.single-product #siteBody {
  background: transparent !important;
  box-shadow: none !important;
}

.hms-sub-product {
  --hms-sub-primary: #2563eb;
  --hms-sub-primary-dark: #1d4ed8;
  --hms-sub-accent: #7c3aed;
  --hms-sub-ink: #101828;
  --hms-sub-muted: #667085;
  --hms-sub-border: #e7edf7;
  --hms-sub-card: #ffffff;
  direction: rtl;
  color: var(--hms-sub-ink);
  padding: 8px 0 32px;
}

.hms-sub-product a {
  text-decoration: none;
}

.hms-sub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .62fr);
  gap: 22px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, .14), transparent 32%),
    radial-gradient(circle at 86% 6%, rgba(37, 99, 235, .16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #eef5ff 100%);
  box-shadow: 0 24px 60px rgba(16, 24, 40, .08);
  overflow: hidden;
}

.hms-sub-hero::after {
  content: '';
  position: absolute;
  inset: auto -80px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  pointer-events: none;
}

.hms-sub-hero__content,
.hms-sub-hero__purchase {
  position: relative;
  z-index: 1;
}

.hms-sub-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.hms-sub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .09);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hms-sub-eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .14);
}

.hms-sub-eyebrow__delivery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #315ee9;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.hms-sub-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -.02em;
}

.hms-sub-lead {
  max-width: 760px;
  margin-top: 16px;
  color: #475467;
  font-size: 16px;
  line-height: 2.1;
}

.hms-sub-lead p {
  margin: 0;
}

.hms-sub-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hms-sub-hero__meta > span,
.hms-sub-hero__meta > a,
.hms-sub-hero__meta > button,
.hms-sub-hero__meta > .hms-sub-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.hms-sub-review-chip svg,
.hms-sub-review-title-icon svg {
  flex: 0 0 auto;
  color: #2563eb;
}

.hms-sub-hero__actions {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hms-sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hms-sub-btn:hover {
  transform: translateY(-1px);
}

.hms-sub-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--hms-sub-primary), var(--hms-sub-accent));
  box-shadow: 0 16px 32px rgba(37, 99, 235, .22);
}

.hms-sub-hero__purchase {
  display: flex;
  align-items: center;
}

.hms-sub-features-wrap {
  margin-top: 18px;
}

.hms-sub-main {
  margin-top: 18px;
}

.hms-sub-main__content {
  display: grid;
  gap: 18px;
}

.hms-sub-card,
.hms-sub-feature,
.hms-sub-buy-card,
.hms-sub-reviews {
  border: 1px solid var(--hms-sub-border);
  border-radius: 24px;
  background: var(--hms-sub-card);
  box-shadow: 0 16px 38px rgba(16, 24, 40, .055);
}

.hms-sub-card {
  padding: 24px;
}

.hms-sub-section-head span,
.hms-sub-review-title-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--hms-sub-primary);
  font-size: 13px;
  font-weight: 900;
}

.hms-sub-section-head h2 {
  margin: 0;
  color: #101828;
  font-size: 23px;
  line-height: 1.65;
  font-weight: 950;
}

.hms-sub-section-head--compact h2 {
  font-size: 20px;
}

.hms-sub-description {
  margin-top: 12px;
  color: #475467;
  font-size: 15px;
  line-height: 2.15;
}

.hms-sub-description :last-child {
  margin-bottom: 0;
}

.hms-sub-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px;
  gap: 24px;
  align-items: center;
}

.hms-sub-product-thumb {
  position: relative;
  width: 218px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}

.hms-sub-product-thumb__orb {
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(37, 99, 235, .05), rgba(124, 58, 237, .38), rgba(34, 197, 94, .22), rgba(37, 99, 235, .05));
  filter: blur(.2px);
  animation: hmsSubOrbit 10s linear infinite;
  z-index: -1;
}

.hms-sub-product-thumb__orb::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  background: #fff;
}

.hms-sub-product-thumb__inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 36px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(226, 232, 240, .92);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
  animation: hmsSubFloat 5.5s ease-in-out infinite;
}

.hms-sub-product-thumb__img,
.hms-sub-product-thumb__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 27px;
}

.hms-sub-product-thumb__placeholder {
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 54px;
  font-weight: 950;
  letter-spacing: -.08em;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

@keyframes hmsSubOrbit {
  to { transform: rotate(360deg); }
}

@keyframes hmsSubFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-1.6deg); }
}

.hms-sub-features {
  display: grid;
  gap: 14px;
}

.hms-sub-features--desktop-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.hms-sub-features--desktop-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hms-sub-features--desktop-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hms-sub-features--desktop-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hms-sub-feature {
  padding: 20px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hms-sub-feature:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .26);
  box-shadow: 0 20px 42px rgba(37, 99, 235, .08);
}

.hms-sub-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #f1f5ff;
  font-size: 22px;
}

.hms-sub-feature h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 950;
}

.hms-sub-feature p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.9;
}

.hms-sub-features--style-compact .hms-sub-feature {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 16px;
}

.hms-sub-features--style-compact .hms-sub-feature__icon {
  grid-row: span 2;
  margin: 0;
}

.hms-sub-features--style-minimal .hms-sub-feature {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}

.hms-sub-steps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hms-sub-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 15px;
  background: #f8fafc;
  color: #475467;
  font-weight: 800;
}

.hms-sub-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: var(--hms-sub-primary);
}

.hms-sub-specs {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.hms-sub-specs div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.hms-sub-specs dt {
  color: #64748b;
  font-weight: 800;
}

.hms-sub-specs dd {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
  text-align: left;
}

.hms-sub-buy-card {
  width: 100%;
  padding: 22px;
  overflow: hidden;
}

.hms-sub-buy-card--desktop {
  box-shadow: 0 22px 48px rgba(37, 99, 235, .11);
}

.hms-sub-mobile-purchase {
  display: none;
}

.hms-sub-buy-card__top {
  padding: 18px;
  margin: -4px -4px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
}

.hms-sub-buy-card__top > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
}

.hms-sub-price,
.hms-sub-price .amount,
.hms-sub-price bdi {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.hms-sub-price del {
  color: rgba(255, 255, 255, .52);
  margin-left: 8px;
}

.hms-sub-price ins {
  text-decoration: none;
}

.hms-sub-buy-card__form .cart,
.hms-subscription-cart {
  margin: 0;
}

.hms-subscription-cart__row,
.hms-sub-buy-card__form .woocommerce-variation-add-to-cart {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.hms-sub-buy-card__form .quantity {
  margin: 0 !important;
}

.hms-sub-buy-card__form .qty {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9e2f1;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  font-weight: 900;
  text-align: center;
}

.hms-sub-buy-card__form .single_add_to_cart_button,
.hms-subscribe-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 16px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--hms-sub-primary), var(--hms-sub-accent)) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.4 !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.hms-sub-buy-card__form .single_add_to_cart_button.disabled,
.hms-sub-buy-card__form .single_add_to_cart_button:disabled {
  opacity: .58 !important;
  cursor: not-allowed;
}

.hms-sub-buy-card__form table.variations {
  width: 100%;
  margin: 0 0 14px;
  border: 0;
}

.hms-sub-buy-card__form table.variations tr,
.hms-sub-buy-card__form table.variations th,
.hms-sub-buy-card__form table.variations td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: right;
}

.hms-sub-buy-card__form table.variations th label {
  display: block;
  margin: 0 0 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.hms-sub-buy-card__form table.variations select {
  width: 100%;
  min-height: 50px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid #d9e2f1;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  font-weight: 800;
}

.hms-sub-buy-card__form .reset_variations {
  display: inline-flex;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.hms-sub-buy-card__form .single_variation_wrap {
  display: block;
}

.hms-sub-buy-card__form .woocommerce-variation-price {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.hms-sub-buy-card__form .woocommerce-variation-availability {
  margin-bottom: 12px;
}

.hms-sub-buy-card__form .stock {
  margin: 0 0 12px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 900;
}

.hms-sub-buy-specs-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hms-sub-buy-specs-card h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.hms-sub-buy-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 10px;
  margin: 0;
}

.hms-sub-buy-specs div {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .75);
}

.hms-sub-buy-specs dt {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.hms-sub-buy-specs dd {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.8;
}

.hms-sub-buy-notes {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #667085;
  font-size: 12px;
  line-height: 1.9;
}

.hms-sub-buy-notes li {
  position: relative;
  padding-right: 18px;
}

.hms-sub-buy-notes li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: #16a34a;
  font-weight: 950;
}

.hms-sub-buy-notes a {
  color: var(--hms-sub-primary);
  font-weight: 900;
}

.hms-sub-reviews {
  margin-top: 24px;
  padding: 24px;
}

.hms-sub-section-head--reviews {
  margin-bottom: 16px;
}

.hms-sub-reviews #podcast-reviews,
.hms-sub-reviews .hms-unified-comments {
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.single-product .related,
.single-product .upsells,
.single-product .product_meta,
.single-product .woocommerce-tabs,
.single-product #course-sessions,
.single-product #hmsInlinePlayer,
.single-product .hms-course-sidepanel,
.single-product .teacher-card,
.single-product .course-buy,
.single-product .course-summary,
.single-product .product_terms {
  display: none !important;
}

@media (max-width: 1024px) {
  .hms-sub-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    padding: 26px;
  }
  .hms-sub-hero__content {
    min-height: 320px;
  }
  .hms-sub-features--tablet-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .hms-sub-features--tablet-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hms-sub-features--tablet-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hms-sub-features--tablet-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hms-sub-hero {
    grid-template-columns: 1fr;
  }
  .hms-sub-hero__content {
    min-height: unset;
  }
  .hms-sub-hero__purchase {
    display: none;
  }
  .hms-sub-hero__actions--mobile {
    display: flex;
  }
  .hms-sub-mobile-purchase {
    display: block;
  }
}

@media (max-width: 768px) {
  .hms-sub-product {
    padding-top: 0;
  }

  .hms-sub-hero {
    padding: 22px;
    border-radius: 22px;
    gap: 18px;
  }

  .hms-sub-intro-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hms-sub-product-thumb {
    width: min(210px, 70vw);
  }

  .hms-sub-features--mobile-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .hms-sub-features--mobile-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hms-sub-card,
  .hms-sub-buy-card,
  .hms-sub-reviews {
    padding: 18px;
    border-radius: 20px;
  }

  .hms-subscription-cart__row,
  .hms-sub-buy-card__form .woocommerce-variation-add-to-cart {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hms-sub-hero__actions,
  .hms-sub-btn {
    width: 100%;
  }

  .hms-sub-hero__meta span,
  .hms-sub-hero__meta a {
    width: 100%;
    justify-content: center;
  }

  .hms-sub-buy-specs {
    grid-template-columns: 1fr;
  }
}


/* Borotoo v6 refinements */
.hms-sub-inline-specs {
  margin-top: 18px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hms-sub-inline-specs__title {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.hms-sub-buy-specs--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hms-sub-buy-specs--inline div {
  background: rgba(255, 255, 255, .56);
  border: 1px solid rgba(226, 232, 240, .72);
  box-shadow: none;
}

.hms-sub-buy-card__form .woocommerce-variation-add-to-cart,
.hms-subscription-cart__row {
  grid-template-columns: 1fr !important;
  gap: 12px;
}

.hms-sub-buy-card__form .quantity {
  width: 100%;
}

.hms-sub-buy-card__form .qty {
  min-height: 50px;
}

.hms-sub-buy-card__form .single_add_to_cart_button,
.hms-subscribe-button {
  min-height: 58px !important;
  width: 100% !important;
  padding: 0 22px !important;
  border-radius: 18px !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

.hms-sub-buy-card__form .single_variation_wrap .woocommerce-variation-add-to-cart {
  margin-top: 12px;
}

.hms-sub-buy-card__form .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button {
  min-height: 58px !important;
}

@media (min-width: 821px) {
  .hms-sub-buy-card--desktop {
    padding: 24px;
  }

  .hms-sub-buy-card--desktop .hms-sub-buy-card__form .single_add_to_cart_button,
  .hms-sub-buy-card--desktop .hms-subscribe-button {
    min-height: 60px !important;
    font-size: 17px !important;
  }
}

@media (max-width: 768px) {
  .hms-sub-buy-specs--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hms-sub-buy-specs--inline {
    grid-template-columns: 1fr;
  }
}

/* Borotoo v9: comparison table + original action chips */
.hms-sub-review-chip--count .hms-count,
.hms-sub-hero__meta .hms-like-btn .hms-count {
  color: inherit;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.hms-sub-hero__meta .hms-like-btn {
  cursor: pointer;
  color: #334155;
  font-family: inherit;
}

.hms-sub-hero__meta .hms-like-btn .hms-ico {
  width: 21px;
  height: 21px;
  min-width: 21px;
  min-height: 21px;
  color: #ef4444;
}

.hms-sub-hero__meta .hms-like-btn .hms-ico path {
  transition: fill .18s ease, stroke .18s ease;
}

.hms-sub-hero__meta .hms-like-btn.is-active {
  color: #e11d48;
  border-color: rgba(225, 29, 72, .22);
  background: rgba(255, 241, 242, .8);
}

.hms-sub-hero__meta .hms-like-btn.is-active .hms-ico path {
  fill: currentColor;
  stroke: currentColor;
}

.hms-sub-hero__meta .hms-like-btn.is-loading {
  pointer-events: none;
  opacity: .68;
}

.hms-sub-rating-chip {
  direction: rtl;
  min-width: 190px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.hms-sub-rating-chip.is-busy {
  opacity: .72;
  pointer-events: none;
}

.hms-sub-rating-chip .hms-pr-starsbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hms-sub-rating-chip .hms-pr-stars {
  display: flex;
  direction: ltr;
  gap: 0;
}

.hms-sub-rating-chip .hms-pr-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 1;
}

.hms-sub-rating-chip .hms-pr-star__base,
.hms-sub-rating-chip .hms-pr-star__fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hms-sub-rating-chip .hms-pr-star__base {
  color: #cbd5e1;
}

.hms-sub-rating-chip .hms-pr-star__fill {
  color: #f4c915;
  overflow: hidden;
  width: 0;
}

.hms-sub-rating-chip .hms-pr-star svg {
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
}

.hms-sub-rating-chip .hms-pr-tooltip {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: #111827;
  color: #fff;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
  z-index: 20;
  pointer-events: none;
}

.hms-sub-rating-chip .hms-pr-star:hover .hms-pr-tooltip,
.hms-sub-rating-chip .hms-pr-star:focus-visible .hms-pr-tooltip {
  opacity: 1;
  visibility: visible;
}

.hms-sub-rating-chip .hms-pr-star:focus-visible {
  outline: none;
}

.hms-sub-rating-chip .hms-pr-ratingtext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
  white-space: nowrap;
}

.hms-sub-rating-chip .hms-pr-ratingtext.is-empty {
  color: #94a3b8;
}

.hms-sub-comparison-section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 24, 40, .055);
  overflow: hidden;
}

.hms-sub-comparison-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.hms-sub-comparison-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  font-weight: 950;
}

.hms-sub-comparison-head p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.9;
}

.hms-sub-comparison-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
}

.hms-sub-comparison-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  table-layout: fixed;
  direction: rtl;
}

.hms-sub-comparison-table th,
.hms-sub-comparison-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #edf1f7;
  vertical-align: middle;
}

.hms-sub-comparison-table thead th {
  text-align: center;
  background: #fff;
}

.hms-sub-comp-feature-col,
.hms-sub-comp-feature {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 230px;
  background: #fff;
  text-align: right !important;
}

.hms-sub-comp-feature-col {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
}

.hms-sub-comp-feature {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.85;
}

.hms-sub-comp-plan {
  min-width: 150px;
}

.hms-sub-comp-plan > span {
  display: block;
  margin-bottom: 14px;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.hms-sub-comp-plan a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff !important;
  background: #0b0b0b;
  font-size: 13px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hms-sub-comp-plan a:hover {
  transform: translateY(-1px);
  background: #111827;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
}

.hms-sub-comp-section-row th {
  position: static;
  padding-top: 30px;
  padding-bottom: 18px;
  border-bottom: 0;
  background: #fff;
  color: #0f172a;
  text-align: right;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.5;
}

.hms-sub-comparison-table td {
  color: #111827;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.85;
}

.hms-sub-comp-value--check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #111827;
  background: #f3f4f6;
  font-size: 17px;
  font-weight: 950;
}

.hms-sub-comp-value--dash,
.hms-sub-comp-value--empty {
  color: #111827;
  font-size: 24px;
  font-weight: 500;
}

@media (max-width: 820px) {
  .hms-sub-comparison-section {
    padding: 18px;
    border-radius: 22px;
  }
  .hms-sub-comparison-table {
    min-width: 720px;
  }
  .hms-sub-comp-feature-col,
  .hms-sub-comp-feature {
    width: 190px;
  }
}

@media (max-width: 480px) {
  .hms-sub-rating-chip {
    width: 100%;
    justify-content: center;
  }
  .hms-sub-hero__meta .hms-like-btn,
  .hms-sub-review-chip--count,
  .hms-sub-stock-chip {
    justify-content: center;
  }
  .hms-sub-comparison-head h2 {
    font-size: 21px;
  }
}

/* v10: bottom full-width interaction row inside the first product box */
.hms-sub-hero__meta--bottom {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .28);
  align-self: end;
  justify-content: flex-start;
  align-items: center;
}

@media (min-width: 821px) {
  .hms-sub-hero__meta--bottom {
    flex-wrap: nowrap;
  }
}

@media (max-width: 820px) {
  .hms-sub-hero__meta--bottom {
    margin-top: 4px;
    padding-top: 16px;
  }
}


/* v12: compact purchase card, matching the previous product-page proportions */
.hms-sub-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .62fr);
}

.hms-sub-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.hms-sub-lead {
  max-width: 760px;
  margin-top: 16px;
  color: #475467;
  font-size: 16px;
  line-height: 2.1;
}

.hms-sub-hero__purchase {
  align-items: center;
}

.hms-sub-buy-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--hms-sub-border);
  background: #fff;
  box-shadow: 0 22px 48px rgba(37, 99, 235, .11);
}

.hms-sub-buy-card__top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  margin: -4px -4px 18px;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  box-shadow: none;
}

.hms-sub-buy-card__top > span {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.45;
  letter-spacing: -.015em;
  text-align: center;
}

.hms-sub-buy-card__form .variations_form,
.hms-sub-buy-card__form .hms-variable-cart {
  margin: 0;
}

.hms-sub-plan-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .78fr);
  gap: 18px;
  direction: rtl;
  align-items: end;
}

.hms-sub-plan-picker__options,
.hms-sub-plan-picker__summary {
  min-width: 0;
}

.hms-sub-plan-picker__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 178px;
}

.hms-sub-buy-card__form table.variations {
  margin: 0;
}

.hms-sub-buy-card__form table.variations tr {
  margin-bottom: 12px;
}

.hms-sub-buy-card__form table.variations tr:last-child {
  margin-bottom: 0;
}

.hms-sub-buy-card__form table.variations th label {
  margin: 0 0 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.6;
}

.hms-sub-buy-card__form table.variations select {
  min-height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d9e2f1;
  border-radius: 16px;
  background-color: #fff;
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hms-sub-buy-card__form table.variations select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, .58);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.hms-sub-buy-card__form .reset_variations {
  display: inline-flex;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.hms-sub-selected-label,
.hms-sub-total-label {
  color: #172554;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.6;
}

.hms-sub-selected-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 8px 0 14px;
  flex-direction: row-reverse;
}

.hms-sub-selected-values {
  color: #3158c9;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.7;
}

.hms-sub-selected-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #fff4df;
  color: #f4a62a;
  font-size: 20px;
  line-height: 1;
}

.hms-sub-selected-price {
  margin-top: 2px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.35;
}

.hms-sub-selected-price .price,
.hms-sub-selected-price .amount,
.hms-sub-selected-price bdi {
  color: #0f172a;
  font-size: inherit;
  font-weight: 950;
}

.hms-sub-selected-price del {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  color: #94a3b8 !important;
  margin-left: 8px;
  font-size: .72em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}

.hms-sub-selected-price del::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 50% !important;
  height: 2px !important;
  background: currentColor !important;
  opacity: .82 !important;
  transform: translateY(-50%) !important;
  border-radius: 999px !important;
}

.hms-sub-selected-price del .woocommerce-Price-amount,
.hms-sub-selected-price del .woocommerce-Price-amount bdi {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.hms-sub-selected-price ins {
  text-decoration: none !important;
}

.hms-sub-plan-picker__summary .single_variation_wrap {
  width: 100%;
  max-width: 360px;
  margin-top: 14px;
}

.hms-sub-plan-picker__summary .woocommerce-variation,
.hms-sub-plan-picker__summary .woocommerce-variation-price,
.hms-sub-plan-picker__summary .woocommerce-variation-description {
  display: none !important;
}

.hms-sub-buy-card__form .woocommerce-variation-add-to-cart,
.hms-subscription-cart__row {
  grid-template-columns: 1fr !important;
  gap: 10px;
}

.hms-sub-buy-card__form .quantity {
  display: none !important;
}

.hms-sub-buy-card__form .single_add_to_cart_button,
.hms-subscribe-button {
  min-height: 52px !important;
  padding: 0 18px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.4 !important;
  background: linear-gradient(135deg, var(--hms-sub-primary), var(--hms-sub-accent)) !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .22) !important;
}

.hms-sub-buy-notes {
  margin: 16px 0 0;
  padding: 0;
  border-top: 0;
  gap: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}

.hms-sub-buy-notes li {
  padding-right: 18px;
}

.hms-sub-buy-notes li::before {
  color: #16a34a;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .hms-sub-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .7fr);
  }
  .hms-sub-plan-picker {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hms-sub-plan-picker__summary {
    min-height: 0;
  }
}

@media (max-width: 1024px) {
  .hms-sub-hero__content {
    min-height: 320px;
  }
}

@media (max-width: 820px) {
  .hms-sub-buy-card {
    padding: 20px;
    border-radius: 24px;
  }
  .hms-sub-buy-card__top {
    min-height: 58px;
    margin-bottom: 16px;
    border-radius: 18px;
  }
  .hms-sub-buy-card__top > span {
    font-size: 17px;
  }
  .hms-sub-buy-card__form table.variations select {
    min-height: 50px;
    font-size: 15px;
    border-radius: 16px;
  }
  .hms-sub-selected-line {
    margin-bottom: 12px;
  }
  .hms-sub-selected-values {
    font-size: 15px;
  }
  .hms-sub-selected-price {
    font-size: 21px;
  }
}

@media (max-width: 480px) {
  .hms-sub-buy-card__top > span {
    font-size: 16px;
  }
  .hms-sub-selected-line {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hms-sub-selected-label,
  .hms-sub-total-label {
    font-size: 14px;
  }
  .hms-sub-buy-notes {
    font-size: 12px;
  }
}


/* Borotoo v13: compact subscription picker + stacked Toman currency. */
.hms-sub-buy-card__form .reset_variations {
  display: none !important;
}
.hms-sub-selected-price .woocommerce-Price-amount bdi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  direction: ltr;
  unicode-bidi: isolate;
}
.hms-sub-selected-price .woocommerce-Price-currencySymbol {
  order: -1;
}
.hms-sub-selected-price .woocommerce-Price-currencySymbol .hms-toman-stack {
  font-size: 10px !important;
}

/* Borotoo v14: requested picker alignment and SVG star sizing. */
.hms-sub-selected-star svg {
  width: 20px;
  height: 20px;
  display: block;
}


/* Borotoo v15: responsive product order - content first, purchase card below on tablet/mobile. */
@media (max-width: 1024px) {
  .hms-sub-hero {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .hms-sub-hero__content {
    order: 1;
    min-height: unset !important;
  }

  .hms-sub-hero__purchase {
    order: 2;
    display: flex !important;
    width: 100%;
    align-items: stretch;
  }

  .hms-sub-hero__purchase .hms-sub-buy-card {
    width: 100%;
  }

  .hms-sub-hero__meta--bottom {
    order: 3;
    width: 100%;
  }

  .hms-sub-mobile-purchase,
  .hms-sub-hero__actions--mobile {
    display: none !important;
  }
}

@media (max-width: 820px) {
  .hms-sub-hero {
    gap: 16px !important;
  }

  .hms-sub-hero__purchase {
    margin-top: 0;
  }
}

/* Borotoo v16: responsive subscription specs/actions and local media icons. */
.hms-sub-hero__specs-slot {
  grid-column: 1 / 2;
  position: relative;
  z-index: 1;
}

.hms-sub-hero__meta--bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
}

.hms-sub-stock-row,
.hms-sub-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hms-sub-stock-row {
  justify-content: flex-start;
}

.hms-sub-actions-row {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hms-sub-actions-row > a,
.hms-sub-actions-row > button,
.hms-sub-actions-row > .hms-sub-rating-chip,
.hms-sub-actions-row > .hms-like-btn {
  margin: 0 !important;
}

.hms-sub-feature__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hms-sub-feature__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--hms-sub-primary);
}

.hms-sub-feature__icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hms-sub-feature__fallback-svg {
  display: block;
  width: 23px;
  height: 23px;
}

.hms-sub-feature h3 {
  margin: 0;
  min-width: 0;
}

.hms-sub-feature p {
  margin-top: 0;
}

.hms-sub-features--style-compact .hms-sub-feature {
  display: block;
}

.hms-sub-features--style-compact .hms-sub-feature__icon {
  grid-row: auto;
  margin: 0;
}

@media (max-width: 1024px) {
  .hms-sub-hero__specs-slot {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
  }

  .hms-sub-hero__meta--bottom {
    order: 4;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .hms-sub-stock-row {
    width: 100%;
    justify-content: center;
  }

  .hms-sub-stock-row .hms-sub-stock-chip {
    width: 100%;
    justify-content: center;
  }

  .hms-sub-actions-row {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    /* overflow-x: auto; */
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .hms-sub-actions-row > a,
  .hms-sub-actions-row > button,
  .hms-sub-actions-row > .hms-sub-rating-chip,
  .hms-sub-actions-row > .hms-like-btn {
    flex: 0 0 auto;
    width: auto !important;
  }

  .hms-sub-actions-row .hms-sub-rating-chip {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .hms-sub-actions-row {
    justify-content: flex-start;
  }

  .hms-sub-actions-row .hms-sub-review-chip--count,
  .hms-sub-actions-row .hms-like-btn,
  .hms-sub-actions-row .hms-sub-rating-chip {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 13px;
  }

  .hms-sub-actions-row .hms-sub-rating-chip .hms-pr-ratingtext {
    display: none;
  }
}

/* Borotoo v17: keep subscription specs in the original desktop position, only move them under the buy box on tablet/mobile. */
.hms-sub-hero__specs-desktop {
  display: block;
}

.hms-sub-hero__specs-mobile {
  display: none;
}

@media (min-width: 1025px) {
  .hms-sub-hero__specs-desktop .hms-sub-inline-specs {
    margin-top: 18px;
  }

  .hms-sub-hero__specs-mobile {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .hms-sub-hero__specs-desktop {
    display: none !important;
  }

  .hms-sub-hero__specs-mobile {
    display: block !important;
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
  }

  .hms-sub-hero__meta--bottom {
    order: 4;
  }
}

/* Borotoo v19: selectable clean hero media beside the product title. */
.hms-sub-hero__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 42px);
  width: 100%;
  direction: rtl;
}

.hms-sub-hero__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.hms-sub-hero-media {
  flex: 0 0 clamp(130px, 18vw, 235px);
  max-width: 34%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 20px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}

.hms-sub-hero-media__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 235px;
  object-fit: contain;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: 0 !important;
}

@media (max-width: 1024px) {
  .hms-sub-hero__brand--has-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(112px, 23vw, 178px);
    grid-template-areas:
      "eyebrow eyebrow"
      "title media"
      "lead lead";
    align-items: center;
    column-gap: clamp(14px, 3vw, 28px);
    row-gap: 12px;
    direction: rtl;
  }

  .hms-sub-hero__brand--has-media .hms-sub-hero__copy {
    display: contents;
  }

  .hms-sub-hero__brand--has-media .hms-sub-eyebrow {
    grid-area: eyebrow;
    justify-self: start;
  }

  .hms-sub-hero__brand--has-media .hms-sub-title {
    grid-area: title;
    align-self: center;
    margin: 0;
  }

  .hms-sub-hero__brand--has-media .hms-sub-lead {
    grid-area: lead;
    margin-top: 2px;
  }

  .hms-sub-hero__brand--has-media .hms-sub-hero-media {
    grid-area: media;
    width: 100%;
    max-width: 100%;
    flex: none;
    margin-inline-start: 0;
    align-self: center;
    justify-self: center;
  }

  .hms-sub-hero-media__img {
    max-height: 178px;
  }
}

@media (max-width: 560px) {
  .hms-sub-hero__brand {
    gap: 10px;
  }

  .hms-sub-hero__brand--has-media {
    grid-template-columns: minmax(0, 1fr) clamp(76px, 25vw, 118px);
  }

  .hms-sub-hero__brand--has-media .hms-sub-hero-media {
    width: 100%;
    max-width: 100%;
    margin-inline-start: 0;
  }

  .hms-sub-hero-media__img {
    max-height: 118px;
  }

  .hms-sub-hero__copy .hms-sub-title {
    font-size: clamp(24px, 7vw, 34px);
  }

  .hms-sub-hero__copy .hms-sub-lead {
    font-size: 14px;
    line-height: 2;
  }
}
