/* Skill Court Academy WordPress/WooCommerce shell overrides — v1.1.5 */
:root {
  --sca-shell-bg: #0a0a0a;
  --sca-shell-card: #121212;
  --sca-shell-card-2: #171717;
  --sca-shell-text: #f7f7f7;
  --sca-shell-muted: #a8a8a8;
  --sca-shell-border: rgba(255,255,255,.14);
  --sca-shell-primary: #55b7df;
}

/* Native browser select menus cannot reliably inherit a dark page theme.
   Force menu options to an explicit readable palette while preserving the
   dark closed control used throughout the React and WooCommerce forms. */
select option,
.sca-react-shell select option,
.sca-wc-shell select option,
.woocommerce select option,
.wc-block-components-select__select option {
  color: #111 !important;
  background: #fff !important;
}
select optgroup,
.sca-react-shell select optgroup,
.sca-wc-shell select optgroup {
  color: #111 !important;
  background: #fff !important;
}

body.sca-wc-shell {
  margin: 0;
  background: var(--sca-shell-bg) !important;
  color: var(--sca-shell-text) !important;
  min-height: 100vh;
}
body.sca-wc-shell a { color: inherit; }

/* Branded native header for WooCommerce / WordPress pages. */
.sca-native-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 88px;
  background: rgba(10,10,10,.94);
  border-bottom: 1px solid var(--sca-shell-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.sca-native-header__inner {
  width: min(1500px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
}
.sca-native-brand {
  height: 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sca-native-brand img {
  display: block;
  width: 166px !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 62px !important;
  object-fit: contain;
}
.sca-native-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.65vw, 30px);
}
.sca-native-nav a,
.sca-native-login,
.sca-native-store,
.sca-native-cart {
  color: rgba(255,255,255,.76) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.sca-native-nav a:hover,
.sca-native-login:hover,
.sca-native-store:hover,
.sca-native-cart:hover { color: #fff !important; }
.sca-native-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.sca-native-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--sca-shell-primary);
  color: #071015 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.sca-native-cart {
  min-width: 48px;
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--sca-shell-border);
  border-radius: 999px;
}
.sca-native-cart__count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--sca-shell-primary);
  color: #071015;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 800;
}
.sca-native-mobile-menu { display: none; position: relative; }
.sca-native-mobile-menu > summary {
  list-style: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sca-shell-border);
  border-radius: 999px;
  display: grid;
  place-content: center;
  gap: 4px;
  cursor: pointer;
}
.sca-native-mobile-menu > summary::-webkit-details-marker { display: none; }
.sca-native-mobile-menu > summary span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
}
.sca-native-mobile-menu__panel {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--sca-shell-border);
  border-radius: 14px;
  background: rgba(10,10,10,.98);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.sca-native-mobile-menu__panel a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.9) !important;
  text-decoration: none !important;
  font-size: 13px;
  letter-spacing: .08em;
}
.sca-native-mobile-menu__panel a:last-child { border-bottom: 0; }
.sca-native-mobile-menu__join { color: var(--sca-shell-primary) !important; font-weight: 700; }

.sca-wc-main {
  min-height: 72vh;
  padding: 122px 0 72px;
  background: var(--sca-shell-bg);
}
.sca-wc-page__inner,
.sca-wc-main > .woocommerce,
.sca-wc-main > article,
.sca-wc-main > section {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}
.sca-wc-page__title {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.035em;
}
.sca-wc-page__content { min-width: 0; }

/* WooCommerce block checkout/cart — readable, aligned dark presentation. */
.sca-wc-shell .wc-block-checkout,
.sca-wc-shell .wc-block-cart,
.sca-wc-shell .wp-block-woocommerce-checkout,
.sca-wc-shell .wp-block-woocommerce-cart {
  color: var(--sca-shell-text) !important;
}
.sca-wc-shell .wc-block-components-title,
.sca-wc-shell .wc-block-components-checkout-step__title,
.sca-wc-shell .wc-block-components-order-summary__title,
.sca-wc-shell .wc-block-components-product-name,
.sca-wc-shell .wc-block-components-totals-item__label,
.sca-wc-shell .wc-block-components-totals-item__value,
.sca-wc-shell .wc-block-components-address-card__address-section,
.sca-wc-shell .wc-block-components-checkbox__label,
.sca-wc-shell .wc-block-components-radio-control__label,
.sca-wc-shell .wc-block-components-formatted-money-amount,
.sca-wc-shell .wc-block-components-order-summary-item__description,
.sca-wc-shell .wc-block-components-order-summary-item__individual-price,
.sca-wc-shell .wc-block-components-order-summary-item__total-price {
  color: var(--sca-shell-text) !important;
}
.sca-wc-shell .wc-block-components-checkout-step__description,
.sca-wc-shell .wc-block-components-validation-error,
.sca-wc-shell .wc-block-components-order-summary-item__description p,
.sca-wc-shell .wc-block-components-product-metadata,
.sca-wc-shell .wc-block-components-totals-coupon__content,
.sca-wc-shell .wc-block-components-totals-shipping__change-address__link {
  color: var(--sca-shell-muted) !important;
}

