:root {
  --tv-navy: #0f2235;
  --tv-teal: #1696a3;
  --tv-teal-dark: #0f7f8a;
  --tv-muted: #607386;
  --tv-line: #dce8ec;
  --tv-pale: #eef7f9;
  --tv-white: #ffffff;
  --tv-shadow: 0 18px 54px rgba(15, 34, 53, 0.12);
}

body.tv-utility-page #main-content {
  overflow: hidden;
  color: var(--tv-navy);
  background: #f7fbfc;
}

body.tv-utility-page #main-content,
body.tv-utility-page #main-content button,
body.tv-utility-page #main-content input {
  font-family: "Poppins", Arial, sans-serif;
}

body.tv-utility-page #main-content > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.tv-utility-page #main-content > .container::before {
  display: none;
}

body.tv-utility-page #left-area {
  float: none;
  width: 100%;
  padding: 0;
}

body.tv-utility-page #sidebar {
  display: none;
}

body.woocommerce-account.tv-utility-page h1.entry-title,
body.woocommerce-cart.tv-utility-page h1.entry-title {
  display: none;
}

.tv-ep-shell {
  width: min(90%, 1160px);
  margin: 0 auto;
}

.tv-ep-hero {
  position: relative;
  padding: clamp(70px, 9vw, 112px) 0 clamp(62px, 8vw, 96px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 14%, rgba(96, 217, 226, 0.24), transparent 24rem),
    linear-gradient(135deg, #0b1d31 0%, #0f3848 58%, #147a84 100%);
}

.tv-ep-hero::after {
  position: absolute;
  right: -120px;
  bottom: -230px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.tv-ep-hero .tv-ep-shell {
  position: relative;
  z-index: 1;
}

.tv-ep-eyebrow {
  margin: 0 0 14px;
  padding: 0;
  color: #72d4db;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tv-ep-hero h1,
.tv-404 h1 {
  max-width: 780px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.tv-ep-lead {
  max-width: 690px;
  margin: 20px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.tv-ep-section {
  padding: clamp(54px, 7vw, 86px) 0 clamp(70px, 9vw, 108px);
  background:
    radial-gradient(circle at 12% 10%, rgba(22, 150, 163, 0.09), transparent 24rem),
    #f7fbfc;
}

.tv-ep-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

a.tv-ep-card {
  display: flex;
  min-height: 386px;
  padding: 34px;
  border: 1px solid rgba(15, 34, 53, 0.08);
  border-radius: 22px;
  color: var(--tv-navy);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 13px 36px rgba(15, 34, 53, 0.09);
  text-decoration: none;
  flex-direction: column;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a.tv-ep-card:hover,
a.tv-ep-card:focus {
  border-color: rgba(22, 150, 163, 0.45);
  color: var(--tv-navy);
  box-shadow: var(--tv-shadow);
  transform: translateY(-4px);
}

.tv-ep-card__icon,
.tv-account-aside__icon,
.tv-empty-checkout__icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 28px;
  border-radius: 18px;
  color: var(--tv-teal);
  background: var(--tv-pale);
  place-items: center;
}

.tv-ep-card__icon svg,
.tv-account-aside__icon svg,
.tv-empty-checkout__icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tv-ep-card__eyebrow {
  margin-bottom: 8px;
  color: var(--tv-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tv-ep-card__title {
  margin-bottom: 12px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.tv-ep-card__copy {
  color: var(--tv-muted);
  font-size: 14px;
  line-height: 1.75;
}

.tv-ep-card__cta {
  margin-top: auto;
  padding-top: 28px;
  color: var(--tv-teal-dark);
  font-size: 14px;
  font-weight: 700;
}

.tv-ep-trust {
  display: grid;
  margin-top: 42px;
  padding: 26px 30px;
  border: 1px solid var(--tv-line);
  border-radius: 18px;
  background: #fff;
  grid-template-columns: repeat(3, 1fr);
}

.tv-ep-trust span {
  display: flex;
  padding: 0 28px;
  border-right: 1px solid var(--tv-line);
  flex-direction: column;
}

.tv-ep-trust span:first-child {
  padding-left: 0;
}

.tv-ep-trust span:last-child {
  padding-right: 0;
  border-right: 0;
}

.tv-ep-trust strong {
  color: var(--tv-navy);
  font-size: 14px;
}

.tv-ep-trust small {
  margin-top: 3px;
  color: var(--tv-muted);
  font-size: 12px;
}

.tv-account-section {
  padding: clamp(52px, 7vw, 84px) 0 clamp(70px, 9vw, 108px);
}

.tv-account-grid {
  display: grid;
  gap: 28px;
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.tv-account-panel,
.tv-account-aside,
.tv-empty-checkout__card {
  border: 1px solid rgba(15, 34, 53, 0.09);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--tv-shadow);
}

.tv-account-panel {
  min-height: 390px;
  padding: clamp(28px, 4vw, 46px);
}

.tv-account-panel .woocommerce {
  color: var(--tv-navy);
}

.tv-account-panel .woocommerce h2 {
  margin: 0 0 26px;
  padding: 0;
  color: var(--tv-navy);
  font-size: 28px;
  font-weight: 700;
}

.tv-account-panel .woocommerce-form-login {
  margin: 0;
  padding: 0;
  border: 0;
}

.tv-account-panel .woocommerce-form-row label {
  margin-bottom: 7px;
  color: var(--tv-navy);
  font-size: 13px;
  font-weight: 600;
}

.tv-account-panel .woocommerce-Input {
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid #bfd1d8;
  border-radius: 10px;
  color: var(--tv-navy);
  background: #f8fbfc;
  font-size: 15px;
}

.tv-account-panel .woocommerce-Input:focus {
  border-color: var(--tv-teal);
  outline: 3px solid rgba(22, 150, 163, 0.15);
}

.tv-account-panel .woocommerce-button {
  min-height: 48px;
  padding: 0 27px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--tv-teal) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 48px !important;
}

.tv-account-panel .woocommerce-button::after {
  display: none !important;
}

.tv-account-panel .woocommerce-button:hover,
.tv-account-panel .woocommerce-button:focus {
  padding: 0 27px !important;
  background: var(--tv-teal-dark) !important;
}

.tv-account-panel .woocommerce-LostPassword a {
  color: var(--tv-teal-dark);
  font-size: 13px;
}

.tv-account-aside {
  padding: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, rgba(98, 221, 228, 0.23), transparent 15rem),
    var(--tv-navy);
}

.tv-account-aside__icon {
  color: #72d4db;
  background: rgba(255, 255, 255, 0.09);
}

.tv-account-aside h2 {
  margin: 0 0 20px;
  padding: 0;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.tv-account-aside ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none !important;
}

.tv-account-aside li {
  position: relative;
  margin-bottom: 13px;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
  list-style: none !important;
}

.tv-account-aside li::marker {
  content: "";
}

.tv-account-aside li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: #72d4db;
  content: "✓";
  font-weight: 700;
}

.tv-account-aside a {
  color: #72d4db;
  font-size: 14px;
  font-weight: 700;
}

.tv-empty-checkout__card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.tv-empty-checkout__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.tv-empty-checkout__icon svg {
  width: 40px;
  height: 40px;
}

.tv-empty-checkout__card h2 {
  margin: 0 0 12px;
  padding: 0;
  color: var(--tv-navy);
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 700;
}

.tv-empty-checkout__card > p {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--tv-muted);
  font-size: 15px;
  line-height: 1.7;
}

.tv-empty-checkout__card small {
  display: block;
  max-width: 580px;
  margin: 24px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--tv-line);
  color: var(--tv-muted);
  font-size: 12px;
  line-height: 1.6;
}

.tv-ep-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.tv-empty-checkout .tv-ep-actions {
  justify-content: center;
}

a.tv-ep-button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--tv-teal);
  border-radius: 999px;
  color: #fff;
  background: var(--tv-teal);
  box-shadow: 0 10px 24px rgba(22, 150, 163, 0.24);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

a.tv-ep-button:hover,
a.tv-ep-button:focus {
  border-color: var(--tv-teal-dark);
  color: #fff;
  background: var(--tv-teal-dark);
}

a.tv-ep-button--secondary {
  border-color: #bfd1d8;
  color: var(--tv-navy);
  background: #fff;
  box-shadow: none;
}

a.tv-ep-button--secondary:hover,
a.tv-ep-button--secondary:focus {
  border-color: var(--tv-teal);
  color: var(--tv-teal-dark);
  background: var(--tv-pale);
}

.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new,
.wp-block-woocommerce-empty-cart-block .wc-block-grid.wp-block-product-new {
  display: none !important;
}

.wp-block-woocommerce-empty-cart-block {
  padding: clamp(52px, 7vw, 82px) 0 clamp(70px, 9vw, 104px);
  background:
    radial-gradient(circle at 12% 10%, rgba(22, 150, 163, 0.09), transparent 24rem),
    #f7fbfc;
}

.wp-block-woocommerce-empty-cart-block .tv-empty-page {
  width: min(90%, 760px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 62px) !important;
  border: 1px solid rgba(15, 34, 53, 0.09);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--tv-shadow);
}

.wp-block-woocommerce-empty-cart-block .tv-empty-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 20px;
  color: var(--tv-teal);
  background: var(--tv-pale);
}

