.hs-kbox {
  position: relative;
  border: 2px solid var(--hs-kbox-accent, #c73b32);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  max-width: 100%;
  grid-column: 1 / span 9 !important;
  display: grid !important;
  grid-template-columns: subgrid;
}

.hs-kbox-label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 14px 15px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border-bottom-right-radius: 22px;
  z-index: 3;
  background: var(--hs-kbox-accent, #c73b32);
}

.hs-kbox-inner {
    display: grid;
    gap: 0;
    grid-template-columns: subgrid;
    min-height: 220px;
    grid-column: 1 / span 9;
}

.hs-kbox-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0px 18px;
    grid-column: 1 / span 2;
}

.hs-kbox-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hs-kbox-mid {
    padding: 34px 20px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-column: 3 / span 5;
}

.hs-kbox-title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
}

.hs-kbox-text {
  font-size: 18px;
  line-height: 1.45;
  color: #333;
  margin: 0 0 14px;
}

.hs-kbox-text p { margin: 0 0 10px; }
.hs-kbox-text p:last-child { margin-bottom: 0; }

.hs-kbox-code-right {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}
.hs-kbox-code-right strong {
  font-size: 18px;
}

.hs-kbox-actions {
  margin-top: 18px;
}

/* Action: Logo links neben Button (außerhalb) */
.hs-kbox-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
}

.hs-kbox-action-logo {
  max-height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}


.hs-kbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
    border-radius: 20px;
  background: #9F8273;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: transform .08s ease, opacity .08s ease;
  max-width: 100%;
}
.hs-kbox-btn:hover { opacity: .92; transform: translateY(-1px); }
.hs-kbox-btn:active { transform: translateY(0); }


.hs-kbox-right {
    background: var(--hs-kbox-panel, #f7e9e9);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    grid-column: 8 / span 2;
}

.hs-kbox-logo img {
  max-width: 160px;
  height: auto;
  object-fit: contain;
  display: block;
}

.hs-kbox-rabatt {
  font-size: 20px;
  font-weight: 800;
  color: var(--hs-kbox-accent, #c73b32);
  margin-top: 14px;
}

/* Gutscheincode Copy */
.hs-kbox-code-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  color: #333;
  align-items: center;
}

.hs-kbox-code-label {
  font-size: 14px;
  opacity: .85;
}

/* Klickbarer Bereich */
.hs-kbox-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 6px;
}

.hs-kbox-code-copy:hover {
  background: rgba(0,0,0,0.05);
}

/* Copy Icon (CSS only) */
.hs-kbox-code-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.hs-kbox-code-icon::before,
.hs-kbox-code-icon::after {
  content: '';
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.hs-kbox-code-icon::before {
  width: 12px;
  height: 14px;
  left: 4px;
  top: 2px;
}

.hs-kbox-code-icon::after {
  width: 12px;
  height: 14px;
  left: 0;
  top: 0;
  background: transparent;
}

/* Code Text */
.hs-kbox-code-text {
  font-size: 18px;
  letter-spacing: 0.04em;
}

/* Feedback */
.hs-kbox-code-hint {
  font-size: 13px;
  color: var(--hs-kbox-accent, #c73b32);
  opacity: 0;
  transition: opacity .15s ease;
}

.hs-kbox-code-right.is-copied .hs-kbox-code-hint {
  opacity: 1;
}


/* Responsive */
@media (max-width: 980px) {
  .hs-kbox-inner {
    grid-template-columns: 1fr;
  }
  .hs-kbox-left {
    padding-top: 64px; /* Platz für Label */
  }
  .hs-kbox-mid {
    padding-top: 18px;
  }
  .hs-kbox-title {
    font-size: 28px;
  }
  .hs-kbox-right {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }
  .hs-kbox-rabatt { font-size: 28px; }
}