.sca-wc-shell .wc-block-components-text-input input,
.sca-wc-shell .wc-block-components-combobox .wc-block-components-combobox-control input,
.sca-wc-shell .wc-block-components-address-form input,
.sca-wc-shell .wc-block-components-address-form select,
.sca-wc-shell .woocommerce form .form-row input.input-text,
.sca-wc-shell .woocommerce form .form-row textarea,
.sca-wc-shell .woocommerce form .form-row select,
.sca-wc-shell .woocommerce-Input,
.sca-wc-shell .input-text {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 9px !important;
  background: var(--sca-shell-card) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.sca-wc-shell .wc-block-components-text-input input:focus,
.sca-wc-shell .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.sca-wc-shell .woocommerce form .form-row input.input-text:focus,
.sca-wc-shell .woocommerce form .form-row textarea:focus,
.sca-wc-shell .woocommerce form .form-row select:focus {
  border-color: var(--sca-shell-primary) !important;
  outline: 1px solid var(--sca-shell-primary) !important;
  outline-offset: 0;
}
.sca-wc-shell .wc-block-components-text-input label,
.sca-wc-shell .wc-block-components-combobox .wc-block-components-combobox-control label,
.sca-wc-shell .woocommerce form .form-row label {
  color: rgba(255,255,255,.78) !important;
}
.sca-wc-shell input::placeholder,
.sca-wc-shell textarea::placeholder { color: rgba(255,255,255,.42) !important; opacity: 1; }

.sca-wc-shell .wc-block-components-order-summary,
.sca-wc-shell .wc-block-components-totals-wrapper,
.sca-wc-shell .wc-block-checkout__sidebar,
.sca-wc-shell .wc-block-cart__sidebar,
.sca-wc-shell .woocommerce-MyAccount-navigation,
.sca-wc-shell .woocommerce-MyAccount-content,
.sca-wc-shell .woocommerce-form-login,
.sca-wc-shell .woocommerce-form-register {
  border-color: var(--sca-shell-border) !important;
  background: transparent !important;
}
.sca-wc-shell .wc-block-components-totals-wrapper,
.sca-wc-shell .wc-block-components-order-summary {
  border-color: var(--sca-shell-border) !important;
}
.sca-wc-shell .wc-block-components-button,
.sca-wc-shell .wc-block-components-button:not(.is-link),
.sca-wc-shell .woocommerce button.button,
.sca-wc-shell .woocommerce a.button,
.sca-wc-shell .woocommerce input.button {
  border-radius: 999px !important;
}

/* Classic My Account compatibility. */
.sca-wc-shell .woocommerce { color: var(--sca-shell-text); }
.sca-wc-shell .woocommerce h1,
.sca-wc-shell .woocommerce h2,
.sca-wc-shell .woocommerce h3,
.sca-wc-shell .woocommerce h4,
.sca-wc-shell .woocommerce label,
.sca-wc-shell .woocommerce p,
.sca-wc-shell .woocommerce strong { color: inherit; }
.sca-wc-shell .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--sca-shell-border);
  border-radius: 12px;
  overflow: hidden;
}
.sca-wc-shell .woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid var(--sca-shell-border); }
.sca-wc-shell .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.sca-wc-shell .woocommerce-MyAccount-navigation a { display: block; padding: 13px 16px; text-decoration: none; }
.sca-wc-shell .woocommerce-MyAccount-navigation .is-active a { color: var(--sca-shell-primary); background: rgba(85,183,223,.08); }

/* React profile/signup forms use native selects. Keep the closed field dark,
   but make popup options readable on Chrome/Safari/Windows/iOS. */
.sca-react-shell select,
.sca-wc-shell select {
  color-scheme: dark;
}
.sca-react-shell select option,
.sca-wc-shell select option {
  color-scheme: light;
}
.sca-react-shell input[type="date"]::-webkit-calendar-picker-indicator,
.sca-wc-shell input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .85; }

@media (max-width: 1250px) {
  .sca-native-header__inner { grid-template-columns: 165px minmax(0,1fr) auto; gap: 18px; }
  .sca-native-brand img { width: 145px !important; }
  .sca-native-nav { gap: 14px; }
  .sca-native-actions { gap: 10px; }
  .sca-native-nav a, .sca-native-login, .sca-native-store, .sca-native-cart { font-size: 10px; letter-spacing: .12em; }
  .sca-native-join { padding-inline: 13px; }
}
@media (max-width: 1050px) {
  .sca-native-header { height: 78px; }
  .sca-native-header__inner { width: min(100% - 28px, 960px); grid-template-columns: 1fr auto; }
  .sca-native-brand { height: 56px; }
  .sca-native-brand img { width: 142px !important; max-height: 54px !important; }
  .sca-native-nav, .sca-native-actions { display: none; }
  .sca-native-mobile-menu { display: block; justify-self: end; }
  .sca-wc-main { padding-top: 106px; }
}
@media (max-width: 700px) {
  .sca-wc-page__inner,
  .sca-wc-main > .woocommerce,
  .sca-wc-main > article,
  .sca-wc-main > section { width: min(100% - 28px, 1440px); }
  .sca-wc-main { padding-bottom: 48px; }
  .sca-wc-shell .wc-block-checkout,
  .sca-wc-shell .wc-block-cart { padding-inline: 0 !important; }
}

