/*
 * Gratis-Hjemmeside legacy shortcode styles.
 * Scoped to the shortcode component class names to minimize theme conflicts.
 */

  .ghdk-card,
  .ghdk-card * {
    box-sizing: border-box;
  }

  .ghdk-card {
    width: 100%;
    max-width: 560px;
    margin: 28px auto;
    font-family: Arial, Helvetica, sans-serif;
    background: transparent;
  }

  .ghdk-inner {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 26px;
    background:
      radial-gradient(circle at 12% 0%, rgba(236, 65, 117, 0.15), transparent 32%),
      radial-gradient(circle at 90% 8%, rgba(0, 34, 68, 0.12), transparent 30%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 249, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
      0 20px 55px rgba(13, 24, 45, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .ghdk-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle, rgba(0, 34, 68, 0.16) 1px, transparent 1.5px),
      radial-gradient(circle, rgba(236, 65, 117, 0.14) 1px, transparent 1.5px);
    background-size: 42px 42px, 64px 64px;
    background-position: 0 0, 24px 20px;
    opacity: 0.22;
    pointer-events: none;
  }

  .ghdk-ribbon {
    position: absolute;
    top: 18px;
    right: -42px;
    z-index: 2;
    width: 170px;
    padding: 8px 0;
    text-align: center;
    transform: rotate(35deg);
    background: linear-gradient(135deg, #ec4175, #ff6d99);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(236, 65, 117, 0.28);
  }

  .ghdk-content {
    position: relative;
    z-index: 1;
  }

  .ghdk-logo-box {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(232,237,241,0.92));
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  }

  .ghdk-logo-box img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .ghdk-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(231, 237, 240, 0.95);
    box-shadow: 0 10px 22px rgba(13, 24, 45, 0.07);
  }

  .ghdk-score {
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    color: #061f3f;
    letter-spacing: -0.05em;
  }

  .ghdk-stars {
    display: flex;
    gap: 4px;
    margin-top: 8px;
  }

  .ghdk-stars span {
    width: 14px;
    height: 14px;
    display: block;
    background: linear-gradient(135deg, #ffc247, #f59d18);
    clip-path: polygon(
      50% 0%,
      61% 35%,
      98% 35%,
      68% 56%,
      79% 91%,
      50% 70%,
      21% 91%,
      32% 56%,
      2% 35%,
      39% 35%
    );
    filter: drop-shadow(0 2px 2px rgba(245, 157, 24, 0.22));
  }

  .ghdk-score-text {
    font-size: 11px;
    color: #647386;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .ghdk-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .ghdk-title {
    margin: 0;
    color: #061f3f;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .ghdk-tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(236, 65, 117, 0.11);
    border: 1px solid rgba(236, 65, 117, 0.2);
    color: #d92f65;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }

  .ghdk-desc {
    margin: 0 0 15px;
    color: #47576a;
    font-size: 14px;
    line-height: 1.55;
  }

  .ghdk-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .ghdk-benefit {
    position: relative;
    min-height: 82px;
    padding: 13px 10px;
    border-radius: 18px;
    background: rgba(237, 247, 247, 0.9);
    border: 1px solid rgba(213, 230, 230, 0.95);
    text-align: center;
  }

  .ghdk-benefit::before {
    content: "";
    display: block;
    width: 24px;
    height: 4px;
    border-radius: 999px;
    margin: 0 auto 9px;
    background: linear-gradient(90deg, #002244, #ec4175);
    opacity: 0.85;
  }

  .ghdk-benefit strong {
    display: block;
    margin-bottom: 4px;
    color: #061f3f;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 900;
  }

  .ghdk-benefit span {
    display: block;
    color: #526579;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
  }

  .ghdk-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 62px;
    padding: 17px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff5b8e, #ec4175 50%, #ca2459);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.01em;
    box-shadow:
      0 16px 34px rgba(236, 65, 117, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.18s ease;
    animation: ghdkPulse 2.4s infinite;
  }

  .ghdk-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.45),
      transparent
    );
    transform: skewX(-20deg);
    animation: ghdkShine 3.1s infinite;
    pointer-events: none;
    z-index: 1;
  }

  .ghdk-cta::after {
    content: "";
    width: 11px;
    height: 11px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform: rotate(45deg);
    margin-left: 2px;
    position: relative;
    z-index: 2;
    transition: transform 0.22s ease;
  }

  .ghdk-cta span {
    position: relative;
    z-index: 2;
  }

  .ghdk-cta:hover {
    transform: translateY(-2px) scale(1.015);
    filter: brightness(1.04);
    box-shadow:
      0 20px 42px rgba(236, 65, 117, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
  }

  .ghdk-cta:hover::after {
    transform: rotate(45deg) translate(4px, -4px);
  }

  .ghdk-cta:active {
    transform: translateY(0) scale(0.99);
  }

  .ghdk-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 13px;
    color: #708092;
    font-size: 12px;
    font-style: italic;
  }

  .ghdk-bottom-line {
    width: 28px;
    height: 1px;
    background: rgba(112, 128, 146, 0.35);
  }

  @keyframes ghdkPulse {
    0%, 100% {
      box-shadow:
        0 16px 34px rgba(236, 65, 117, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }

    50% {
      box-shadow:
        0 18px 46px rgba(236, 65, 117, 0.66),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    }
  }

  @keyframes ghdkShine {
    0% {
      left: -80%;
    }

    55%, 100% {
      left: 135%;
    }
  }

  @media (max-width: 560px) {
    .ghdk-card {
      margin: 20px auto;
    }

    .ghdk-inner {
      padding: 14px;
      border-radius: 22px;
    }

    .ghdk-ribbon {
      top: 13px;
      right: -48px;
      font-size: 10px;
    }

    .ghdk-logo-box {
      min-height: 72px;
      padding: 12px 14px;
      margin-bottom: 10px;
      border-radius: 17px;
    }

    .ghdk-logo-box img {
      max-width: 270px;
    }

    .ghdk-rating-row {
      padding: 11px 14px;
      margin-bottom: 13px;
      border-radius: 16px;
    }

    .ghdk-score {
      font-size: 25px;
    }

    .ghdk-stars {
      margin-top: 6px;
    }

    .ghdk-title-row {
      display: block;
      margin-bottom: 8px;
    }

    .ghdk-title {
      font-size: 21px;
      margin-bottom: 8px;
    }

    .ghdk-tag {
      padding: 7px 10px;
      font-size: 12px;
    }

    .ghdk-desc {
      font-size: 13.5px;
      line-height: 1.45;
      margin-bottom: 12px;
    }

    .ghdk-benefits {
      grid-template-columns: repeat(3, 1fr);
      gap: 7px;
      margin-bottom: 13px;
    }

    .ghdk-benefit {
      min-height: 54px;
      padding: 9px 5px;
      border-radius: 14px;
    }

    .ghdk-benefit::before {
      width: 20px;
      height: 3px;
      margin-bottom: 6px;
    }

    .ghdk-benefit strong {
      margin-bottom: 2px;
      font-size: 13.5px;
      white-space: nowrap;
    }

    .ghdk-benefit span {
      font-size: 10.5px;
      line-height: 1.2;
    }

    .ghdk-cta {
      min-height: 56px;
      padding: 15px 20px;
      font-size: 17px;
      border-radius: 16px;
    }

    .ghdk-bottom {
      margin-top: 10px;
    }
  }

  @media (max-width: 380px) {
    .ghdk-benefits {
      gap: 6px;
    }

    .ghdk-benefit {
      padding: 8px 4px;
    }

    .ghdk-benefit strong {
      font-size: 12.5px;
    }

    .ghdk-benefit span {
      font-size: 10px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .ghdk-cta,
    .ghdk-cta::before {
      animation: none;
    }

    .ghdk-cta,
    .ghdk-cta::after {
      transition: none;
    }
  }

/* Container til at holde kortene side om side på desktop og under hinanden på mobil */
.ai-comp-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Selve kortet */
.ai-comp-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ai-comp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Fremhævet kort (Førstevalg) */
.ai-comp-highlight {
  border: 2px solid #3b82f6;
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.15);
}

.ai-comp-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Logo styring */
.ai-comp-logo {
  height: 60px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-comp-logo img {
  max-height: 100%;
  max-width: 150px;
  object-fit: contain;
}

.ai-comp-logo-placeholder {
  display: none; /* Vises kun hvis billedet ikke loader (styres via onerror i HTML) */
  background: #f3f4f6;
  color: #6b7280;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.2rem;
}

.ai-comp-title {
  text-align: center;
  font-size: 1.4rem;
  color: #111827;
  margin: 0 0 10px 0;
}

.ai-comp-price {
  text-align: center;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 20px;
  line-height: 1.5;
}

.ai-comp-price span {
  font-weight: 600;
  color: #111827;
}

.ai-comp-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.ai-comp-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Grønt flueben før hver feature */
.ai-comp-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.1rem;
}

/* CTA Knapper */
.ai-comp-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: #f3f4f6;
  color: #111827;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ai-comp-btn-primary {
  background: #3b82f6;
  color: #ffffff;
}

