/* Student-PC | About: county landing, pre-approval token error, 'Om Elev-PC' tab (body + FAQ + contact), warranty <details>. */

/* || || ABOUT SPC: About student-PC landing page || || */
.spc-about {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

.spc-about__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 796px;
  padding: 0 30px;
  box-sizing: border-box;
  color: #292c30;
  text-align: left;
}

.spc-about__header {
  display: flex;
  flex-direction: column;
}

.spc-about__header .spc-about__logo-image {
  height: 40px;
  width: auto;
  display: block;
  align-self: flex-start;
  margin: 0 auto 12px 0;
}

.spc-about__title {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin: 0;
  color: #292c30;
}

.spc-about__subtitle {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.09px;
  margin: 4px 0 0;
  color: #292c30;
}

.spc-about__section {
  display: flex;
  flex-direction: column;
}

/* Typography for CMS-rendered rich text (Designsystemet) */
.spc-about__content h1 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
  color: #292c30;
}

.spc-about__content h2,
.spc-about__content h3,
.spc-about__content h4 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.075px;
  margin: 0 0 12px;
  color: #292c30;
}

.spc-about__content p,
.spc-about__content li {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #292c30;
}

.spc-about__content p {
  margin: 0 0 12px;
}

/* The alert box centres its own icon + text via grid; don't let the prose paragraph
   styles above add a font size / bottom margin that breaks that alignment. */
.spc-about__content .spc-alert-message p {
  margin: 0;
  font-size: 16px;
}

/* Subtitle: first paragraph directly under the main title */
.spc-about__content h1 + p {
  font-size: 16px;
}

.spc-about__content ul,
.spc-about__content ol {
  margin: 0 0 12px;
  padding-left: 1.6em;
}

.spc-about__content li {
  margin-bottom: 4px;
}

.spc-about__content a {
  color: var(--link-color);
}

.spc-about__content > *:last-child {
  margin-bottom: 0;
}

/* Action buttons row */
.spc-about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* Primary button — styled from scratch so CAAS .btn-large.primary
   (uppercase, centered, 3D bottom border) doesn't apply. */
.spc-about__actions .spc-about__primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 48px;
  min-width: 0;
  width: auto;
  padding: 0 16px;
  border: none;
  border-radius: 4px;
  background: var(--komplett-yellow);
  background-image: none;
  box-shadow: none;
  color: #222;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.4px;
  line-height: 1.3;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.15s ease-in-out;
}

.spc-about__actions .spc-about__primary-button:hover {
  background: #e0a700;
  box-shadow: none;
  color: #222;
}

.spc-about__actions .spc-about__secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #c9960e;
  border-radius: 4px;
  background: transparent;
  color: #525252;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.4px;
  line-height: 1.3;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease-in-out;
}

.spc-about__actions .spc-about__secondary-link:hover,
.spc-about__actions .spc-about__secondary-link:visited,
.spc-about__actions .spc-about__secondary-link:focus {
  color: #525252;
  text-decoration: none;
}

.spc-about__actions .spc-about__secondary-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.spc-about__secondary-link-icon {
  flex-shrink: 0;
}

/* Pre-approval token error message */
.spc-token-error[hidden] {
  display: none;
}

.spc-token-error {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  background-color: #fffbe6;
  border: 1px solid var(--komplett-yellow);
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #292c30;
}

.spc-token-error__icon {
  flex-shrink: 0;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--komplett-yellow);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.spc-token-error__text > *:first-child {
  margin-top: 0;
}

.spc-token-error__text > *:last-child {
  margin-bottom: 0;
}

.spc-token-error__text p {
  margin: 0 0 8px;
}

/* || Media Phone || */
@media screen and (max-width: 599px) {
  .spc-about {
    padding: 16px 0;
  }

  .spc-about__content {
    gap: 32px;
  }

  .spc-about__content h1,
  .spc-about__title {
    font-size: 40px;
  }

  .spc-about__content h2,
  .spc-about__content h3,
  .spc-about__content h4 {
    font-size: 24px;
  }

  .spc-about__actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Let buttons grow vertically so wrapped labels don't overflow the border */
  .spc-about__actions .spc-about__primary-button,
  .spc-about__actions .spc-about__secondary-link {
    width: 100%;
    height: auto;
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
    white-space: normal;
  }

  .spc-about__actions .spc-about__secondary-link {
    justify-content: space-between;
    text-align: left;
  }
}


