/**
 * Package Compare card — shop card design: full-width "Choose your package" card
 * + comparison popup with a Sensitive/Non-Sensitive segmented toggle.
 *
 * SHOP-ONLY, scoped under .sbr-pc (card) and .sbr-pc-popup (modal). Same visual
 * language as the other shop designs (Open Sans UI + Montserrat display, tinted
 * stage). Used by PROFESSIONAL TEETH WHITENING (T3/T6/T9 systems × sensitive /
 * non-sensitive). The popup tiers compare the systems; one global toggle flips
 * every tier's visible price + Add to Cart / Buy Now between the two gel types.
 */

.sbr-pc, .sbr-pc *,
.sbr-pc-popup, .sbr-pc-popup * { box-sizing: border-box; }

.sbr-pc {
	--pc-ui: 'Open Sans', sans-serif;
	--pc-disp: 'Montserrat', sans-serif;
	--pc-ink: #1f2524;
	--pc-ink2: #3f4d4c;
	--pc-slate: #6b7877;
	--pc-faint: #9aa7a6;
	--pc-line: #e9eceb;
	--pc-pink: #fa319e;
	--pc-from: #e6f4f6;
	--pc-to: #cfe7ec;
	--pc-accent: #0e9aa6;

	display: block; font-family: var(--pc-ui); color: var(--pc-ink); text-align: left;
	max-width: 1180px; margin-left: auto; margin-right: auto;
}
.sbr-pc--lasso { --pc-from:#e6f4f6; --pc-to:#cfe7ec; --pc-accent:#0e9aa6; }
.sbr-pc-col .vc_column-inner, .sbr-pc-col .wpb_wrapper { padding: 0; margin: 0; }
/* The full-width sale-page column paints a teal #e8f8f8 surface on .vc_column-inner
   (sale-products-styles-top.css:64) whose SQUARE corners poke out behind this card's
   rounded corners. Strip it (matching the enamel/subscription cards) so the rounded
   white card sits cleanly. !important + matched specificity beats the source rule. */
#newsalePage #product-list.productLandingPageContainer .sbr-pc-col.medium-12.thb-dark-column.small-12.landing-product > .vc_column-inner,
.sbr-pc-col .vc_column-inner { background: transparent !important; background-color: transparent !important; }
.sbr-pc a { text-decoration: none; }
.sbr-pc img, .sbr-pc-popup img { display: block; max-width: 100%; }
.sbr-pc-stars { display: inline-flex; gap: 1.5px; color: #ffc53d; line-height: 0; }

/* ====================== full-width card ====================== */
.sbr-pc-card {
	display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	background: #fff; overflow: hidden; border: 1px solid var(--pc-line); border-radius: 26px;
	box-shadow: 0 14px 40px -18px rgba(20, 40, 40, .28), 0 4px 12px -6px rgba(20, 40, 40, .12); transition: box-shadow .3s cubic-bezier(.16, 1, .3, 1);
}
.sbr-pc-card:hover { box-shadow: 0 30px 60px -28px rgba(20, 40, 40, .36); }

.sbr-pc-stage { position: relative; min-width: 0; background: var(--shop-card-fill, linear-gradient(150deg, var(--pc-from), var(--pc-to))); overflow: hidden; min-height: 380px; display: flex; align-items: center; justify-content: center; padding: 44px; }
.sbr-pc-stage::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: none; top: 40%; left: 46%; transform: translate(-50%, -50%); }
.sbr-pc-stage__img { position: relative; width: auto; max-width: 100%; max-height: 320px; object-fit: contain; }
.sbr-pc-stage__seal { position: absolute; top: 18px; left: 18px; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(20, 40, 40, .18); line-height: 1.05; }
.sbr-pc-stage__seal b { font-family: var(--pc-disp); font-weight: 800; font-size: 16px; color: var(--pc-accent); }
.sbr-pc-stage__seal span { font-weight: 700; font-size: 8px; letter-spacing: .4px; text-transform: uppercase; color: var(--pc-slate); }

.sbr-pc-body { min-width: 0; padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.sbr-pc-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sbr-pc-rating { font-weight: 700; font-size: 12.5px; color: var(--pc-ink2); }
.sbr-pc-bull { width: 4px; height: 4px; border-radius: 999px; background: var(--pc-faint); }
.sbr-pc-social { font-weight: 600; font-size: 12.5px; color: var(--pc-slate); }
.sbr-pc-eyebrow { font-weight: 800; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pc-accent); margin-bottom: 8px; }
.sbr-pc-title { font-family: var(--pc-disp); font-weight: 800; font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -1.2px; margin: 0 0 6px; }
.sbr-pc-title a { color: var(--pc-ink); }
.sbr-pc-sub { font-weight: 700; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--pc-slate); margin-bottom: 16px; }
.sbr-pc-bullets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.sbr-pc-bullet { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: var(--pc-ink2); }
.sbr-pc-bullet svg { color: var(--pc-accent); flex: 0 0 auto; }

