/* Selected state colour: the ocean blue of the wave liquid. Everything black and white stays; only "selected" turns blue. */
:root { --ws-sel: #3b79a8; --ws-sel-d: #2f6a97; --ws-sel-soft: rgba(59, 121, 168, .2); }

/* option pills (voltage, size...) */
html body .ws-pill.is-selected, html body .ws-pill.is-selected:focus, html body .ws-pill.is-selected:hover { background: var(--ws-sel) !important; border-color: var(--ws-sel) !important; color: #fff !important; }
html body .ws-linked__pill.is-current { background: var(--ws-sel) !important; border-color: var(--ws-sel) !important; color: #fff !important; }
/* colour circles */
html .ws-swatch.is-selected { border-color: var(--ws-sel) !important; outline-color: var(--ws-sel) !important; }
.ws-view.is-active { border-color: var(--ws-sel) !important; }
/* tabs and filters */
html body .ws-rooms__tab.is-active, html body .ws-rooms__tab.is-active:focus, html body .ws-rv__pill.is-active, html body .ws-rv__pill.is-active:focus { background: var(--ws-sel) !important; border-color: var(--ws-sel) !important; color: #fff !important; }
html body .ws-cats__pill.is-active, html body .ws-cats__pill--sub.is-active, html body .ws-cats__pill[aria-current] { background: var(--ws-sel) !important; border-color: var(--ws-sel) !important; color: #fff !important; }
html body .ws-subnav__links a.is-active, html body .ws-subnav__links a.is-active:focus { color: var(--ws-sel-d) !important; }
html body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--ws-sel) !important; border-color: var(--ws-sel) !important; color: #fff !important; }
/* banner dots */
.ws-hbanner .ws-hbanner__dot.is-active, html button.ws-hbanner__dot.is-active, html button.ws-hbanner__dot.is-active:focus, html button.ws-hbanner__dot.is-active:hover { background: var(--ws-sel) !important; background-color: var(--ws-sel) !important; }
/* check boxes, radios, star rating you pick, drop-down highlight */
input[type=checkbox], input[type=radio], body.woocommerce-checkout input[type=checkbox], body.woocommerce-account input[type=checkbox] { accent-color: var(--ws-sel) !important; }
.ws-rate label:hover, .ws-rate label:hover ~ label, .ws-rate input:checked ~ label { color: var(--ws-sel) !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected], .select2-container--default .select2-results__option--selected { background-color: var(--ws-sel) !important; color: #fff !important; }
/* the field you are typing in */
html body.woocommerce-checkout input.input-text:focus, html body.woocommerce-checkout textarea:focus, html body.woocommerce-checkout select:focus, .ws-cp:focus-within, .ws-drawer__cform input:focus { border-color: var(--ws-sel) !important; box-shadow: 0 0 0 3px var(--ws-sel-soft) !important; }
html body :focus-visible { outline-color: var(--ws-sel); }

/* Shop-by-room tabs: squared corners, and the chosen tab fills with ocean like water rising (one transform, no JS) */
html body .ws-rooms__tab { position: relative; isolation: isolate; overflow: hidden; border-radius: 10px !important; }
html body .ws-rooms__tab::before { content: ""; position: absolute; left: -10%; right: -10%; top: 0; bottom: 0; z-index: -1; background: var(--ws-sel); border-radius: 50% 50% 0 0 / 40% 40% 0 0; transform: translateY(105%); transition: transform .6s cubic-bezier(.25, .8, .25, 1), border-radius .6s ease; pointer-events: none; }
html body .ws-rooms__tab.is-active::before { transform: translateY(0); border-radius: 0; }
html body .ws-rooms__tab, html body .ws-rooms__tab:focus { transition: color .25s ease .12s, border-color .25s ease; }
html body .ws-rooms__tab.is-active, html body .ws-rooms__tab.is-active:focus, html body .ws-rooms__tab.is-active:hover { background: #fff !important; color: #fff !important; border-color: var(--ws-sel) !important; }
@media (prefers-reduced-motion: reduce) { html body .ws-rooms__tab::before { transition: none; } }

/* Room tabs: never pink (the theme paints any tapped/hovered/focused button pink) - white until chosen, then the ocean fills up */
html body .ws-rooms__tab, html body .ws-rooms__tab:hover, html body .ws-rooms__tab:focus, html body .ws-rooms__tab:focus-visible, html body .ws-rooms__tab:active, html body .ws-rooms__tab.is-active, html body .ws-rooms__tab.is-active:hover, html body .ws-rooms__tab.is-active:focus, html body .ws-rooms__tab.is-active:active { background-color: #fff !important; background-image: none !important; box-shadow: none !important; outline: 0 !important; -webkit-tap-highlight-color: transparent; transition-property: color, border-color !important; }
html body .ws-rooms__tab, html body .ws-rooms__tab:hover, html body .ws-rooms__tab:focus, html body .ws-rooms__tab:active { color: #111 !important; border-color: #d6d8e0 !important; }
html body .ws-rooms__tab.is-active, html body .ws-rooms__tab.is-active:hover, html body .ws-rooms__tab.is-active:focus, html body .ws-rooms__tab.is-active:active { color: #fff !important; border-color: var(--ws-sel) !important; }

/* Wishlist heart on product cards: just a white heart, no circle behind it (red and filled once saved) */
html body li.product > button.ws-heart, html body li.product > button.ws-heart:hover, html body li.product > button.ws-heart:focus, html body li.product > button.ws-heart:active {
  background-color: transparent !important; box-shadow: none !important; border: 0 !important; outline: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.4A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") !important;
  background-position: center !important; background-repeat: no-repeat !important; background-size: 26px !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); -webkit-tap-highlight-color: transparent;
}
html body li.product > button.ws-heart.is-on, html body li.product > button.ws-heart.is-on:hover, html body li.product > button.ws-heart.is-on:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.4A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") !important;
}

/* Home page: no wishlist heart on the product cards */
html body.home li.product > .ws-heart, html body.home li.product > button.ws-heart { display: none !important; }
