/* Samme innrykk som tekstmodulen */
.cp-button-group {
  padding: var(--main-padding);
}

/* Knappene på rad */
.kl-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

/* Justering */
.kl-btn-group--left {
  justify-content: flex-start;
}

.kl-btn-group--center {
  justify-content: center;
}

.kl-btn-group--right {
  justify-content: flex-end;
}

/* Selve knappene 
.kl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.kl-btn:hover {
  text-decoration: none;
  opacity: 0.85;
}
/* Primary 
.kl-primary {
  background: #0b3b3c;
  color: #ffffff;
  border: 2px solid #0b3b3c;
}

/* Secondary 
.kl-secondary {
  background: transparent;
  color: #0b3b3c;
  border: 2px solid currentColor;
} */

a.kl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

/* Hover */
a.kl-btn:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* Primary (filled) */
a.kl-btn.kl-primary {
  background: #0b3b3c;
  color: #fff;
  border: 2px solid #0b3b3c;
}

/* Secondary (outline) */
a.kl-btn.kl-secondary {
  background: transparent;
  color: #0b3b3c;
  border: 2px solid currentColor;
}

/* Mobil – standard (alle sider) */
@media (max-width: 768px) {
  .kl-btn-group {
    flex-direction: column;
    align-items: center;
  }

  .kl-btn-group--center,
  .kl-btn-group--right {
    justify-content: center;
  }
}

/* FIX: Kun blogg (HubSpot wrapper issue) */
@media (max-width: 768px) {
  #hs_cos_wrapper_post_body .cp-button-group {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  #hs_cos_wrapper_post_body .kl-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

#hs_cos_wrapper_post_body .kl-btn-group a.kl-btn {
  display: block;
  width: fit-content;
  max-width: calc(100vw - 80px);
  padding: 12px 24px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: center;
  line-height: 1.4;
}