.sbr-pc-buyrow { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.sbr-pc-from { display: flex; align-items: baseline; gap: 8px; }
.sbr-pc-from__lbl { font-weight: 700; font-size: 12px; letter-spacing: .3px; text-transform: uppercase; color: var(--pc-faint); }
.sbr-pc-from__price { font-family: var(--pc-disp); font-weight: 800; font-size: 40px; color: var(--pc-ink); letter-spacing: -1.4px; }
.sbr-pc-from__price sup { font-size: 21px; vertical-align: super; }
.sbr-pc-choose { flex: 1 1 240px; min-width: 220px; border: 0; cursor: pointer; border-radius: 14px; padding: 18px 24px; background: var(--shop-action, #1cb9bd); transition: filter .22s ease; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sbr-pc-choose:hover { filter: brightness(.9); }
.sbr-pc-choose__lbl { font-weight: 800; font-size: 16px; color: #fff; letter-spacing: .2px; }
.sbr-pc-choose svg { stroke: #fff; }

.sbr-pc-trust { display: flex; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.sbr-pc-trust__i { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 11.5px; color: var(--pc-slate); }
.sbr-pc-trust__i svg { color: var(--pc-accent); }

/* ====================== popup ====================== */
body.sbr-pc-lock { overflow: hidden; }
/* Header-clearance fix: the popup lives inside #main-content — a flex child
   with z-index:30 that forms a stacking context — so its own z-index:100000
   can't rise above the fixed site header (z-index:1030) and the panel renders
   behind it (seen on shorter / mobile viewports). While the popup is open,
   lift the content layer above the header so the modal paints over it. */
body.sbr-pc-lock #main-content { position: relative; z-index: 100000; }
/* padding-top clears the 96px fixed site header (#sbr-header): the modal is
   z-trapped in a lower stacking context, so without this the panel opens behind
   the header. Mobile (≤820px) resets the padding below — #sbr-header is hidden. */
.sbr-pc-popup { position: fixed; inset: 0; z-index: 100000; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 116px 24px 44px; font-family: 'Open Sans', sans-serif; color: #1f2524; -webkit-overflow-scrolling: touch; }
.sbr-pc-popup.is-open { display: flex; }
.sbr-pc-popup__overlay { position: fixed; inset: 0; background: rgba(20, 30, 30, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sbr-pc-popup__panel { position: relative; width: 100%; max-width: 1080px; margin: auto; background: linear-gradient(180deg, #f6f8f7, #eef2f1); border-radius: 26px; padding: 40px 40px 34px; box-shadow: 0 40px 100px -30px rgba(20, 30, 30, .55); }
.sbr-pc-popup__close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 999px; border: 2px solid #fa319e; background: #fff; cursor: pointer; color: #1f2524; display: flex; align-items: center; justify-content: center; z-index: 2; padding: 0; }
.sbr-pc-popup__close:hover { background: #fff0f7; }
.sbr-pc-popup__head { text-align: center; max-width: 720px; margin: 0 auto 22px; }
.sbr-pc-popup__title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 36px; color: #1f2524; margin: 0 0 6px; letter-spacing: -1px; text-transform: uppercase; line-height: 1.02; }
.sbr-pc-popup__sub { display: inline-block; position: relative; font-weight: 800; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--pc-accent, #0e9aa6); padding: 0 2px 8px; }
.sbr-pc-popup__sub::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 999px; background: var(--pc-accent, #0e9aa6); }
.sbr-pc-popup__desc { font-weight: 500; font-size: 15px; line-height: 1.55; color: #6b7877; margin: 14px auto 0; max-width: 620px; }

/* segmented Sensitive / Non-Sensitive toggle */
.sbr-pc-seg { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 26px; flex-wrap: wrap; }
.sbr-pc-seg__lbl { font-weight: 700; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #6b7877; }
.sbr-pc-seg__opts { display: inline-flex; background: #fff; border: 1px solid #e2e7e6; border-radius: 14px; padding: 4px; gap: 4px; box-shadow: 0 2px 8px rgba(20, 40, 40, .06); }
.sbr-pc-seg__opt { border: 0; cursor: pointer; background: transparent; border-radius: 10px; padding: 9px 16px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 13.5px; color: #3f4d4c; transition: background .2s ease, color .2s ease; }
.sbr-pc-seg__opt small { font-weight: 600; font-size: 10px; color: #9aa7a6; margin-top: 2px; }
.sbr-pc-seg__opt.is-on { background: var(--shop-action, #0e9aa6); color: #fff; }
.sbr-pc-seg__opt.is-on small { color: rgba(255, 255, 255, .82); }

/* tiers grid */
.sbr-pc-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.sbr-pc-popup__dots, .sbr-pc-popup__swipe { display: none; }

.sbr-pc-tier { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; border: 0; box-shadow: 0 2px 10px rgba(20, 40, 40, .05); transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s cubic-bezier(.16, 1, .3, 1); }
.sbr-pc-tier:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(20, 40, 40, .34); }
.sbr-pc-tier.is-best { box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--shop-action, #0e9aa6) 60%, transparent); }

.sbr-pc-tier__stage { position: relative; background: var(--shop-card-fill, linear-gradient(150deg, var(--pc-from, #e6f4f6), var(--pc-to, #cfe7ec))); min-height: 232px; display: flex; align-items: center; justify-content: center; padding: 38px 16px 16px; overflow: hidden; }
.sbr-pc-tier__stage::before { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: none; top: 8%; left: 50%; transform: translateX(-50%); }
.sbr-pc-tier__stage img { position: relative; width: auto; max-width: 94%; max-height: 196px; object-fit: contain; }
.sbr-pc-tier__badge { position: absolute; top: 14px; left: 14px; z-index: 4; font-weight: 800; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #fff; background: #002244; border-radius: 7px; padding: 6px 10px; box-shadow: 0 4px 12px rgba(20, 40, 40, .16); }
.sbr-pc-tier__best { position: absolute; top: 14px; right: 14px; z-index: 4; font-weight: 800; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; color: #fff; background: var(--pc-accent, #0e9aa6); border-radius: 999px; padding: 6px 11px; box-shadow: 0 6px 16px rgba(20, 40, 40, .2); }

.sbr-pc-tier__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.sbr-pc-tier__rating { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-weight: 700; font-size: 12px; color: #3f4d4c; }
.sbr-pc-tier__title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.12; letter-spacing: -.3px; color: #1f2524; margin: 0 0 8px; }
.sbr-pc-tier__blurb { font-weight: 500; font-size: 12.5px; line-height: 1.45; color: #6b7877; margin: 0 0 18px; }
.sbr-pc-tier__pricewrap { margin-top: auto; }
.sbr-pc-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sbr-pc-price__now { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 28px; color: #1f2524; letter-spacing: -1px; }
.sbr-pc-price__now sup { font-size: 15px; vertical-align: super; }
.sbr-pc-price__was { font-weight: 600; font-size: 13.5px; color: #9aa7a6; text-decoration: line-through; }
.sbr-pc-price__off { font-weight: 800; font-size: 11.5px; color: var(--shop-action, var(--pc-pink)); }

.sbr-pc-tier__cta { display: flex; flex-direction: column; gap: 10px; }
/* Add to Cart + Buy Now sit inside .sbr-pc-buy; give it the same column gap the
   night-guard popup uses (.sbr-ng-buy) so the two buttons aren't flush. */
.sbr-pc-buy { display: flex; flex-direction: column; gap: 10px; }
.sbr-pc-add { width: 100%; border: 0; cursor: pointer; border-radius: 12px; padding: 13px; background: var(--shop-action, #1cb9bd); transition: filter .22s ease; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.sbr-pc-add:hover, .sbr-pc-add:focus { filter: brightness(.9); }
.sbr-pc-add svg { flex: 0 0 auto; }
.sbr-pc-add__lbl { font-weight: 800; font-size: 14.5px; color: #fff; letter-spacing: .2px; }
/* Buy Now label is dark #2d2e2f on the amber fill (white-on-amber was near-unreadable) — same treatment as the night-guard popup. */
.sbr-pc-buynow { display: flex; align-items: center; justify-content: center; border-radius: 12px; padding: 11px; border: 0; background: var(--shop-card-accent, #f0c23a); color: #2d2e2f; font-weight: 700; font-size: 13.5px; transition: filter .2s ease; }
.sbr-pc-buynow:hover { filter: brightness(.96); }

/* ====================== responsive ====================== */
@media (max-width: 880px) {
	.sbr-pc-card { grid-template-columns: 1fr; border-radius: 18px; }
	.sbr-pc-stage { min-height: 240px; padding: 28px; }
	.sbr-pc-stage__img { max-height: 220px; }
	.sbr-pc-body { padding: 24px 20px 26px; }
	.sbr-pc-title { font-size: 27px; }
	/* Reset flex-wrap when flipping to column — otherwise wrap turns the column
	   into side-by-side columns (price | button), overflowing the card. */
	.sbr-pc-buyrow { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
	.sbr-pc-choose { flex: 1 1 auto; width: 100%; min-width: 0; }
	.sbr-pc-trust { justify-content: center; }
}

/* popup → mobile: FULL-SCREEN carousel modal.
   Edge-to-edge (no margin / radius / dark dim): the overlay becomes the panel's
   own base color (#eef2f1 = the panel gradient's bottom stop) so the area below a
   short panel is seamless, and the panel drops its cap/margin/radius. shop-popup-fit.js
   still scales the panel down if its content is taller than the viewport (no scroll). */
@media (max-width: 820px) {
	/* No scrolling inside the popup: the fit script zooms the panel to the
	   viewport, so the root's overflow-y:auto only enabled pointless scroll/bounce. */
	.sbr-pc-popup { padding: 0; align-items: flex-start; overflow: hidden; overscroll-behavior: contain; }
	.sbr-pc-popup__overlay { background: #eef2f1; backdrop-filter: none; -webkit-backdrop-filter: none; }
	/* min-height fills the viewport so a short panel leaves no seam below; the
	   desktop drop shadow would otherwise paint a dark band onto the overlay there. */
	.sbr-pc-popup__panel { max-width: none; width: 100%; border-radius: 0; padding: 48px 0 22px; margin: 0; min-height: 100vh; min-height: 100dvh; min-height: 100%; box-shadow: none; }
	.sbr-pc-popup__close { top: calc(env(safe-area-inset-top, 0px) + 22px); right: 16px; width: 38px; height: 38px; }
	.sbr-pc-popup__head { padding: 0 18px; margin-bottom: 18px; }
	.sbr-pc-popup__title { font-size: 25px; }
	/* "Gel formula" label stacked ABOVE the Sensitive/Non-Sensitive tabs, centered. */
	.sbr-pc-seg { flex-direction: column; gap: 8px; padding: 0 18px; margin-bottom: 20px; }
	.sbr-pc-tiers { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 7% 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.sbr-pc-tiers::-webkit-scrollbar { display: none; }
	.sbr-pc-tiers > .sbr-pc-tier { flex: 0 0 86%; scroll-snap-align: center; transform: scale(.94); opacity: .58; transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .3s ease; }
	.sbr-pc-tiers > .sbr-pc-tier.is-current { transform: scale(1); opacity: 1; }
	.sbr-pc-tier:hover { transform: scale(.94); box-shadow: 0 2px 10px rgba(20, 40, 40, .05); }
	.sbr-pc-tiers > .sbr-pc-tier.is-current:hover { transform: scale(1); }
	.sbr-pc-popup__dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
	.sbr-pc-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; cursor: pointer; padding: 0; background: #cfd9d7; transition: all .25s ease; }
	.sbr-pc-dot.is-on { width: 24px; background: var(--pc-accent, #0e9aa6); }
	.sbr-pc-popup__swipe { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; font-weight: 700; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: #6b7877; }
	.sbr-pc-popup__swipe svg { color: var(--pc-accent, #0e9aa6); opacity: .55; }
}
@media (max-width: 480px) {
	.sbr-pc-from__price { font-size: 32px; }
}

/* The tier Add to Cart + Buy Now keep the storefront cart classes (.btn
   add_to_cart_button composit_*) for byte-identical cart parity, which pulls the
   amber #f0c23a button look. Re-assert the design look (class + !important). */
.sbr-pc .sbr-pc-add {
	background: var(--shop-action, #1cb9bd) !important; background-image: none !important;
	border: 0 !important; box-shadow: none !important; color: #fff !important;
	width: 100% !important; max-width: none !important; min-width: 0 !important; min-height: 0 !important;
	margin: 0 !important; padding: 13px !important; border-radius: 12px !important; text-transform: none !important; letter-spacing: .2px !important;
}
.sbr-pc .sbr-pc-add:hover { background: var(--shop-action, #1cb9bd) !important; color: #fff !important; filter: brightness(.9); }
.sbr-pc .sbr-pc-add__lbl { color: #fff !important; }
.sbr-pc .sbr-pc-buynow {
	background: var(--shop-card-accent, #f0c23a) !important; background-image: none !important; color: #2d2e2f !important;
	border: 0 !important; box-shadow: none !important;
	max-width: none !important; min-width: 0 !important; min-height: 0 !important; width: 100% !important;
	margin: 0 !important; padding: 11px !important; border-radius: 12px !important; text-transform: none !important; font-size: 13.5px !important;
}
.sbr-pc .sbr-pc-buynow:hover { background: var(--shop-card-accent, #f0c23a) !important; border-color: var(--shop-card-accent, #f0c23a) !important; color: #2d2e2f !important; filter: brightness(.96); }