.ai-comp-btn:hover {
  background: #e5e7eb;
}

.ai-comp-btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* JS Ripple Effekt Element */
.ai-comp-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ai-ripple-animation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4);
}

@keyframes ai-ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.ghdk-sticky-footer,
.ghdk-sticky-footer * {
  box-sizing: border-box;
}

.ghdk-sticky-footer {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 99999;
  width: calc(100% - 24px);
  max-width: 980px;
  transform: translateX(-50%);
  font-family: Arial, Helvetica, sans-serif;
  transition: transform 0.28s ease, opacity 0.22s ease;
}

.ghdk-sticky-footer.is-hidden {
  transform: translateX(-50%) translateY(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
}

.ghdk-sticky-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(236, 65, 117, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 249, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 16px 42px rgba(13, 24, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ghdk-sticky-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  min-height: 48px;
  padding: 7px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 237, 240, 0.95);
  text-decoration: none;
}

.ghdk-sticky-logo img {
  display: block;
  width: 100%;
  max-width: 98px;
  height: auto;
}

.ghdk-sticky-copy {
  min-width: 0;
}

.ghdk-sticky-topline {
  display: inline-flex;
  align-items: center;
  margin-bottom: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(236, 65, 117, 0.11);
  color: #d92f65;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ghdk-sticky-title {
  color: #061f3f;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ghdk-sticky-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 8px 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(231, 237, 240, 0.95);
}

.ghdk-sticky-rating strong {
  color: #061f3f;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
}

.ghdk-sticky-rating span {
  margin-top: 3px;
  color: #647386;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ghdk-sticky-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff5b8e, #ec4175 52%, #ca2459);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  box-shadow:
    0 12px 26px rgba(236, 65, 117, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.18s ease;
  animation: ghdkStickyPulse 2.4s infinite;
}

.ghdk-sticky-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  animation: ghdkStickyShine 3.1s infinite;
  pointer-events: none;
  z-index: 1;
}

.ghdk-sticky-cta span {
  position: relative;
  z-index: 2;
}

.ghdk-sticky-cta:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.04);
  box-shadow:
    0 16px 34px rgba(236, 65, 117, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.ghdk-sticky-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 31, 63, 0.08);
  color: #526579;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.ghdk-sticky-close:hover {
  background: rgba(6, 31, 63, 0.14);
  color: #061f3f;
}

