/*-- -------------------------- -->
<---          Pricing           -->
<--- -------------------------- -*/

/* =========================
   Base (all sizes)
   ========================= */

#pricing-701 {
  padding: var(--sectionPadding);
  padding-top: 8rem; /* default */
  background-color: rgb(249, 249, 249);
}

/* Progressive top padding */
@media (min-width: 768px) {
  #pricing-701 {
    padding-top: 8.5rem;
  }
}
@media (min-width: 1024px) {
  #pricing-701 {
    padding-top: 9rem;
  }
}
@media (min-width: 1440px) {
  #pricing-701 {
    padding-top: 10rem;
  }
}

/* Layout */
#pricing-701 .cs-container {
  width: 100%;
  max-width: 80em;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 3rem);
  position: relative;
}

#pricing-701 .cs-content {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#pricing-701 .cs-title {
  margin-bottom: 1rem;
  font-size: clamp(2.375rem, 4.6vw, 3.0625rem);
}

#pricing-701 .cs-text {
  max-width: 20rem;
}

/* Cards */
#pricing-701 .cs-card-group {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.25rem);
  perspective: 700px;
  transform-style: preserve-3d;
}

#pricing-701 .cs-item {
  list-style: none;
  width: 100%;
  max-width: 31.25rem;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem);
  background-color: #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid rgba(221, 221, 221, 0.456);
}

/* Popular card */
#pricing-701 .cs-item.cs-popular {
  background-color: var(--primary);
}

#pricing-701 .cs-item.cs-popular .cs-package {
  color: #fff;
}

#pricing-701 .cs-item.cs-popular .cs-price,
#pricing-701 .cs-item.cs-popular .cs-desc,
#pricing-701 .cs-item.cs-popular .cs-item-p,
#pricing-701 .cs-item.cs-popular .cs-li {
  color: var(--bodyTextColorWhite);
}

#pricing-701 .cs-item.cs-popular .cs-icon {
  filter: grayscale(1) brightness(1000%);
}

#pricing-701 .cs-item.cs-popular .cs-button-solid {
  background-color: #fff;
  color: #1a1a1a;
  transition: color 0.3s;
}

#pricing-701 .cs-item.cs-popular .cs-button-solid:hover {
  color: #fff;
}

/* Header text inside card */
#pricing-701 .cs-package {
  font-size: clamp(0.8125rem, 1.4vw, 1rem);
  line-height: 1.2em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #767676;
  display: block;
}

#pricing-701 .cs-price {
  font-size: var(--headerFontSize);
  line-height: 1.2em;
  text-align: center;
  font-weight: 900;
  margin: 0;
  color: var(--headerColor);
}

#pricing-701 .cs-desc {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.2em;
  text-align: center;
  margin: 0 0 0.5rem 0;
  color: var(--bodyTextColor);
  opacity: 0.8;
}

#pricing-701 .cs-item-p {
  font-size: 1rem;
  line-height: 1.5em;
  text-align: center;
  font-weight: 400;
  margin: 0;
  color: var(--bodyTextColor);
}

/* =========================
   Feature list (NO DIVIDERS)
   - Looks like one continuous list even though it's 2 ULs
   ========================= */

#pricing-701 .cs-ul {
  margin: 1rem 0; /* spacing around the whole list area */
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Remove seam between core + more lists (desktop + expanded mobile) */
#pricing-701 .cs-ul.cs-ul-core {
  margin-bottom: 0;
}
#pricing-701 .cs-ul.cs-ul-more {
  margin-top: 0;
}

/* List items */
#pricing-701 .cs-li {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  list-style: none;
  line-height: 1.2em;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--bodyTextColor);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

#pricing-701 .cs-li.cs-disabled {
  opacity: 0.6;
}

#pricing-701 .cs-icon {
  width: 1.125rem;
  height: auto;
  display: block;
}

/* CTA button */
#pricing-701 .cs-button-solid {
  font-size: 1rem;
  line-height: clamp(2.875em, 5.5vw, 3.5em);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  margin: 0;
  color: #fff;
  min-width: 9.375rem;
  padding: 0 1.5rem;
  background-color: var(--primary);
  border-radius: 0.25rem;
  display: inline-block;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

#pricing-701 .cs-button-solid:before {
  content: "";
  position: absolute;
  height: 100%;
  width: 0%;
  background: #000;
  opacity: 1;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: 0.25rem;
  transition: width 0.3s;
}

#pricing-701 .cs-button-solid:hover:before {
  width: 100%;
}

#pricing-701 .cs-price-button {
  margin-top: auto;
  width: 100%;
  border-radius: 0;
}

#pricing-701 .cs-price-button:before {
  border-radius: 0;
}

/* =========================
   Toggle "Visa allt" (mobile only)
   ========================= */

#pricing-701 .cs-toggle {
  margin-top: 0.75rem;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.9;
  color: black;
}
body.dark-mode #pricing-701 .cs-toggle {
  color: #fff;
}

/* Desktop: always expanded, no toggle */
@media (min-width: 48rem) {
  #pricing-701 .cs-card-group {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }

  #pricing-701 .cs-ul-more {
    display: flex !important;
  }

  #pricing-701 .cs-toggle {
    display: none;
  }
}

