/*! WeSmile Care Theme CSS — Complete Design System & Utility Suite
   Compiled for WeSmile.vn (Homepage & All Subpages) without build step.
   ===================================================================== */

:root {
  --color-brand-cyan: #00A3E0;
  --color-brand-cyan-hover: #008bbf;
  --color-brand-cyan-light: #E8F7FC;
  --color-brand-cyan-glow: rgba(0, 163, 224, 0.16);
  --color-brand-navy: #091E3A;
  --color-brand-navy-muted: #142C4F;
  --color-brand-slate: #475569;
  --color-brand-porcelain: #F8FAFC;
  --color-brand-surface: #F1F5F9;
  --color-border-subtle: rgba(9, 30, 58, 0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-feature-settings: "cv02", "cv03", "cv04", "cv11"; -webkit-text-size-adjust: 100%; }
body { color: var(--color-brand-navy); background-color: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; line-height: 1.5; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
input, select, textarea { font: inherit; }

/* ----- Colors (brand & semantic) ----- */
.text-brand-navy { color: var(--color-brand-navy); }
.text-brand-cyan { color: var(--color-brand-cyan); }
.text-brand-slate { color: var(--color-brand-slate); }
.text-brand-navy\/90 { color: rgba(9, 30, 58, 0.9); }
.text-brand-navy\/80 { color: rgba(9, 30, 58, 0.8); }
.text-brand-navy\/75 { color: rgba(9, 30, 58, 0.75); }
.text-brand-navy\/60 { color: rgba(9, 30, 58, 0.6); }
.text-brand-navy\/40 { color: rgba(9, 30, 58, 0.4); }
.text-brand-navy\/10 { color: rgba(9, 30, 58, 0.1); }
.text-brand-navy\/5 { color: rgba(9, 30, 58, 0.05); }
.text-brand-slate\/80 { color: rgba(71, 85, 105, 0.8); }
.text-brand-slate\/60 { color: rgba(71, 85, 105, 0.6); }
.text-brand-slate\/40 { color: rgba(71, 85, 105, 0.4); }
.text-brand-slate\/30 { color: rgba(71, 85, 105, 0.3); }
.text-white { color: #fff; }
.wb-layout a.text-white { color: #fff; }
.wb-layout a.text-brand-navy { color: var(--color-brand-navy); }
.wb-layout a.text-brand-cyan { color: var(--color-brand-cyan); }
.wb-layout a.text-brand-slate { color: var(--color-brand-slate); }
.wb-layout a.hover\:text-brand-cyan:hover { color: var(--color-brand-cyan); }
.wb-layout a.hover\:text-white:hover { color: #fff; }
.wb-layout a.hover\:text-brand-navy:hover { color: var(--color-brand-navy); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/75 { color: rgba(255, 255, 255, 0.75); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }
.text-black\/15 { color: rgba(9, 30, 58, 0.15); }
.text-amber-400 { color: #fbbf24; }
.text-amber-500 { color: #f59e0b; }
.text-amber-700 { color: #b45309; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-900 { color: #064e3b; }
.text-rose-500 { color: #f43f5e; }
.text-rose-600 { color: #e11d48; }
.text-rose-700 { color: #be123c; }
.text-purple-700 { color: #7e22ce; }
.text-gray-300 { color: #d1d5db; }
.text-cyan-100 { color: #cffafe; }
.text-cyan-900 { color: #164e63; }
.text-transparent { color: transparent; }

.bg-transparent { background-color: transparent; }
.bg-brand-navy { background-color: var(--color-brand-navy); }
.bg-brand-navyMuted { background-color: var(--color-brand-navy-muted); }
.bg-brand-cyan { background-color: var(--color-brand-cyan); }
.bg-brand-cyanHover { background-color: var(--color-brand-cyan-hover); }
.bg-brand-cyanLight { background-color: var(--color-brand-cyan-light); }
.bg-brand-cyanLight\/60 { background-color: rgba(232, 247, 252, 0.6); }
.bg-brand-cyanLight\/40 { background-color: rgba(232, 247, 252, 0.4); }
.bg-brand-porcelain { background-color: var(--color-brand-porcelain); }
.bg-brand-porcelain\/80 { background-color: rgba(248, 250, 252, 0.8); }
.bg-brand-porcelain\/60 { background-color: rgba(248, 250, 252, 0.6); }
.bg-brand-surface { background-color: var(--color-brand-surface); }
.bg-white { background-color: #fff; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-white\/85 { background-color: rgba(255, 255, 255, 0.85); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/40 { background-color: rgba(255, 255, 255, 0.4); }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-black\/40 { background-color: rgba(9, 30, 58, 0.45); }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-50\/90 { background-color: rgba(236, 253, 245, 0.9); }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-500 { background-color: #10b981; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-400 { background-color: #fbbf24; }
.bg-rose-50 { background-color: #fff1f2; }
.bg-rose-50\/50 { background-color: rgba(255, 241, 242, 0.5); }
.bg-rose-100 { background-color: #ffe4e6; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-purple-600 { background-color: #9333ea; }
.bg-brand-cyan\/20 { background-color: rgba(0, 163, 224, 0.2); }
.bg-brand-cyan\/10 { background-color: rgba(0, 163, 224, 0.1); }

/* ----- Hover & Group-Hover States ----- */
.hover\:bg-brand-navy:hover { background-color: var(--color-brand-navy); }
.hover\:bg-brand-navyMuted:hover { background-color: var(--color-brand-navy-muted); }
.hover\:bg-brand-cyan:hover { background-color: var(--color-brand-cyan); }
.hover\:bg-brand-cyanHover:hover { background-color: var(--color-brand-cyan-hover); }
.hover\:bg-brand-cyanLight:hover { background-color: var(--color-brand-cyan-light); }
.hover\:bg-brand-porcelain:hover { background-color: var(--color-brand-porcelain); }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:text-brand-cyan:hover { color: var(--color-brand-cyan); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-brand-navy:hover { color: var(--color-brand-navy); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:border-brand-cyan:hover { border-color: var(--color-brand-cyan); }
.hover\:border-brand-cyan\/50:hover { border-color: rgba(0, 163, 224, 0.5); }
.hover\:border-brand-cyan\/40:hover { border-color: rgba(0, 163, 224, 0.4); }
.hover\:border-brand-navy:hover { border-color: var(--color-brand-navy); }
.hover\:border-black\/20:hover { border-color: rgba(0, 0, 0, 0.2); }
.hover\:shadow-brand-navy\/10:hover { box-shadow: 0 4px 16px rgba(9, 30, 58, 0.1); }
.hover\:shadow-brand-navy\/20:hover { box-shadow: 0 8px 24px rgba(9, 30, 58, 0.2); }
.hover\:shadow-brand-cyan\/5:hover { box-shadow: 0 12px 32px rgba(0, 163, 224, 0.08); }
.hover\:shadow-brand-cyan\/20:hover { box-shadow: 0 12px 28px rgba(0, 163, 224, 0.22); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(9, 30, 58, 0.08), 0 10px 10px -5px rgba(9, 30, 58, 0.03); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(9, 30, 58, 0.08), 0 4px 6px -2px rgba(9, 30, 58, 0.04); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(9, 30, 58, 0.08), 0 2px 4px -1px rgba(9, 30, 58, 0.04); }
.hover\:shadow-sm:hover { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.hover\:grayscale-0:hover { filter: grayscale(0); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-2px); }
.hover\:-translate-y-1:hover { transform: translateY(-4px); }

.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-\[1\.02\] { transform: scale(1.02); }
.group:hover .group-hover\:text-brand-cyan { color: var(--color-brand-cyan); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(4px); }

::selection { background-color: var(--color-brand-cyan-light); color: var(--color-brand-navy); }

/* ----- Layout & Sizing ----- */
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }
.max-w-none { max-width: none; }
.max-w-\[360px\] { max-width: 360px; }
.max-w-\[380px\] { max-width: 380px; }
.max-w-\[420px\] { max-width: 420px; }
.max-h-\[340px\] { max-height: 340px; }
.max-h-\[380px\] { max-height: 380px; }
.max-h-\[440px\] { max-height: 440px; }
.max-h-72 { max-height: 18rem; }
.max-h-80 { max-height: 20rem; }
.max-h-96 { max-height: 24rem; }
.min-h-\[420px\] { min-height: 420px; }
.min-h-\[88vh\] { min-height: 88vh; }
.min-h-\[80vh\] { min-height: 80vh; }
.min-h-\[72vh\] { min-height: 72vh; }
.min-h-\[60vh\] { min-height: 60vh; }
.min-w-0 { min-width: 0; }
.min-w-\[200px\] { min-width: 200px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1\.5 { width: 0.375rem; }
.w-2 { width: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-40 { width: 10rem; }
.w-44 { width: 11rem; }
.w-56 { width: 14rem; }
.w-72 { width: 18rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.w-\[340px\] { width: 340px; }
.w-\[440px\] { width: 440px; }

.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-36 { height: 9rem; }
.h-40 { height: 10rem; }
.h-44 { height: 11rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-\[54px\] { height: 54px; }
.h-\[340px\] { height: 340px; }
.h-\[440px\] { height: 440px; }
.h-auto { height: auto; }
.h-full { height: 100%; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }
.self-start { align-self: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.cursor-pointer { cursor: pointer; }

/* ----- Positioning ----- */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-5 { top: 1.25rem; }
.top-6 { top: 1.5rem; }
.top-20 { top: 5rem; }
.top-24 { top: 6rem; }
.top-28 { top: 7rem; }
.top-full { top: 100%; }
.bottom-0 { bottom: 0; }
.bottom-5 { bottom: 1.25rem; }
.left-0 { left: 0; }
.left-5 { left: 1.25rem; }
.right-0 { right: 0; }
.right-1\.5 { right: 0.375rem; }
.right-2 { right: 0.5rem; }
.right-5 { right: 1.25rem; }
.top-1\.5 { top: 0.375rem; }
.bottom-1\.5 { bottom: 0.375rem; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.bottom-4 { bottom: 1rem; }
.left-4 { left: 1rem; }
.-right-20 { right: -5rem; }
.-right-24 { right: -6rem; }
.-left-24 { left: -6rem; }
.-bottom-20 { bottom: -5rem; }
.-top-2\.5 { top: -0.625rem; }
.-top-3 { top: -0.75rem; }
.-top-24 { top: -6rem; }
.-right-2 { right: -0.5rem; }
.-bottom-4 { bottom: -1rem; }
.-left-3 { left: -0.75rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.z-\[70\] { z-index: 70; }
.z-\[80\] { z-index: 80; }
.z-\[90\] { z-index: 90; }

/* ----- Grids & Spans ----- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }
.col-span-2 { grid-column: span 2 / span 2; }

/* ----- Gaps & Space Between ----- */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-9 { gap: 2.25rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-y-2 { row-gap: 0.5rem; }
.gap-y-3 { row-gap: 0.75rem; }
.gap-y-4 { row-gap: 1rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-x-8 { column-gap: 2rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-3\.5 > * + * { margin-top: 0.875rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ----- Spacing (Padding & Margin) ----- */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-14 { padding-top: 3.5rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-24 { padding-bottom: 6rem; }
.pl-8 { padding-left: 2rem; }
.pr-32 { padding-right: 8rem; }

.m-0 { margin: 0; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-9 { margin-bottom: 2.25rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-5 { margin-left: 1.25rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.-ml-4 { margin-left: -1rem; }

/* ----- Borders & Radius ----- */
.border { border: 1px solid rgba(9, 30, 58, 0.08); }
.border-0 { border: 0; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-t { border-top: 1px solid rgba(9, 30, 58, 0.08); }
.border-b { border-bottom: 1px solid rgba(9, 30, 58, 0.08); }
.border-y { border-top: 1px solid rgba(9, 30, 58, 0.08); border-bottom: 1px solid rgba(9, 30, 58, 0.08); }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-dashed { border-style: dashed; }
.border-transparent { border-color: transparent; }
.border-black\/\[0\.04\] { border-color: rgba(9, 30, 58, 0.04); }
.border-black\/\[0\.05\] { border-color: rgba(9, 30, 58, 0.05); }
.border-black\/\[0\.06\] { border-color: rgba(9, 30, 58, 0.06); }
.border-black\/\[0\.07\] { border-color: rgba(9, 30, 58, 0.07); }
.border-black\/\[0\.08\] { border-color: rgba(9, 30, 58, 0.08); }
.border-black\/\[0\.09\] { border-color: rgba(9, 30, 58, 0.09); }
.border-black\/\[0\.1\], .border-black\/10 { border-color: rgba(9, 30, 58, 0.1); }
.border-black\/\[0\.12\] { border-color: rgba(9, 30, 58, 0.12); }
.border-black\/15 { border-color: rgba(9, 30, 58, 0.15); }
.border-black\/20 { border-color: rgba(9, 30, 58, 0.2); }
.border-brand-cyan { border-color: var(--color-brand-cyan); }
.border-brand-cyan\/20 { border-color: rgba(0, 163, 224, 0.2); }
.border-brand-cyan\/25 { border-color: rgba(0, 163, 224, 0.25); }
.border-brand-cyan\/30 { border-color: rgba(0, 163, 224, 0.3); }
.border-brand-cyan\/40 { border-color: rgba(0, 163, 224, 0.4); }
.border-brand-navy { border-color: var(--color-brand-navy); }
.border-brand-navy\/30 { border-color: rgba(9, 30, 58, 0.3); }
.border-slate-400 { border-color: #94a3b8; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-amber-400 { border-color: #fbbf24; }
.border-rose-100 { border-color: #ffe4e6; }
.border-rose-200 { border-color: #fecdd3; }
.border-white\/80 { border-color: rgba(255, 255, 255, 0.8); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-\[2rem\] { border-radius: 2rem; }
.rounded-r-2xl { border-top-right-radius: 1rem; border-bottom-right-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ----- Typography & Text Utilities ----- */
.font-sans { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; }
.font-mono { font-family: 'Space Grotesk', 'Courier New', monospace; }
.text-\[9px\] { font-size: 9px; line-height: 1.2; }
.text-\[10px\] { font-size: 10px; line-height: 1.2; }
.text-\[10\.5px\] { font-size: 10.5px; line-height: 1.25; }
.text-\[11px\] { font-size: 11px; line-height: 1.3; }
.text-\[11\.5px\] { font-size: 11.5px; line-height: 1.35; }
.text-\[12px\] { font-size: 12px; line-height: 1.4; }
.text-\[13px\] { font-size: 13px; line-height: 1.4; }
.text-\[80px\] { font-size: 80px; line-height: 1; }
.text-\[140px\] { font-size: 140px; line-height: 1; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.35rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-relaxed { line-height: 1.65; }
.leading-snug { line-height: 1.35; }
.leading-tight { line-height: 1.25; }
.leading-\[1\.08\] { line-height: 1.08; }
.leading-none { line-height: 1; }
.list-none { list-style-type: none; }
.list-decimal { list-style-type: decimal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.underline { text-decoration: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
.line-through { text-decoration: line-through; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }

/* ----- Effects, Shadows & Gradients ----- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(9, 30, 58, 0.04); }
.shadow { box-shadow: 0 2px 6px -1px rgba(9, 30, 58, 0.07), 0 1px 3px -1px rgba(9, 30, 58, 0.04); }
.shadow-md { box-shadow: 0 6px 16px -2px rgba(9, 30, 58, 0.07), 0 2px 6px -1px rgba(9, 30, 58, 0.04); }
.shadow-lg { box-shadow: 0 12px 24px -4px rgba(9, 30, 58, 0.08), 0 4px 8px -2px rgba(9, 30, 58, 0.04); }
.shadow-xl { box-shadow: 0 20px 32px -6px rgba(9, 30, 58, 0.1), 0 8px 14px -4px rgba(9, 30, 58, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(9, 30, 58, 0.2); }
.shadow-brand-navy\/5 { box-shadow: 0 6px 24px rgba(9, 30, 58, 0.05); }
.shadow-brand-navy\/10 { box-shadow: 0 8px 28px rgba(9, 30, 58, 0.1); }
.shadow-brand-cyan\/10 { box-shadow: 0 8px 28px rgba(0, 163, 224, 0.12); }
.drop-shadow-md { filter: drop-shadow(0 6px 12px rgba(9, 30, 58, 0.1)); }
.grayscale { filter: grayscale(100%); }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, rgba(232, 247, 252, 0.8) 0%, #fff 50%, var(--color-brand-porcelain) 100%); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--color-brand-cyan) 0%, var(--color-brand-navy) 100%); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--color-brand-navy) 0%, var(--color-brand-navy-muted) 100%); }

.blur-2xl { filter: blur(40px); }
.blur-3xl { filter: blur(64px); }
.pill-blur, .backdrop-blur-md { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.transition-all { transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-transform { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-shadow { transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.transform { transform: translateZ(0); }

/* ----- Focus Utilities ----- */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.22); }
.focus\:ring-brand-cyan:focus { border-color: var(--color-brand-cyan); }
.focus\:border-transparent:focus { border-color: var(--color-brand-cyan); }
.focus\:bg-white:focus { background-color: #fff; }

/* ----- Object Fit & Aspect Ratio ----- */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

/* ----- Animations ----- */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.hero-glow {
  background:
    radial-gradient(circle at 75% 35%, rgba(0, 163, 224, 0.15) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 20% 70%, rgba(232, 247, 252, 0.9) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.animate-float { animation: subtleFloat 6s ease-in-out infinite; }
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

/* ----- Responsive Breakpoints ----- */
.ml-auto { margin-left: auto; }
.ml-6 { margin-left: 1.5rem; }
.ml-8 { margin-left: 2rem; }
.pl-2 { padding-left: 0.5rem; }
.gap-7 { gap: 1.75rem; }
.text-\[13\.5px\] { font-size: 13.5px; line-height: 1.4; }
.border-l { border-left: 1px solid rgba(9, 30, 58, 0.08); }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.bg-rose-500 { background-color: #f43f5e; }
.bg-rose-500\/10 { background-color: rgba(244, 63, 94, 0.1); }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-brand-porcelain\/70 { background-color: rgba(248, 250, 252, 0.7); }
.bg-brand-porcelain\/50 { background-color: rgba(248, 250, 252, 0.5); }
.bg-brand-porcelain\/40 { background-color: rgba(248, 250, 252, 0.4); }
.divide-y > * + * { border-top: 1px solid rgba(9, 30, 58, 0.06); }
.divide-black\/\[0\.06\] > * + * { border-color: rgba(9, 30, 58, 0.06); }
.hover\:bg-rose-500:hover { background-color: #f43f5e; }
.hover\:text-rose-700:hover { color: #be123c; }
.hover\:border-brand-cyan\/45:hover { border-color: rgba(0, 163, 224, 0.45); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(9, 30, 58, 0.2); }

@media (min-width: 640px) {
  .sm\:inline { display: inline !important; }
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:flex { display: flex !important; }
  .sm\:block { display: block !important; }
  .sm\:hidden { display: none !important; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:col-span-3 { grid-column: span 3 / span 3; }
  .sm\:col-span-5 { grid-column: span 5 / span 5; }
  .sm\:col-span-7 { grid-column: span 7 / span 7; }
  .sm\:justify-end { justify-content: flex-end; }
  .sm\:h-10 { height: 2.5rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:items-end { align-items: flex-end; }
  .sm\:w-auto { width: auto; }
  .sm\:w-\[440px\] { width: 440px; }
  .sm\:h-\[440px\] { height: 440px; }
  .sm\:max-w-md { max-width: 28rem; }
  .sm\:left-6 { left: 1.5rem; }
  .sm\:right-auto { right: auto; }
  .sm\:bottom-6 { bottom: 1.5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:p-12 { padding: 3rem; }
  .sm\:p-14 { padding: 3.5rem; }
  .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.35rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.08; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1.05; }
  .sm\:text-\[120px\] { font-size: 120px; line-height: 1; }
  .sm\:text-\[180px\] { font-size: 180px; line-height: 1; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:inline-flex { display: inline-flex !important; }
  .md\:inline { display: inline !important; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
  .md\:divide-y-0 > * + * { border-top: 0; }
  .md\:divide-x > * + * { border-left: 1px solid rgba(9, 30, 58, 0.06); }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:justify-end { justify-content: flex-end; }
  .md\:text-left { text-align: left; }
  .md\:pt-0 { padding-top: 0; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:inline-flex { display: inline-flex !important; }
  .lg\:block { display: block !important; }
  .lg\:hidden { display: none !important; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:flex-col { flex-direction: column; }
  .lg\:items-end { align-items: flex-end; }
  .lg\:self-auto { align-self: auto; }
  .lg\:border-t-0 { border-top: 0; }
  .lg\:border-l { border-left: 1px solid rgba(255, 255, 255, 0.1); }
  .lg\:sticky { position: sticky; }
  .lg\:top-28 { top: 7rem; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
  .lg\:col-span-12 { grid-column: span 12 / span 12; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-10 { gap: 2.5rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .lg\:text-\[64px\] { font-size: 64px; line-height: 1.06; }
  .lg\:text-\[68px\] { font-size: 68px; line-height: 1.05; }
}

/* ====================================================
   Performance: Off-Screen Deferred Rendering
   ==================================================== */
.wesmile-defer-section {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 650px;
}

/* ====================================================
   Custom Interactive UI Components
   ==================================================== */

/* FAQ & Clinical Details Accordion (<details> / <summary>) */
.wesmile-accordion details {
  border-bottom: 1px solid rgba(9, 30, 58, 0.08);
  transition: background-color 0.2s;
}
.wesmile-accordion details:first-child {
  border-top: 1px solid rgba(9, 30, 58, 0.08);
}
.wesmile-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 700;
  color: var(--color-brand-navy);
  font-size: 0.95rem;
  user-select: none;
}
.wesmile-accordion summary::-webkit-details-marker { display: none; }
.wesmile-accordion summary:hover { color: var(--color-brand-cyan); }
.wesmile-accordion .accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--color-brand-porcelain);
  border: 1px solid rgba(9, 30, 58, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.wesmile-accordion details[open] .accordion-icon {
  transform: rotate(45deg);
  background: var(--color-brand-cyan);
  color: #fff;
  border-color: var(--color-brand-cyan);
}
.wesmile-accordion .accordion-body {
  padding-bottom: 1.25rem;
  color: var(--color-brand-slate);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Purchase Mode Toggle (Single Order vs Subscribe & Save) */
.wesmile-plan-btn,
.wesmile-plan-option {
  position: relative;
  transition: all 0.2s ease;
}
.wesmile-plan-btn.is-selected,
.wesmile-plan-option.is-selected {
  background-color: var(--color-brand-navy);
  color: #fff;
  border-color: var(--color-brand-navy);
  box-shadow: 0 4px 12px rgba(9, 30, 58, 0.12);
}
.wesmile-plan-btn:not(.is-selected) {
  background-color: #fff;
  color: var(--color-brand-navy);
  border-color: rgba(9, 30, 58, 0.12);
}
.wesmile-plan-btn:not(.is-selected):hover {
  border-color: var(--color-brand-cyan);
  background-color: var(--color-brand-porcelain);
}

/* Tooth Shade Progression Swatches */
.shade-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}
.shade-tooth {
  width: 100%;
  height: 44px;
  border-radius: 0.75rem 0.75rem 1.25rem 1.25rem;
  border: 1px solid rgba(9, 30, 58, 0.1);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(9, 30, 58, 0.04);
  transition: transform 0.2s ease;
}
.shade-swatch:hover .shade-tooth {
  transform: translateY(-3px);
}

/* Wishlist Heart Button */
.wesmile-wishlist-btn {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(9, 30, 58, 0.08);
  color: var(--color-brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.wesmile-wishlist-btn:hover {
  border-color: #f43f5e;
  color: #f43f5e;
  transform: scale(1.06);
}
.wesmile-wishlist-btn.is-active {
  color: #f43f5e;
  background: #fff1f2;
  border-color: #fecdd3;
}

/* Mini-Cart Slide-Over Drawer */
.wesmile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 30, 58, 0.45);
  backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.wesmile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.wesmile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  z-index: 90;
  box-shadow: -16px 0 40px rgba(9, 30, 58, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.wesmile-drawer-panel.is-open {
  transform: translateX(0);
}

/* ====================================================
   Prose for Content & Legal Pages
   ==================================================== */
.prose { color: var(--color-brand-slate); line-height: 1.75; font-size: 0.95rem; }
.prose p { margin-bottom: 1.15rem; }
.prose h2, .prose h3, .prose h4 { color: var(--color-brand-navy); font-weight: 800; letter-spacing: -0.02em; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.875rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(9, 30, 58, 0.06); }
.prose h3 { font-size: 1.25rem; margin-top: 1.75rem; margin-bottom: 0.625rem; }
.prose a { color: var(--color-brand-cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-brand-navy); }
.prose ul { margin-left: 1.25rem; margin-bottom: 1.25rem; list-style: disc; }
.prose ol { margin-left: 1.25rem; margin-bottom: 1.25rem; list-style: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--color-brand-navy); font-weight: 700; }
.prose code { font-family: 'Space Grotesk', monospace; font-size: 0.85em; background: var(--color-brand-porcelain); padding: 0.2rem 0.45rem; border-radius: 0.375rem; color: var(--color-brand-navy); }

/* ====================================================
   WordPress Core Alignment & Accessibility Classes
   ==================================================== */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.75rem; color: var(--color-brand-slate); text-align: center; }
.screen-reader-text { position: absolute; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ====================================================
   Modern Typography Balancing & Legibility (Vietnamese)
   ==================================================== */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
p, blockquote, li, .pretty-text {
  text-wrap: pretty;
}
.leading-\[1\.12\] { line-height: 1.12; }
.text-6xl { font-size: 3.5rem; line-height: 1.08; }
@media (min-width: 640px) {
  .sm\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .sm\:text-6xl { font-size: 3.5rem; line-height: 1.08; }
}

/* ====================================================
   Floating Hotline (Phone), Zalo QR & Back-to-Top Dock
   ==================================================== */
.wesmile-floating-dock {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: bottom 0.25s ease;
}
.wesmile-floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  background: var(--color-brand-navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(9, 30, 58, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.2s ease;
  cursor: pointer;
}
.wesmile-floating-btn:hover {
  background: var(--color-brand-cyan);
  transform: translateY(-2px);
}
.wesmile-scroll-top-btn {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-brand-navy);
  border: 1px solid rgba(9, 30, 58, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(9, 30, 58, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}
.wesmile-scroll-top-btn:hover {
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-cyan);
  transform: translateY(-2px);
}
body.has-sticky-atc .wesmile-floating-dock {
  bottom: 98px;
}

/* Floating Action Buttons: Double-Circle Navy Badge (Zalo & Phone) */
.wesmile-contact-fab {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 9999px;
  background: rgba(11, 43, 89, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(8, 43, 89, 0.18);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease, box-shadow 0.22s ease;
}
.wesmile-contact-fab:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(11, 43, 89, 0.26);
  box-shadow: 0 12px 28px rgba(8, 43, 89, 0.28);
}
.wesmile-contact-fab__core {
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  background: #082B59;
  color: #DCE8F6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}
.wesmile-contact-fab:hover .wesmile-contact-fab__core {
  background: #0B3770;
  color: #ffffff;
}
.wesmile-contact-fab::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #082B59;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(8, 43, 89, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.wesmile-contact-fab:hover::before,
.wesmile-contact-fab:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.wesmile-contact-fab-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.wesmile-contact-mobile-toggle {
  display: none;
}

@media (max-width: 767px) {
  .wesmile-floating-dock {
    right: 12px;
    bottom: 18px;
    gap: 8px;
    align-items: flex-end;
  }
  body.has-sticky-atc .wesmile-floating-dock {
    bottom: 84px;
  }
  .wesmile-scroll-top-btn {
    width: 34px;
    height: 34px;
    border-width: 1px;
    border-color: rgba(8, 43, 89, 0.25);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 12px rgba(8, 43, 89, 0.1);
  }
  .wesmile-scroll-top-btn svg {
    width: 15px;
    height: 15px;
  }
  .wesmile-contact-fab-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transform-origin: bottom right;
    transition:
      display 0.22s,
      opacity 0.22s ease-out,
      translate 0.22s ease-out,
      scale 0.22s ease-out;
    transition-behavior: allow-discrete;
  }
  .wesmile-floating-dock:not(.is-mobile-open) .wesmile-contact-fab-list,
  .wesmile-contact-fab-list:where([hidden], [data-closing]) {
    opacity: 0;
    translate: 0 10px;
    scale: 0.82;
    pointer-events: none;
  }
  .wesmile-floating-dock:not(.is-mobile-open):not([data-closing]) .wesmile-contact-fab-list,
  .wesmile-contact-fab-list[hidden] {
    display: none;
  }
  .wesmile-contact-fab {
    width: 48px;
    height: 48px;
    padding: 5px;
    box-shadow: 0 6px 16px rgba(8, 43, 89, 0.2);
  }
  .wesmile-contact-fab__core {
    width: 38px;
    height: 38px;
  }
  .wesmile-contact-fab__core svg {
    width: 20px;
    height: 20px;
  }
  .wesmile-floating-dock.is-mobile-open .wesmile-contact-fab::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    font-size: 11px;
    padding: 4px 10px;
    right: calc(100% + 8px);
  }
  .wesmile-contact-mobile-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background: rgba(11, 43, 89, 0.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(8, 43, 89, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
  }
  .wesmile-contact-mobile-toggle__core {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: #082B59;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16);
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .wesmile-floating-dock.is-mobile-open .wesmile-contact-mobile-toggle__core {
    background: #00A3E0;
  }
  .wesmile-contact-mobile-toggle__icon-close {
    display: none;
  }
  .wesmile-floating-dock.is-mobile-open .wesmile-contact-mobile-toggle__icon-open {
    display: none;
  }
  .wesmile-floating-dock.is-mobile-open .wesmile-contact-mobile-toggle__icon-close {
    display: block;
  }
  .wesmile-contact-mobile-toggle__dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background: #00A3E0;
    border: 1.5px solid #ffffff;
  }
  .wesmile-floating-dock.is-mobile-open .wesmile-contact-mobile-toggle__dot {
    display: none;
  }
}

@starting-style {
  .wesmile-floating-dock.is-mobile-open .wesmile-contact-fab-list {
    opacity: 0;
    translate: 0 10px;
    scale: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wesmile-contact-fab-list,
  .wesmile-contact-fab-list:where([hidden], [data-closing]) {
    translate: none;
    scale: none;
    transition-duration: 0.1s;
  }
  @starting-style {
    .wesmile-floating-dock.is-mobile-open .wesmile-contact-fab-list {
      translate: none;
      scale: none;
    }
  }
}

/* Native Modal Dialogs for Hotline & Zalo QR */
dialog.wesmile-contact-dialog {
  padding: 0;
  border: none;
  border-radius: 24px;
  background: #ffffff;
  color: #091E3A;
  max-width: 410px;
  width: calc(100% - 32px);
  box-shadow: 0 25px 60px -12px rgba(9, 30, 58, 0.35);
  overflow: hidden;
  margin: auto;
}
dialog.wesmile-contact-dialog::backdrop {
  background-color: rgba(9, 30, 58, 0.52);
  backdrop-filter: blur(3px);
}
.wesmile-contact-dialog__card {
  display: flex;
  flex-direction: column;
}
.wesmile-contact-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  color: #ffffff;
}
.wesmile-contact-dialog__header--phone {
  background: linear-gradient(135deg, #091E3A 0%, #0f355c 100%);
}
.wesmile-contact-dialog__header--zalo {
  background: linear-gradient(135deg, #0068FF 0%, #0047B3 100%);
}
.wesmile-contact-dialog__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wesmile-contact-dialog__badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 13px;
}
.wesmile-contact-dialog__badge--phone {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.wesmile-contact-dialog__badge--zalo {
  background: #ffffff;
  color: #0068FF;
}
.wesmile-contact-dialog__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}
.wesmile-contact-dialog__subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
.wesmile-contact-dialog__close {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
}
.wesmile-contact-dialog__close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.wesmile-contact-dialog__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 74vh;
  overflow-y: auto;
}
.wesmile-contact-item {
  background: #F6F8FB;
  border: 1px solid rgba(9, 30, 58, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wesmile-contact-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wesmile-contact-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #10b981;
}
.wesmile-contact-item__dot--zalo {
  background: #0068FF;
}
.wesmile-contact-item__label {
  font-size: 13.5px;
  font-weight: 800;
  color: #091E3A;
}
.wesmile-contact-item__note {
  margin: -4px 0 0;
  font-size: 12px;
  color: #5C6B7F;
  line-height: 1.45;
}
.wesmile-contact-item__number-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(9, 30, 58, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
}
.wesmile-contact-item__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  color: #091E3A;
  letter-spacing: 0.02em;
}
.wesmile-contact-copy-btn {
  padding: 6px 11px;
  border-radius: 9999px;
  border: 1px solid rgba(9, 30, 58, 0.14);
  background: #F6F8FB;
  color: #091E3A;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.wesmile-contact-copy-btn:hover {
  border-color: #00A3E0;
  color: #00A3E0;
  background: #ffffff;
}
.wesmile-zalo-qr-frame {
  background: #ffffff;
  border: 1.5px dashed rgba(0, 104, 255, 0.35);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.wesmile-zalo-qr-img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  display: block;
}
.wesmile-zalo-qr-caption {
  font-size: 11.5px;
  font-weight: 700;
  color: #0068FF;
}
.wesmile-contact-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wesmile-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}
.wesmile-contact-cta--phone {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
}
.wesmile-contact-cta--phone:hover {
  background: #059669;
  color: #ffffff;
  transform: translateY(-1px);
}
.wesmile-contact-cta--zalo {
  background: #0068FF;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 104, 255, 0.25);
}
.wesmile-contact-cta--zalo:hover {
  background: #0052CC;
  color: #ffffff;
  transform: translateY(-1px);
}
.wesmile-contact-cta--outline {
  background: #ffffff;
  color: #091E3A;
  border: 1px solid rgba(9, 30, 58, 0.16);
}
.wesmile-contact-cta--outline:hover {
  border-color: #0068FF;
  color: #0068FF;
}
.wesmile-contact-dialog__footer {
  padding: 12px 22px 16px;
  border-top: 1px solid rgba(9, 30, 58, 0.06);
  background: #F6F8FB;
}
.wesmile-contact-switch-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #5C6B7F;
  cursor: pointer;
}
.wesmile-contact-switch-btn strong {
  color: #00A3E0;
  font-weight: 800;
}

/* ====================================================
   1. Interactive Before / After Comparison Slider
   ==================================================== */
.wesmile-ba-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 460;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(9, 30, 58, 0.1);
  box-shadow: 0 20px 45px -12px rgba(9, 30, 58, 0.18);
  user-select: none;
  background: #091E3A;
}
.wesmile-ba-layer-after,
.wesmile-ba-layer-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wesmile-ba-layer-after img,
.wesmile-ba-layer-before img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.wesmile-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #00A3E0;
  box-shadow: 0 0 16px rgba(0, 163, 224, 0.85);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 15;
}
.wesmile-ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--color-brand-navy);
  border: 3px solid #00A3E0;
  box-shadow: 0 8px 24px rgba(9, 30, 58, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

/* Transparent full-stage range input for direct drag/touch/keyboard on the image */
input[type="range"].wesmile-ba-overlay-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 25;
}
input[type="range"].wesmile-ba-overlay-input:focus-visible + .wesmile-ba-divider .wesmile-ba-handle {
  outline: 3px solid #00A3E0;
  outline-offset: 4px;
}

/* Visible Brand-Consistent Range Slider Bar below the comparison canvas */
input[type="range"].wesmile-ba-range {
  --slider-track-size: 0.5rem;
  --slider-thumb-size: 1.35rem;
  --slider-track-radius: 999px;
  --slider-thumb-radius: 50%;
  --slider-track-color: #dbeafe;
  --slider-fill-color: #00A3E0;
  --slider-thumb-color: #091E3A;
  --slider-direction: to right;
  --attr-min: attr(min type(<number>), 0);
  --attr-max: attr(max type(<number>), 100);
  --control-value: attr(value type(<number>), 52);
  --slider-progress: calc(
    progress(var(--control-value), var(--attr-min), var(--attr-max)) * 100%
  );

  appearance: none;
  inline-size: 100%;
  block-size: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"].wesmile-ba-range:dir(rtl) {
  --slider-direction: to left;
}
@supports not (opacity: progress(1, 0, 100)) {
  input[type="range"].wesmile-ba-range {
    --slider-progress: calc(
      (var(--control-value) - var(--attr-min)) /
      (var(--attr-max) - var(--attr-min)) * 100%
    );
  }
}

/* WebKit/Blink range track & thumb (kept in separate rule block from Firefox) */
input[type="range"].wesmile-ba-range::-webkit-slider-runnable-track {
  block-size: var(--slider-track-size);
  border: 0;
  border-radius: var(--slider-track-radius);
  background: linear-gradient(
    var(--slider-direction),
    var(--slider-fill-color) var(--slider-progress),
    var(--slider-track-color) var(--slider-progress)
  );
}
input[type="range"].wesmile-ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  inline-size: var(--slider-thumb-size);
  block-size: var(--slider-thumb-size);
  margin-block-start: calc(
    (var(--slider-track-size) - var(--slider-thumb-size)) / 2
  );
  border: 2px solid #ffffff;
  border-radius: var(--slider-thumb-radius);
  background: var(--slider-thumb-color);
  box-shadow: 0 2px 8px rgba(9, 30, 58, 0.25);
}

/* Firefox range track, progress & thumb (separate rule blocks) */
input[type="range"].wesmile-ba-range::-moz-range-track {
  block-size: var(--slider-track-size);
  border: 0;
  border-radius: var(--slider-track-radius);
  background: var(--slider-track-color);
}
input[type="range"].wesmile-ba-range::-moz-range-progress {
  block-size: var(--slider-track-size);
  border-radius: var(--slider-track-radius);
  background: var(--slider-fill-color);
}
input[type="range"].wesmile-ba-range::-moz-range-thumb {
  inline-size: var(--slider-thumb-size);
  block-size: var(--slider-thumb-size);
  border: 2px solid #ffffff;
  border-radius: var(--slider-thumb-radius);
  background: var(--slider-thumb-color);
  box-shadow: 0 2px 8px rgba(9, 30, 58, 0.25);
}
input[type="range"].wesmile-ba-range:focus-visible {
  outline: 2px solid var(--slider-fill-color);
  outline-offset: 4px;
}

/* ====================================================
   2. Sticky Add-to-Cart Bar on Scroll
   ==================================================== */
.wesmile-sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(9, 30, 58, 0.1);
  box-shadow: 0 -10px 30px rgba(9, 30, 58, 0.08);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.wesmile-sticky-atc.is-visible {
  transform: translateY(0);
}
.wesmile-sticky-plan-pill {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid rgba(9, 30, 58, 0.12);
  background: #f8fafc;
  color: var(--color-brand-slate);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.wesmile-sticky-plan-pill.is-active {
  background: var(--color-brand-cyanLight);
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-navy);
}

/* ====================================================
   3. Header Inline Search Input (Fade-in / Fade-out) & Cart Tooltip
   ==================================================== */
.wesmile-cart-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 5px 10px;
  border-radius: 6px;
  background: #111c2d;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 60;
}
.wesmile-cart-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #111c2d transparent;
}
.wesmile-cart-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
.wesmile-cart-tooltip-wrap:not(.is-tooltip-dismissed):hover .wesmile-cart-tooltip,
.wesmile-cart-tooltip-wrap:not(.is-tooltip-dismissed):focus-within .wesmile-cart-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.wesmile-header-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.wesmile-header-search-wrap.is-open .wesmile-header-search-btn {
  border-color: #00A3E0 !important;
  color: #00A3E0 !important;
  background: #f0f9ff !important;
}
.wesmile-header-search-box {
  position: absolute;
  right: calc(100% + 8px);
  left: auto;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  width: 360px;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.wesmile-header-search-wrap.is-open .wesmile-header-search-box {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}
.wesmile-header-search-form {
  margin: 0;
  width: 100%;
}
.wesmile-header-search-input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #00A3E0;
  background: #ffffff;
  color: #111c2d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.96), 0 8px 22px rgba(15, 23, 42, 0.14);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.wesmile-header-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.wesmile-header-search-input:focus {
  border-color: #00A3E0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.98), 0 0 0 6px rgba(0, 163, 224, 0.16), 0 10px 26px rgba(15, 23, 42, 0.16);
}
@media (prefers-reduced-motion: reduce) {
  .wesmile-header-search-box,
  .wesmile-header-search-wrap.is-open .wesmile-header-search-box {
    transform: translateY(-50%);
    transition-duration: 0.1s;
  }
}
.site-header > .wesmile-header-inner,
.site-header > div:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}
.wesmile-header-nav-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 1 1 auto !important;
  margin-left: auto !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
  min-width: 0;
}
.wesmile-primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 20px;
  flex-wrap: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #111c2d;
}
@media (max-width: 1240px) {
  .wesmile-primary-nav {
    gap: 13px;
    font-size: 13px;
  }
}
.wesmile-header-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: 2px !important;
  flex-shrink: 0 !important;
}
.wesmile-header-auth-desktop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(15, 23, 42, 0.1);
}
.wesmile-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #111c2d;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s ease;
}
.wesmile-mobile-menu-btn:hover,
.wesmile-mobile-menu-btn.is-open {
  border-color: #00A3E0;
  color: #00A3E0;
  background: #f0f9ff;
}
.wesmile-mobile-menu-btn .wesmile-close-icon {
  display: none;
}
.wesmile-mobile-menu-btn.is-open .wesmile-hamburger-icon {
  display: none;
}
.wesmile-mobile-menu-btn.is-open .wesmile-close-icon {
  display: block;
}
.wesmile-mobile-menu-drawer {
  display: none;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 22px 45px -12px rgba(15, 23, 42, 0.18);
  max-height: calc(100vh - 68px);
  max-height: calc(100dvh - 68px);
  overflow-y: auto;
  z-index: 85;
}
.wesmile-mobile-menu-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wesmile-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.wesmile-mobile-nav-li {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.wesmile-mobile-nav-li:last-child {
  border-bottom: none;
}
.wesmile-mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: #111c2d;
  text-decoration: none;
  transition: color 0.15s ease;
}
.wesmile-mobile-nav-item:hover,
.wesmile-mobile-nav-item.is-current {
  color: #00A3E0;
}
.wesmile-mobile-item-arrow {
  font-size: 13px;
  color: #00A3E0;
  font-weight: 700;
}
.wesmile-mobile-hot-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  background: #f43f5e;
  color: #ffffff;
  line-height: 1.1;
}
.wesmile-mobile-nav-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wesmile-mobile-nav-group-link {
  flex: 1;
  justify-content: flex-start;
}
.wesmile-mobile-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wesmile-mobile-sub-toggle:hover,
.wesmile-mobile-nav-group.is-open .wesmile-mobile-sub-toggle {
  background: #f0f9ff;
  border-color: rgba(0, 163, 224, 0.4);
  color: #00A3E0;
}
.wesmile-mobile-sub-caret {
  transition: transform 0.18s ease;
}
.wesmile-mobile-nav-group.is-open .wesmile-mobile-sub-caret {
  transform: rotate(180deg);
}
.wesmile-mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0 14px;
}
.wesmile-mobile-nav-group.is-open .wesmile-mobile-submenu {
  display: flex;
}
.wesmile-mobile-cat-block {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wesmile-mobile-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111c2d;
}
.wesmile-mobile-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.wesmile-mobile-cat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wesmile-mobile-cat-title {
  font-size: 13px;
  font-weight: 800;
  color: #111c2d;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wesmile-mobile-cat-badge {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
}
.wesmile-mobile-cat-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}
.wesmile-mobile-cat-prods {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}
.wesmile-mobile-prod-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: #111c2d;
}
.wesmile-mobile-prod-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
  flex-shrink: 0;
}
.wesmile-mobile-prod-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wesmile-mobile-prod-name {
  font-size: 12px;
  font-weight: 700;
  color: #111c2d;
  line-height: 1.25;
}
.wesmile-mobile-prod-price {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 800;
  color: #00A3E0;
}
.wesmile-mobile-promo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  text-decoration: none;
  color: #111c2d;
}
.wesmile-mobile-promo-row img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}
.wesmile-mobile-promo-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wesmile-mobile-promo-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.wesmile-mobile-promo-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ffe4e6;
  color: #e11d48;
}
.wesmile-mobile-promo-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
  background: #e0f2fe;
  color: #0369a1;
}
.wesmile-mobile-promo-title {
  font-size: 12px;
  font-weight: 700;
  color: #111c2d;
  line-height: 1.3;
}
.wesmile-mobile-sub-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: #111c2d;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.wesmile-mobile-menu-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.wesmile-mobile-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wesmile-mobile-auth-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f0f9ff;
  color: #0D7399;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.wesmile-mobile-auth-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.wesmile-mobile-auth-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  background: #111c2d;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 1080px) {
  .site-header > .wesmile-header-inner,
  .site-header > div:first-child {
    min-height: 64px !important;
    padding: 10px 16px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  .site-header .wesmile-primary-nav {
    display: none !important;
  }
  .site-header .wesmile-header-auth-desktop {
    display: none !important;
  }
  .site-header .wesmile-mobile-menu-btn {
    display: inline-flex !important;
  }
  .site-header .wesmile-mobile-menu-drawer.is-open {
    display: block !important;
  }
}
.site-header.is-compact-nav > .wesmile-header-inner,
.site-header.is-compact-nav > div:first-child {
  min-height: 64px !important;
  padding: 10px 16px !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}
.site-header.is-compact-nav .wesmile-primary-nav {
  display: none !important;
}
.site-header.is-compact-nav .wesmile-header-auth-desktop {
  display: none !important;
}
.site-header.is-compact-nav .wesmile-mobile-menu-btn {
  display: inline-flex !important;
}
.site-header.is-compact-nav .wesmile-mobile-menu-drawer.is-open {
  display: block !important;
}
@media (max-width: 640px) {
  .site-header a[aria-label*="WeSmile"] img,
  .site-header > div:first-child > a:first-child img {
    height: 30px !important;
  }
  .wesmile-header-search-box {
    position: fixed !important;
    top: 66px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    transform: translateY(-4px) !important;
  }
  .wesmile-header-search-wrap.is-open .wesmile-header-search-box {
    transform: translateY(0) !important;
  }
}

/* ==========================================================================
   Homepage 3-Role Product Showcase (Hot • Mới Về • Khuyến Mại) & Hot Deals
   ========================================================================== */
.wesmile-role-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--color-brand-porcelain);
  border: 1px solid rgba(9, 30, 58, 0.08);
}

.wesmile-role-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-brand-slate);
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.wesmile-role-filter-btn:hover {
  color: var(--color-brand-navy);
  background: rgba(255, 255, 255, 0.7);
}

.wesmile-role-filter-btn.is-active {
  background: var(--color-brand-navy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(9, 30, 58, 0.16);
}

#collection > .text-center {
  margin-block-end: 2.25rem;
}

@media (min-width: 640px) {
  #collection > .text-center {
    margin-block-end: 2.5rem;
  }
}

.wesmile-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  #cat-grid .wesmile-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .wesmile-role-grid:not([data-active-role="hot"]):not([data-active-role="new"]):not([data-active-role="promo"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr auto;
    grid-auto-rows: auto auto 1fr auto;
    row-gap: 10px;
    column-gap: 22px;
  }
}

.wesmile-role-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  background: rgba(248, 250, 252, 0.78);
  border-radius: 20px;
  padding: 16px 18px;
  border: 1.5px solid rgba(9, 30, 58, 0.07);
  transition: background-color 0.25s, box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  container-type: inline-size;
}

@media (min-width: 1024px) {
  .wesmile-role-grid:not([data-active-role="hot"]):not([data-active-role="new"]):not([data-active-role="promo"]) > .wesmile-role-card {
    grid-row: span 4;
    grid-template-rows: subgrid;
    container-type: normal;
  }

  .wesmile-role-grid:not([data-active-role="hot"]):not([data-active-role="new"]):not([data-active-role="promo"]):not([data-filtered-cat="true"]) > .wesmile-role-card:nth-child(n+4) {
    margin-block-start: 12px;
  }
}

.wesmile-role-card:hover {
  background: #ffffff;
  box-shadow: 0 22px 44px -12px rgba(9, 30, 58, 0.12);
  transform: translateY(-2px);
}

.wesmile-role-card[data-role="hot"] {
  border-color: rgba(9, 30, 58, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.88) 100%);
  box-shadow: 0 14px 34px -10px rgba(9, 30, 58, 0.08);
}

.wesmile-role-card[data-role="new"] {
  border-color: rgba(0, 163, 224, 0.28);
}

.wesmile-role-card[data-role="promo"] {
  border-color: rgba(225, 29, 72, 0.22);
}

.wesmile-role-card.is-hidden-role,
.wesmile-role-card.is-hidden-cat {
  display: none !important;
}

.wesmile-role-card.is-spotlight {
  grid-column: 1 / -1;
  background: #ffffff;
  box-shadow: 0 24px 48px -12px rgba(9, 30, 58, 0.12);
}

.wesmile-role-card > .wesmile-role-card-media {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #F8FAFC 0%, #E8F7FC 100%);
  border: 1px solid rgba(9, 30, 58, 0.06);
  cursor: pointer;
}

.wesmile-role-card > .wesmile-role-card-media > img.wesmile-role-card-img,
.wesmile-role-card > img.wesmile-role-card-img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border-radius: 16px;
  padding: 0;
  border: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.wesmile-role-card-media:hover > img.wesmile-role-card-img,
.wesmile-role-card-media:focus-within > img.wesmile-role-card-img {
  transform: scale(1.04);
}

:root {
  --ws-in-oklab: ;
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --ws-in-oklab: in oklab;
  }
}

.wesmile-role-card-title-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 36px 20px 14px;
  background: linear-gradient(
    to bottom var(--ws-in-oklab),
    rgba(9, 30, 58, 0) 35%,
    rgba(9, 30, 58, 0.52) 72%,
    rgba(9, 30, 58, 0.9) 100%
  );
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), padding-block-end 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.wesmile-role-card-hover-title {
  margin: 0;
  inline-size: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 12px rgba(9, 30, 58, 0.55);
}

.wesmile-role-card-hover-title a.wesmile-role-card-media-link {
  color: #ffffff;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.wesmile-role-card-hover-title a.wesmile-role-card-media-link:hover {
  color: #38BDF8;
}

.wesmile-role-card-hover-title a.wesmile-role-card-media-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.wesmile-role-card-hover-title a.wesmile-role-card-media-link:focus-visible {
  outline: none;
}

.wesmile-role-card-media:has(a.wesmile-role-card-media-link:focus-visible) {
  outline: 2px solid #00A3E0;
  outline-offset: 2px;
}

.wesmile-role-card-media:hover .wesmile-role-card-title-overlay,
.wesmile-role-card-media:focus-within .wesmile-role-card-title-overlay {
  opacity: 1;
  padding-block-end: 22px;
}

.wesmile-role-card > header > h3,
.wesmile-role-card-desc,
.wesmile-role-card ul {
  display: none !important;
}

.wesmile-role-card > footer {
  padding-block-start: 10px;
  border-block-start: 1px solid rgba(9, 30, 58, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Adapt card layout horizontally when container is wide (Spotlight mode) */
@container (min-width: 680px) {
  .wesmile-role-card:has(> .wesmile-role-card-media, > img.wesmile-role-card-img) {
    grid-template-columns: minmax(280px, 44%) 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 28px;
    row-gap: 12px;
    align-items: start;
    padding: 24px;
  }
  .wesmile-role-card:has(> .wesmile-role-card-media, > img.wesmile-role-card-img) > :is(.wesmile-role-card-media, img.wesmile-role-card-img) {
    grid-column: 1;
    grid-row: 1 / 4;
    block-size: 100%;
    min-block-size: 260px;
    align-self: stretch;
  }
  .wesmile-role-card:has(> .wesmile-role-card-media, > img.wesmile-role-card-img) > header,
  .wesmile-role-card:has(> .wesmile-role-card-media, > img.wesmile-role-card-img) > .wesmile-role-card-content,
  .wesmile-role-card:has(> .wesmile-role-card-media, > img.wesmile-role-card-img) > footer {
    grid-column: 2;
  }
}

.wesmile-role-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(9, 30, 58, 0.08);
  overflow: clip;
}

.wesmile-role-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ==========================================================================
   Homepage Hot Deals & Vouchers Section (#hot-deals) — Compact 1-Screen Desktop
   ========================================================================== */
#collection,
#hot-deals {
  scroll-margin-block-start: 80px;
}

#hot-deals {
  padding-block: 2.25rem;
}

@media (min-width: 1024px) {
  #hot-deals {
    padding-block: clamp(1.25rem, 2.4dvh, 2.25rem);
  }
}

.wesmile-hot-deals-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block-end: 1.25rem;
  padding-block-end: 1rem;
  border-block-end: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .wesmile-hot-deals-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-block-end: clamp(0.875rem, 1.8dvh, 1.25rem);
    padding-block-end: clamp(0.75rem, 1.4dvh, 1rem);
  }
}

.wesmile-hot-deals-title {
  font-size: clamp(1.375rem, 1rem + 1.15vw, 1.875rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
}

.wesmile-hot-deals-subtitle {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.76);
  margin-block-start: 0.375rem;
  max-inline-size: 42rem;
}

.wesmile-hot-deals-timer-wrap {
  display: flex;
  align-items: safe center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.625rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .wesmile-hot-deals-timer-wrap {
    align-self: auto;
  }
}

.wesmile-hot-deals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .wesmile-hot-deals-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.wesmile-combo-spotlight-card {
  container: combo-card / inline-size;
  background: #ffffff;
  color: var(--color-brand-navy);
  border-radius: 1.375rem;
  padding: 1.125rem 1.25rem;
  box-shadow: 0 22px 44px -12px rgba(9, 30, 58, 0.24);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 1024px) {
  .wesmile-combo-spotlight-card {
    grid-column: span 7 / span 7;
    padding: clamp(1rem, 1.8vw, 1.375rem);
  }
}

@supports (padding: 1cqi) {
  @media (min-width: 1024px) {
    .wesmile-combo-spotlight-card {
      padding: clamp(1rem, 2.4cqi, 1.375rem);
    }
  }
}

.wesmile-combo-spotlight-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

@container combo-card (inline-size > 480px) {
  .wesmile-combo-spotlight-body {
    grid-template-columns: minmax(175px, 38%) 1fr;
    gap: 1.125rem;
  }
}

@media (min-width: 640px) {
  .wesmile-combo-spotlight-body {
    grid-template-columns: minmax(175px, 38%) 1fr;
    gap: 1.125rem;
  }
}

.wesmile-combo-spotlight-media {
  border-radius: 1rem;
  background: var(--color-brand-porcelain);
  padding: 0.75rem 0.875rem;
  border: 1px solid rgba(9, 30, 58, 0.05);
  text-align: center;
}

.wesmile-combo-spotlight-img {
  display: block;
  inline-size: 100%;
  block-size: 124px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  margin-inline: auto;
}

.wesmile-combo-spotlight-title {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.3;
  font-weight: 800;
  color: var(--color-brand-navy);
  margin: 0;
}

@supports (font-size: 1cqi) {
  .wesmile-combo-spotlight-title {
    font-size: clamp(1.0625rem, 2.8cqi, 1.3125rem);
  }
}

.wesmile-combo-spotlight-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: clip;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-brand-slate);
  margin-block: 0.375rem 0;
}

.wesmile-combo-spotlight-list {
  list-style: none !important;
  padding-inline-start: 0 !important;
  margin-block: 0.625rem 0;
  padding-block-start: 0.625rem;
  border-block-start: 1px solid rgba(9, 30, 58, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-brand-navy);
}

.wesmile-combo-stock-box {
  margin-block-start: 0.75rem;
  padding: 0.5625rem 0.875rem;
  border-radius: 0.875rem;
  background: var(--color-brand-porcelain);
  border: 1px solid rgba(9, 30, 58, 0.06);
}

.wesmile-combo-spotlight-footer {
  padding-block-start: 0.75rem;
  border-block-start: 1px solid rgba(9, 30, 58, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wesmile-vouchers-perks-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.375rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .wesmile-vouchers-perks-card {
    grid-column: span 5 / span 5;
    padding: clamp(1rem, 1.8vw, 1.375rem);
  }
}

.wesmile-voucher-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  transition: border-color 0.2s, background-color 0.2s;
}

.wesmile-voucher-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--color-brand-cyan);
}

.wesmile-copy-coupon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--color-brand-cyan);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s, transform 0.15s;
}

.wesmile-copy-coupon-btn:hover {
  background: var(--color-brand-cyan-hover);
  transform: translateY(-1px);
}

.wesmile-copy-coupon-btn.is-copied {
  background: #10b981;
  color: #ffffff;
}

.wesmile-countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Grotesk', monospace;
}

.wesmile-countdown-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 7px;
  border-radius: 9px;
  background: rgba(9, 30, 58, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1.05;
}

.wesmile-countdown-unit strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-brand-cyan);
}

.wesmile-countdown-unit span {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1px;
}

/* ==========================================================================
   Checkout Page (/checkout/) — Validation, Admin Address Mode, Payment & Order
   ========================================================================== */
[data-wesmile-checkout-section] input:user-invalid,
[data-wesmile-checkout-section] input.user-invalid-fallback,
[data-wesmile-checkout-section] input.is-invalid {
  border-color: #d93025 !important;
  background-color: #fce8e6 !important;
}

[data-wesmile-checkout-section] input:user-invalid + .wesmile-field-error,
[data-wesmile-checkout-section] input.user-invalid-fallback + .wesmile-field-error,
[data-wesmile-checkout-section] input.is-invalid + .wesmile-field-error {
  display: flex !important;
}

[data-wesmile-checkout-section] input:user-valid,
[data-wesmile-checkout-section] input.user-valid-fallback,
[data-wesmile-checkout-section] input.is-valid {
  border-color: #188038 !important;
}

[data-wesmile-checkout-section] {
  color-scheme: light;
  accent-color: var(--color-brand-cyan, #00A3E0);
}

.wesmile-admin-mode-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .wesmile-admin-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wesmile-admin-mode-btn {
  --admin-card-bg: #ffffff;
  --admin-card-border: rgba(9, 30, 58, 0.11);
  --admin-card-shadow: 0 1px 3px rgba(9, 30, 58, 0.03);
  --admin-radio-border: #cbd5e1;
  --admin-radio-bg: #ffffff;
  --admin-badge-bg: #f1f5f9;
  --admin-badge-color: #475569;

  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: left;
  background: var(--admin-card-bg);
  border: 1.5px solid var(--admin-card-border);
  box-shadow: var(--admin-card-shadow);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.wesmile-admin-mode-btn:hover {
  --admin-card-border: rgba(0, 163, 224, 0.45);
  --admin-card-shadow: 0 6px 16px -6px rgba(9, 30, 58, 0.08);
  transform: translateY(-1px);
}

.wesmile-admin-mode-btn:has(.wesmile-admin-mode-radio:checked),
.wesmile-admin-mode-btn.is-active {
  --admin-card-bg: linear-gradient(135deg, rgba(224, 245, 252, 0.6) 0%, #ffffff 95%);
  --admin-card-border: var(--color-brand-cyan, #00A3E0);
  --admin-card-shadow: 0 8px 20px -6px rgba(0, 163, 224, 0.22), 0 0 0 3px rgba(0, 163, 224, 0.1);
  --admin-radio-border: var(--color-brand-cyan, #00A3E0);
  --admin-radio-bg: var(--color-brand-cyan, #00A3E0);
  --admin-badge-bg: var(--color-brand-cyan, #00A3E0);
  --admin-badge-color: #ffffff;
}

@supports not selector(:has(*)) {
  .wesmile-admin-mode-btn.is-active {
    --admin-card-bg: linear-gradient(135deg, rgba(224, 245, 252, 0.6) 0%, #ffffff 95%);
    --admin-card-border: var(--color-brand-cyan, #00A3E0);
    --admin-card-shadow: 0 8px 20px -6px rgba(0, 163, 224, 0.22), 0 0 0 3px rgba(0, 163, 224, 0.1);
    --admin-radio-border: var(--color-brand-cyan, #00A3E0);
    --admin-radio-bg: var(--color-brand-cyan, #00A3E0);
    --admin-badge-bg: var(--color-brand-cyan, #00A3E0);
    --admin-badge-color: #ffffff;
  }
}

.wesmile-admin-mode-radio {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.wesmile-admin-mode-indicator {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 2px solid var(--admin-radio-border);
  background: var(--admin-radio-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.wesmile-admin-mode-indicator::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.wesmile-admin-mode-btn:has(.wesmile-admin-mode-radio:checked) .wesmile-admin-mode-indicator::after,
.wesmile-admin-mode-btn.is-active .wesmile-admin-mode-indicator::after {
  opacity: 1;
  transform: scale(1);
}

.wesmile-admin-mode-pill {
  background: var(--admin-badge-bg);
  color: var(--admin-badge-color);
  transition: all 0.2s ease;
}

.wesmile-payment-section,
.wesmile-payment-section h2,
.wesmile-payment-card,
.wesmile-payment-card * {
  cursor: pointer !important;
}

.wesmile-payment-card.is-disabled {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  opacity: 0.78;
  user-select: none;
}

.wesmile-payment-card.is-disabled .wesmile-payment-title {
  color: #64748b !important;
}

.wesmile-payment-card.is-disabled .wesmile-payment-desc {
  color: #94a3b8 !important;
}

.wesmile-ship-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.wesmile-ship-card.is-disabled {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  opacity: 0.68;
  cursor: not-allowed !important;
  user-select: none;
}

.wesmile-checkout-submit-btn {
  background-color: var(--color-brand-cyan, #00A3E0) !important;
  color: #ffffff !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wesmile-checkout-submit-btn:hover:not(:disabled) {
  background-color: var(--color-brand-cyan-hover, #0088BD) !important;
  transform: translateY(-1px);
}

.wesmile-checkout-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ====================================================
   Single Product Purchase Classification / Plan Selector
   ==================================================== */
.visually-hidden:where(:not(:focus-within, :active)) {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.wesmile-sp-plan-selector {
  border: 0;
  margin: 0 0 1.25rem 0;
  padding: 0;
  min-width: 0;
}

.wesmile-sp-plan-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-block-size: 56px;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  border: 2px solid #cbd5e1;
  background-color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

@media (pointer: coarse) {
  .wesmile-sp-plan-card {
    min-block-size: 60px;
  }
}

.wesmile-sp-plan-card:hover {
  border-color: #00A3E0;
  background-color: rgba(240, 249, 255, 0.55);
}

.wesmile-sp-plan-radio {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.wesmile-sp-plan-radio:checked + .wesmile-sp-plan-card,
.wesmile-sp-plan-card.is-selected {
  border-color: #091E3A !important;
  background-color: #F6F8FB !important;
  box-shadow: 0 8px 20px -6px rgba(9, 30, 58, 0.14), 0 0 0 3px rgba(0, 163, 224, 0.14);
}

.wesmile-sp-plan-radio:focus-visible + .wesmile-sp-plan-card,
.wesmile-sp-plan-card:focus-visible {
  outline: 3px solid #00A3E0;
  outline-offset: 2px;
}

.wesmile-sp-plan-dot {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  border: 2px solid #94a3b8;
  background-color: #ffffff;
  flex-shrink: 0;
  transition: border-color 0.18s ease, border-width 0.18s ease, box-shadow 0.18s ease;
}

.wesmile-sp-plan-radio:checked + .wesmile-sp-plan-card .wesmile-sp-plan-dot,
.wesmile-sp-plan-card.is-selected .wesmile-sp-plan-dot {
  border: 5px solid #091E3A !important;
  box-shadow: 0 0 0 2px rgba(0, 163, 224, 0.25);
}

/* ==========================================================================
   Checkout Remove Item Confirmation Modal (<dialog>)
   ========================================================================== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(9, 30, 58, 0.52);
  backdrop-filter: blur(4px);
}

.wesmile-confirm-dialog {
  width: min(92vw, 420px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(9, 30, 58, 0.1);
  border-radius: 24px;
  background: #ffffff;
  color: var(--color-brand-navy, #091E3A);
  box-shadow: 0 24px 48px -12px rgba(9, 30, 58, 0.28);
}

.wesmile-confirm-dialog-body {
  padding: 24px;
}

.wesmile-confirm-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}

.wesmile-confirm-title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--color-brand-navy, #091E3A);
  margin: 0 0 8px 0;
}

.wesmile-confirm-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-brand-slate, #4A5568);
  margin: 0 0 20px 0;
}

.wesmile-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.wesmile-confirm-btn-cancel,
.wesmile-confirm-btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.wesmile-confirm-btn-cancel {
  background: #f8fafc;
  color: var(--color-brand-navy, #091E3A);
  border: 1.5px solid #cbd5e1;
}

.wesmile-confirm-btn-cancel:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.wesmile-confirm-btn-delete {
  background: #e11d48;
  color: #ffffff;
  border: 1.5px solid #e11d48;
}

.wesmile-confirm-btn-delete:hover {
  background: #be123c;
  border-color: #be123c;
  transform: translateY(-1px);
}

/* ==========================================================================
   Newsletter Subscription Thank You Modal (<dialog>)
   ========================================================================== */
.wesmile-newsletter-dialog {
  width: min(92vw, 450px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(0, 163, 224, 0.22);
  border-radius: 28px;
  background: #ffffff;
  color: var(--color-brand-navy, #091E3A);
  box-shadow: 0 25px 60px -15px rgba(9, 30, 58, 0.35), 0 0 0 1px rgba(0, 163, 224, 0.1);
  overflow: hidden;
}

@keyframes ws-dialog-appear {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wesmile-newsletter-dialog[open] {
  animation: ws-dialog-appear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wesmile-newsletter-dialog-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.wesmile-newsletter-dialog-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(9, 30, 58, 0.1);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.wesmile-newsletter-dialog-close-btn:hover {
  background: #ffffff;
  color: #091E3A;
  transform: scale(1.06);
}

.wesmile-newsletter-dialog-header {
  background: linear-gradient(145deg, #091E3A 0%, #0c2b54 60%, #083344 100%);
  padding: 30px 24px 22px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.wesmile-newsletter-dialog-badge-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wesmile-newsletter-dialog-badge-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: rgba(0, 163, 224, 0.35);
  animation: ws-badge-pulse 2s infinite ease-out;
}

@keyframes ws-badge-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.wesmile-newsletter-dialog-badge-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #00A3E0 0%, #0284C7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 163, 224, 0.45);
}

.wesmile-newsletter-dialog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 5px;
}

.wesmile-newsletter-dialog-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

.wesmile-newsletter-dialog-content {
  padding: 22px 24px 26px;
  background: #ffffff;
  text-align: center;
}

.wesmile-newsletter-dialog-main-msg {
  font-size: 15px;
  line-height: 1.5;
  color: #0f172a;
  margin: 0 0 14px;
}

.wesmile-newsletter-dialog-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 16px;
}

.wesmile-newsletter-dialog-alert-icon {
  flex-shrink: 0;
  color: #0d9488;
  margin-top: 1px;
}

.wesmile-newsletter-dialog-alert-text {
  font-size: 13px;
  line-height: 1.55;
  color: #134e4a;
  font-weight: 500;
  margin: 0;
}

.wesmile-newsletter-dialog-perks {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 20px;
  text-align: left;
}

.wesmile-newsletter-dialog-perk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.wesmile-newsletter-perk-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
}

.wesmile-newsletter-perk-code-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wesmile-newsletter-perk-label {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.wesmile-newsletter-perk-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.wesmile-newsletter-dialog-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

.wesmile-newsletter-dialog-actions {
  display: flex;
}

.wesmile-newsletter-btn-confirm {
  width: 100%;
  padding: 12px 20px;
  min-height: 46px;
  border-radius: 9999px;
  background: #00A3E0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 163, 224, 0.35);
  transition: all 0.2s ease;
}

.wesmile-newsletter-btn-confirm:hover {
  background: #0284c7;
  box-shadow: 0 6px 20px rgba(0, 163, 224, 0.45);
  transform: translateY(-1px);
}

/* ==========================================================================
   Checkout Order Success Modal (<dialog>)
   ========================================================================== */
.wesmile-order-success-dialog {
  width: min(92vw, 480px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(9, 30, 58, 0.12);
  border-radius: 28px;
  background: #ffffff;
  color: var(--color-brand-navy, #091E3A);
  box-shadow: 0 25px 60px -15px rgba(9, 30, 58, 0.28), 0 0 0 1px rgba(9, 30, 58, 0.05);
  overflow: hidden;
}

.wesmile-order-success-dialog[open] {
  animation: ws-dialog-appear 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.wesmile-order-success-body {
  padding: 32px 26px 26px;
  text-align: center;
}

.wesmile-order-success-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #a7f3d0;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.25);
}

.wesmile-success-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--color-brand-navy, #091E3A);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.wesmile-success-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #047857;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.wesmile-success-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wesmile-success-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.wesmile-success-info-label {
  color: var(--color-brand-slate, #64748b);
  font-weight: 500;
  flex-shrink: 0;
}

.wesmile-success-info-value {
  color: var(--color-brand-navy, #091E3A);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.wesmile-success-code {
  color: var(--color-brand-cyan, #00A3E0);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.wesmile-success-total {
  color: var(--color-brand-navy, #091E3A);
  font-weight: 800;
  font-size: 14px;
}

.wesmile-success-countdown-wrap {
  margin-bottom: 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 12px 16px;
}

.wesmile-success-countdown-text {
  font-size: 13px;
  color: #166534;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.wesmile-countdown-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #059669;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  font-family: monospace;
}

.wesmile-success-progress-bar {
  width: 100%;
  height: 4px;
  background: #dcfce7;
  border-radius: 9999px;
  overflow: hidden;
}

.wesmile-success-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00A3E0, #10b981);
  border-radius: 9999px;
  transform-origin: left;
  transition: width 1s linear;
}

.wesmile-success-actions {
  display: flex;
}

.wesmile-success-btn-redirect {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 9999px;
  background: var(--color-brand-cyan, #00A3E0);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(0, 163, 224, 0.4);
  transition: all 0.2s ease;
}

.wesmile-success-btn-redirect:hover {
  background: var(--color-brand-cyan-hover, #0088BD);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(0, 163, 224, 0.5);
}