/* || || COMPONENTS || || */

/* || COLLAPSIBLE CONTENT (native <details>, used on the Warranties page) || */
details summary {
  display: block;
  width: 100%;
  background: #eeeeee;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
}

details summary::after {
  content: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg fill="%23000000" width="20px" height="20px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5.22 8.72a.75.75 0 000 1.06l6.25 6.25a.75.75 0 001.06 0l6.25-6.25a.75.75 0 00-1.06-1.06L12 14.44 6.28 8.72a.75.75 0 00-1.06 0z"/></svg>');
  float: right;
}

details[open] summary::after {
  transform: rotate(180deg);
  margin-top: -5px;
}

details {
  margin-bottom: 10px;
}

details[open] > div {
  padding: 10px 16px 0 16px;
  border: 2px solid #eee;
  border-top: none;
}


/* || || OM ORDNINGEN (about tab): heading + body + FAQ + contact || || */
.spc-about-tab {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 820px;
  color: #292c30;
}

#student-pc .spc-about-tab__heading {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: -0.16px;
  color: #292c30;
  margin: 0;
}

#student-pc .spc-about-tab__body,
#student-pc .spc-about-tab__body p,
#student-pc .spc-about-tab__body li {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.105px;
  color: #292c30;
}

#student-pc .spc-about-tab__body h2,
#student-pc .spc-about-tab__body h3 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: #292c30;
}

#student-pc .spc-about-tab__body ul {
  margin: 0 0 12px;
  padding-left: 1.6em;
}

#student-pc .spc-about-tab__body li {
  list-style: disc;
  margin-bottom: 4px;
}

.spc-about-tab__body > *:first-child {
  margin-top: 0;
}

.spc-about-tab__body > *:last-child {
  margin-bottom: 0;
}

/* FAQ accordion (native details) */
.spc-faq {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.spc-faq__item {
  border-top: 1px solid #bbbcbd;
  margin-bottom: 0;
}

.spc-faq__item:last-child {
  border-bottom: 1px solid #bbbcbd;
}

.spc-faq__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  list-style: none;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #292c30;
}

/* Override the legacy generic `details summary` styling */
.spc-faq__summary::-webkit-details-marker {
  display: none;
}

.spc-faq__summary::after {
  content: none;
}

.spc-faq__item[open] > .spc-faq__summary {
  background: #f2eeed;
}

.spc-faq__question {
  flex: 1 0 0;
  min-width: 0;
}

.spc-faq__chevron {
  flex-shrink: 0;
  color: #292c30;
  transition: transform 0.15s ease-in-out;
}

.spc-faq__item[open] > .spc-faq__summary .spc-faq__chevron {
  transform: rotate(180deg);
}

.spc-faq__answer,
.spc-faq__item[open] > .spc-faq__answer {
  border: none;
  padding: 0 16px 20px;
}

#student-pc .spc-faq__answer,
#student-pc .spc-faq__answer p,
#student-pc .spc-faq__answer li {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.08px;
  color: #292c30;
  margin-top: 24px;
}

.spc-faq__answer > *:first-child {
  margin-top: 0;
}

.spc-faq__answer > *:last-child {
  margin-bottom: 0;
}

/* Contact card */
.spc-contact-card {
  width: 100%;
  border: 1px solid #bbbcbd;
  border-radius: 8px;
  padding: 20px 24px;
  box-sizing: border-box;
}

#student-pc .spc-contact-card__title {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: #292c30;
  margin: 0 0 8px;
}

#student-pc .spc-contact-card__body,
#student-pc .spc-contact-card__body p {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #292c30;
  margin: 0;
}

.spc-modal__cart-footer {
  margin-top: 1em;
  text-align: center;
}

.spc-insurance__loader {
  font-size: 14px;
}

.spc-insurance__loader--spinner {
  height: 24px;
  width: 24px;
}