/* Mobile: collapsed by default */
@media (max-width: 47.999rem) {
  #pricing-701 .cs-ul-more {
    display: none;
  }

  #pricing-701 .cs-item.is-expanded .cs-ul-more {
    display: flex;
  }
}

/* Toggle color inside popular card */
#pricing-701 .cs-item.cs-popular .cs-toggle {
  color: #fff;
  opacity: 0.95;
}

/* =========================
   Dark Mode
   ========================= */

body.dark-mode #pricing-701 {
  background-color: rgba(0, 0, 0, 0.2);
}

body.dark-mode #pricing-701 .cs-topper {
  color: var(--darkmodeTopper);
}

body.dark-mode #pricing-701 .cs-title,
body.dark-mode #pricing-701 .cs-text,
body.dark-mode #pricing-701 .cs-item-p,
body.dark-mode #pricing-701 .cs-package,
body.dark-mode #pricing-701 .cs-li,
body.dark-mode #pricing-701 .cs-price,
body.dark-mode #pricing-701 .cs-desc,
body.dark-mode #pricing-701 .cs-plan {
  color: var(--bodyTextColorWhite);
}

body.dark-mode #pricing-701 .cs-text {
  opacity: 0.8;
}

body.dark-mode #pricing-701 .cs-item {
  background-color: var(--medium);
}

body.dark-mode #pricing-701 .cs-item.cs-popular {
  background-color: var(--primary);
}

body.dark-mode #pricing-701 .cs-icon {
  filter: grayscale(1) brightness(1000%);
}

body.dark-mode #pricing-701 .cs-price-button {
  background-color: var(--bodyTextColorWhite);
  color: #1a1a1a;
  transition: color 0.3s;
}

body.dark-mode #pricing-701 .cs-price-button:hover {
  color: #fff;
}

/* Desktop: add a seam gap between core + more so "Webbhotell" doesn't hug "Företagsmail" */
#pricing-701 .cs-ul.cs-ul-core > .cs-li:last-child {
  margin-bottom: 0.75rem; /* tweak: 0.5rem–1rem */
}
#pricing-701 .cs-price-button {
  margin-top: 0.5rem; /* small visual breathing room */
}

/* Subtle divider between header content and feature list */
#pricing-701 .cs-item > .cs-ul:first-of-type {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eff1f0;
}

/* TOOLTIP CODE */

.tooltip-trigger {
  position: relative;
  text-decoration: underline dotted;
  cursor: pointer;
  text-underline-offset: 3px;
}

/* Tooltip styling */
.tooltip-text {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 6px 8px;
  border-radius: 5px;
  position: absolute;
  z-index: 10;
  bottom: 110%;
  left: 75%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  width: max-content;
  max-width: 300px;
}

/* Show tooltip on hover (desktop only) */
.tooltip-trigger:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Fix for touch devices (tap instead of hover) */
@media (max-width: 768px) {
  .tooltip-text {
    pointer-events: none; /* Prevents permanent tooltip visibility */
  }
}

/* 4th option */

/*-- -------------------------- -->
<---            CTA             -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #cta-1072 {
    padding: var(--sectionPadding);
    background-color: var(--primary);
    position: relative;
    z-index: 1;
  }
  #cta-1072 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #cta-1072 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #cta-1072 .cs-flex {
    max-width: 39.375rem;
  }

  #cta-1072 .cs-title {
    margin: 0;

    color: var(--bodyTextColorWhite);
  }
  #cta-1072 .cs-button-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  #cta-1072 .cs-button-solid {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #fff;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: var(--primary);
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
  }
  #cta-1072 .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #ffffff;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }
  #cta-1072 .cs-button-solid:hover {
    color: black;
  }
  #cta-1072 .cs-button-solid:hover:before {
    width: 100%;
  }
  #cta-1072 .cs-button-transparent {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #fff;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: transparent;
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
    transition: color 0.3s;
  }
  #cta-1072 .cs-button-transparent:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #fff;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }
  #cta-1072 .cs-button-transparent:after {
    /* border */
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: transparent;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
    border: 1px solid #fff;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
    pointer-events: none;
  }
  #cta-1072 .cs-button-transparent:hover {
    color: black;
  }
  #cta-1072 .cs-button-transparent:hover:before {
    width: 100%;
  }
  #cta-1072 .cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #cta-1072 .cs-background:before {
    /* background color overlay */
    content: "";
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #1a1a1a;
    opacity: 0.5;
    top: 0;
    left: 0;
    z-index: 1;
  }
  #cta-1072 .cs-background img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* Makes img tag act as a background image */
    object-fit: cover;
  }
}

/* VIDEO BANNER CODE */
/* Make background VIDEO behave like the old background IMG */
#cta-1072 .cs-background {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0; /* shorthand for top/left/right/bottom:0 */
  z-index: -1;
  display: block;
}

/* Apply the same "cover" rules to video */
#cta-1072 .cs-background video,
#cta-1072 video.cs-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay should still sit above the media */
#cta-1072 .cs-background:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  opacity: 0.5;
  z-index: 1;
}