.ghdk-sticky-open {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5b8e, #ec4175 52%, #ca2459);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(236, 65, 117, 0.35);
  animation: ghdkOpenTabPulse 2.6s infinite;
}

.ghdk-sticky-open.is-visible {
  display: inline-flex;
}

@keyframes ghdkStickyPulse {
  0%, 100% {
    box-shadow:
      0 12px 26px rgba(236, 65, 117, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  50% {
    box-shadow:
      0 15px 36px rgba(236, 65, 117, 0.58),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }
}

@keyframes ghdkStickyShine {
  0% {
    left: -80%;
  }

  55%, 100% {
    left: 135%;
  }
}

@keyframes ghdkOpenTabPulse {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@media (max-width: 720px) {
  .ghdk-sticky-footer {
    bottom: 10px;
    width: calc(100% - 16px);
  }

  .ghdk-sticky-inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .ghdk-sticky-logo {
    width: 74px;
    min-height: 42px;
    padding: 6px 8px;
    border-radius: 13px;
  }

  .ghdk-sticky-logo img {
    max-width: 62px;
  }

  .ghdk-sticky-copy {
    max-width: 100%;
  }

  .ghdk-sticky-topline {
    display: none;
  }

  .ghdk-sticky-title {
    font-size: 12.5px;
    line-height: 1.2;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ghdk-sticky-rating {
    display: none;
  }

  .ghdk-sticky-cta {
    min-height: 42px;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 13px;
  }

  .ghdk-sticky-close {
    position: absolute;
    top: -10px;
    right: -4px;
    min-height: 24px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(13, 24, 45, 0.16);
    font-size: 10px;
  }

  .ghdk-sticky-open {
    left: 10px;
    bottom: 10px;
    min-height: 38px;
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .ghdk-sticky-logo {
    display: none;
  }

  .ghdk-sticky-inner {
    grid-template-columns: 1fr auto;
  }

  .ghdk-sticky-title {
    font-size: 12px;
  }

  .ghdk-sticky-cta {
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghdk-sticky-footer,
  .ghdk-sticky-cta,
  .ghdk-sticky-cta::before,
  .ghdk-sticky-open {
    animation: none;
    transition: none;
  }
}
