.guide-service-cta {
  --guide-service-cta-bg: #f8fafc;
  --guide-service-cta-bg-hover: #f1f5f9;
  --guide-service-cta-text: #0f172a;
  --guide-service-cta-border: #cbd5e1;
  --guide-service-cta-focus: #2563eb;
  --guide-service-cta-shadow: rgba(15, 23, 42, 0.14);
  --guide-service-cta-shadow-hover: rgba(15, 23, 42, 0.22);

  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 860px);
  max-width: 860px;
  margin: 32px auto 48px;
  padding: 0 18px;
  box-sizing: border-box;
}

body.svc-guide .entry-content > .guide-service-cta {
  width: min(100%, 860px);
  max-width: 860px;
}

.guide-service-cta--prime-video {
  --guide-service-cta-bg: #cfeeff;
  --guide-service-cta-bg-hover: #e6f7ff;
  --guide-service-cta-text: #0077a8;
  --guide-service-cta-border: #9ed9f5;
  --guide-service-cta-focus: #005f8f;
  --guide-service-cta-shadow: rgba(0, 168, 225, 0.18);
  --guide-service-cta-shadow-hover: rgba(0, 168, 225, 0.28);
}

.guide-service-cta--hulu {
  --guide-service-cta-bg: #d4e0d9;
  --guide-service-cta-bg-hover:
    linear-gradient(rgba(31, 122, 58, 0.18), rgba(31, 122, 58, 0.18)),
    #d4e0d9;
  --guide-service-cta-text: #14532d;
  --guide-service-cta-border: #1f7a3a;
  --guide-service-cta-focus: #1f7a3a;
  --guide-service-cta-shadow: rgba(31, 122, 58, 0.18);
  --guide-service-cta-shadow-hover: rgba(31, 122, 58, 0.28);
}

.guide-service-cta > .guide-service-cta__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 52px;
  padding: 14px 32px;

  color: var(--guide-service-cta-text);
  background: var(--guide-service-cta-bg);
  border: 1px solid var(--guide-service-cta-border);
  border-radius: 999px;
  box-shadow: 0 10px 26px var(--guide-service-cta-shadow);

  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .guide-service-cta > .guide-service-cta__link:hover {
    color: var(--guide-service-cta-text);
    background: var(--guide-service-cta-bg-hover);
    border-color: var(--guide-service-cta-focus);
    box-shadow: 0 16px 36px var(--guide-service-cta-shadow-hover);
    transform: translateY(-3px);
  }
}

.guide-service-cta > .guide-service-cta__link:focus-visible {
  color: var(--guide-service-cta-text);
  background: var(--guide-service-cta-bg-hover);
  outline: 3px solid var(--guide-service-cta-focus);
  outline-offset: 4px;
}

.guide-service-cta > .guide-service-cta__note {
  display: block;
  margin-top: 10px;
  color: #475569;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.guide-service-cta__pr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 20px;
  margin-left: 10px;
  padding: 2px 7px;
  color: #fff;
  background: #0077a8;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
}

.guide-service-cta--compact {
  align-items: flex-end;
  width: 180px;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.guide-service-cta--compact > .guide-service-cta__link {
  width: 100%;
  min-height: 36px;
  padding: 7px 16px;
  font-size: 0.82rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px var(--guide-service-cta-shadow);
}

.guide-service-cta--compact .guide-service-cta__pr {
  min-width: 25px;
  min-height: 18px;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 0.62rem;
}

body.hbo-max-guide .guide-service-cta-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 860px);
  max-width: 860px;
  margin: 32px auto 48px;
}