.wp-block-woocommerce-empty-cart-block .tv-empty-heading {
  font-size: clamp(27px, 4vw, 36px) !important;
}

.wp-block-woocommerce-empty-cart-block .tv-empty-sub {
  margin-bottom: 8px !important;
}

.tv-cart-confidence {
  margin: 0 0 24px;
  color: #81909d;
  font-size: 12px;
}

.wp-block-woocommerce-empty-cart-block .tv-empty-cta {
  display: flex;
  gap: 12px;
  margin: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.wp-block-woocommerce-empty-cart-block a.tv-empty-btn {
  min-width: 154px;
  padding: 13px 26px;
}

.wp-block-woocommerce-empty-cart-block a.tv-empty-btn--secondary {
  border: 1px solid #bfd1d8;
  color: var(--tv-navy) !important;
  background: #fff;
  box-shadow: none;
}

.wp-block-woocommerce-empty-cart-block a.tv-empty-btn--secondary:hover,
.wp-block-woocommerce-empty-cart-block a.tv-empty-btn--secondary:focus {
  border-color: var(--tv-teal);
  color: var(--tv-teal-dark) !important;
  background: var(--tv-pale);
}

.wp-block-woocommerce-empty-cart-block .tv-empty-grid-wrap {
  width: min(90%, 1160px);
  margin: 58px auto 0;
}

.tv-404 {
  min-height: 72vh;
}

.tv-404__hero {
  padding: clamp(70px, 9vw, 112px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 76% 20%, rgba(101, 220, 227, 0.24), transparent 22rem),
    linear-gradient(135deg, #0b1d31 0%, #0f3848 58%, #147a84 100%);
}

.tv-404__grid {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.tv-404__number {
  margin: 0 0 12px;
  padding: 0;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(74px, 11vw, 142px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.tv-404 .tv-ep-lead {
  margin-bottom: 30px;
}

.tv-404 .tv-ep-button--secondary {
  border-color: rgba(255, 255, 255, 0.46);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.tv-404 .tv-ep-button--secondary:hover,
.tv-404 .tv-ep-button--secondary:focus {
  border-color: #fff;
  color: var(--tv-navy);
  background: #fff;
}

.tv-404__compass {
  display: grid;
  width: clamp(220px, 27vw, 340px);
  height: clamp(220px, 27vw, 340px);
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 22px rgba(255, 255, 255, 0.025);
  place-items: center;
}

.tv-404__compass svg {
  width: 48%;
  height: 48%;
  stroke: currentColor;
  stroke-width: 1.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tv-404__links {
  padding: 48px 0 70px;
  background: #f7fbfc;
}

.tv-404__links h2 {
  margin: 0 0 20px;
  padding: 0;
  color: var(--tv-navy);
  font-size: 20px;
  font-weight: 700;
}

.tv-404__link-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.tv-404__link-grid a {
  display: flex;
  padding: 22px;
  border: 1px solid var(--tv-line);
  border-radius: 14px;
  color: var(--tv-navy);
  background: #fff;
  text-decoration: none;
  flex-direction: column;
}

.tv-404__link-grid a:hover,
.tv-404__link-grid a:focus {
  border-color: rgba(22, 150, 163, 0.5);
}

.tv-404__link-grid strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.tv-404__link-grid span {
  color: var(--tv-muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .tv-ep-card-grid {
    grid-template-columns: 1fr;
  }

  a.tv-ep-card {
    min-height: 0;
  }

  .tv-account-grid,
  .tv-404__grid {
    grid-template-columns: 1fr;
  }

  .tv-404__compass {
    display: none;
  }
}

@media (max-width: 700px) {
  .tv-ep-shell {
    width: min(89%, 620px);
  }

  .tv-ep-hero {
    padding: 58px 0 54px;
  }

  .tv-ep-trust {
    padding: 6px 22px;
    grid-template-columns: 1fr;
  }

  .tv-ep-trust span,
  .tv-ep-trust span:first-child,
  .tv-ep-trust span:last-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--tv-line);
  }

  .tv-ep-trust span:last-child {
    border-bottom: 0;
  }

  .tv-account-panel,
  .tv-account-aside {
    padding: 28px 24px;
  }

  .tv-404__link-grid {
    grid-template-columns: 1fr;
  }

  .tv-ep-actions,
  .tv-empty-checkout .tv-ep-actions {
    align-items: stretch;
    flex-direction: column;
  }

  a.tv-ep-button {
    width: 100%;
  }

  .wp-block-woocommerce-empty-cart-block .tv-empty-page {
    width: 89%;
  }

  .wp-block-woocommerce-empty-cart-block .tv-empty-cta {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .wp-block-woocommerce-empty-cart-block a.tv-empty-btn {
    width: 100%;
  }
}