/* v1.1.4 navigation grouping: keep the brand/action zones stable and prevent desktop overflow. */
.sca-react-nav-group { position: relative; display: flex; align-items: center; }
.sca-react-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}
.sca-react-nav-trigger:hover { color: #fff; }
.sca-react-nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(10,10,10,.97);
  box-shadow: 0 20px 55px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
  z-index: 80;
}
.sca-react-nav-dropdown__item {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  color: rgba(255,255,255,.78) !important;
  text-decoration: none !important;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sca-react-nav-dropdown__item:hover,
.sca-react-nav-dropdown__item.is-active { background: rgba(85,183,223,.11); color: var(--sca-shell-primary) !important; }

.sca-native-dropdown { position: relative; }
.sca-native-dropdown > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.76);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
}
.sca-native-dropdown > summary::-webkit-details-marker { display: none; }
.sca-native-dropdown > summary:hover,
.sca-native-dropdown[open] > summary { color: #fff; }
.sca-native-dropdown__panel {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  padding: 8px;
  border: 1px solid var(--sca-shell-border);
  border-radius: 14px;
  background: rgba(10,10,10,.98);
  box-shadow: 0 20px 55px rgba(0,0,0,.42);
  z-index: 100;
}
.sca-native-dropdown__panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 12px !important;
  letter-spacing: .08em !important;
}
.sca-native-dropdown__panel a:hover { background: rgba(85,183,223,.11); color: var(--sca-shell-primary) !important; }
.sca-native-mobile-heading {
  padding: 14px 10px 6px;
  color: rgba(255,255,255,.42);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 700;
}
.sca-native-mobile-menu__panel a.sca-native-mobile-child { padding-left: 22px; }

/* Broken remote media should never leave an empty/broken tile in the public UI. */
img.sca-image-fallback { object-fit: cover !important; background: #111; }

/* v1.1.5 — stable hover bridge + bilingual/RTL shell. */
.sca-react-nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -18px;
  right: -18px;
  height: 14px;
  pointer-events: auto;
}
.sca-react-nav-dropdown { top: calc(100% + 2px); }
.sca-native-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 16px;
  pointer-events: auto;
}
.sca-native-dropdown__panel { top: calc(100% + 5px); }

.sca-native-lang,
.sca-native-mobile-lang {
  appearance: none;
  border: 1px solid var(--sca-shell-border);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.82);
  min-width: 42px;
  height: 40px;
  padding: 0 11px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.sca-native-lang:hover,
.sca-native-mobile-lang:hover { color: #fff; border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.05); }
.sca-native-mobile-lang { display: block; width: 100%; margin: 0 0 8px; text-align: center; }

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .sca-react-shell,
html[dir="rtl"] .sca-wc-shell { direction: rtl; }
html[dir="rtl"] .text-left { text-align: right !important; }
html[dir="rtl"] .text-right { text-align: left !important; }
html[dir="rtl"] .sca-react-nav-trigger,
html[dir="rtl"] .sca-react-nav-dropdown__item,
html[dir="rtl"] .sca-native-nav a,
html[dir="rtl"] .sca-native-dropdown > summary,
html[dir="rtl"] .sca-native-dropdown__panel a,
html[dir="rtl"] .sca-native-login,
html[dir="rtl"] .sca-native-store,
html[dir="rtl"] .sca-native-cart,
html[dir="rtl"] .sca-native-join { letter-spacing: 0 !important; }
html[dir="rtl"] .sca-native-mobile-menu__panel { right: auto; left: 0; }
html[dir="rtl"] .sca-native-mobile-menu__panel a.sca-native-mobile-child { padding-left: 10px; padding-right: 22px; }
html[dir="rtl"] .sca-react-nav-dropdown__item,
html[dir="rtl"] .sca-native-dropdown__panel a { text-align: right; }
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] .woocommerce input[type="email"],
html[dir="rtl"] .woocommerce input[type="tel"] { direction: ltr; text-align: left; }
html[dir="rtl"] .woocommerce .woocommerce-MyAccount-navigation ul,
html[dir="rtl"] .woocommerce form,
html[dir="rtl"] .wc-block-components-form { text-align: right; }

@media (max-width: 1250px) {
  .sca-native-lang { min-width: 38px; padding-inline: 8px; }
}