body.hbo-max-guide .guide-service-controls {
  width: min(100%, 860px);
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

body.hbo-max-guide .guide-service-cta-pair > .guide-service-cta {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.hbo-max-guide .guide-service-cta-pair > .guide-service-cta > .guide-service-cta__link {
  width: 100%;
}

body.hbo-max-guide .guide-service-route {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 14px;
  width: min(100%, 860px);
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

body.hbo-max-guide .guide-service-route::after {
  content: "";
  z-index: 0;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    #11161d 0%,
    #4f6984 18%,
    rgba(79, 105, 132, 0) 100%
  );
}

body.svc-guide.hbo-max-guide .entry-content .guide-service-route > h3.wp-block-heading {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  max-width: none;
  margin: 0 !important;
  border-bottom: 0 !important;
  border-image: none !important;
}

body.hbo-max-guide .guide-service-route__body {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  margin-top: 24px;
}

body.svc-guide.hbo-max-guide .entry-content .guide-service-route > .guide-service-cta--compact {
  z-index: 1;
  grid-column: 1;
  grid-row: 3;
  align-items: center;
  justify-self: start;
  width: 220px;
  min-width: 0;
  max-width: 220px;
  margin: 16px 0 0 !important;
  padding: 0;
}

body.hbo-max-guide .hbo-plan-option {
  display: inline-block;
  white-space: nowrap;
}

body.hbo-max-guide .hbo-plan-option + .hbo-plan-option::before {
  content: " / ";
}

@media (hover: hover) and (pointer: fine) {
  body.svc-guide.hcdb-guide-page.hbo-max-guide .entry-content nav.svc-mini-nav > a.svc-mini-nav__item:hover {
    color: #f5f7fa;
    background: linear-gradient(135deg, #111820, #24384a);
    border-color: #4f6984;
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.34),
      0 0 0 2px rgba(79, 105, 132, 0.18);
  }
}

body.svc-guide.hcdb-guide-page.hbo-max-guide .entry-content nav.svc-mini-nav > a.svc-mini-nav__item:focus-visible {
  color: #f5f7fa;
  background: linear-gradient(135deg, #111820, #24384a);
  border-color: #4f6984;
  outline: 3px solid #4f6984;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px rgba(17, 24, 32, 0.72);
}

body.hbo-max-guide .guide-service-cta__note {
  color: #c5cdd6;
}

body.svc-guide.hbo-max-guide .entry-content .format-all-link > a.format-all-button {
  color: var(--svc-cta-text);
  background: var(--svc-cta-bg);
  border-color: var(--svc-cta-border);
  border-left-color: #6f879e;
  box-shadow: 0 10px 26px var(--svc-cta-shadow);
}

body.svc-guide.hbo-max-guide .entry-content .format-all-button__mobile-arrow {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.svc-guide.hbo-max-guide .entry-content .format-all-link > a.format-all-button:hover {
    color: #f5f7fa !important;
    background: #344353;
    border-color: #8298ab;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 16px 36px rgba(0, 0, 0, 0.4);
  }
}

@media (min-width: 601px) {
  body.hbo-max-guide .guide-service-controls {
    --hbo-guide-main-cta-width: 330px;
    --hbo-guide-control-gap: 18px;
    --hbo-guide-control-width: calc(
      (var(--hbo-guide-main-cta-width) * 2) + var(--hbo-guide-control-gap)
    );

    width: min(100%, var(--hbo-guide-control-width));
    max-width: var(--hbo-guide-control-width);
    margin-right: auto;
    margin-left: auto;
  }

  body.hbo-max-guide .guide-service-cta-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hbo-guide-control-gap);
    justify-content: start;
    width: 100%;
    max-width: var(--hbo-guide-control-width);
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.hbo-max-guide .guide-service-cta-pair > .guide-service-cta > .guide-service-cta__link {
    padding-right: 18px;
    padding-left: 18px;
    white-space: nowrap;
  }

  body.hbo-max-guide .guide-service-cta-pair .guide-service-cta__note {
    max-width: 100%;
    font-size: 0.64rem;
    line-height: 1.35;
    letter-spacing: 0;
    white-space: nowrap;
  }

}

@media (min-width: 1025px) {
  body.svc-guide .entry-content > .guide-service-cta {
    align-items: flex-start;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .guide-service-cta {
    margin-top: 26px;
    margin-bottom: 38px;
    padding: 0 12px;
  }

  .guide-service-cta > .guide-service-cta__link {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  body.hbo-max-guide .guide-service-cta-pair {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 26px;
    margin-bottom: 38px;
  }

  body.hbo-max-guide .guide-service-route > .guide-service-cta--compact > .guide-service-cta__link {
    min-height: 36px;
    padding: 7px 16px;
    font-size: 0.82rem;
  }

  body.svc-guide.hbo-max-guide .entry-content .guide-service-route > .guide-service-cta--compact {
    justify-self: center;
    width: min(100%, 190px);
    max-width: 190px;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

@media (max-width: 425px) {
  body.svc-guide.hbo-max-guide .entry-content .format-all-button__mobile-arrow {
    display: inline;
    margin-left: 0.2em;
  }
}
