.kito-embed-offer {
  margin: 22px 0 30px;
  scroll-margin-top: 116px;
  overflow: hidden;
  border: 1px solid var(--color-border, #dce5f2);
  border-radius: 16px;
  background: var(--color-surface, #fff);
  color: var(--color-text, #172b4d);
  box-shadow: 0 8px 28px rgba(24, 57, 112, .055);
}

.kito-embed-offer > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 15px 18px;
  list-style: none;
  cursor: pointer;
}

.kito-embed-offer > summary::-webkit-details-marker,
.kito-embed-offer__resize > summary::-webkit-details-marker {
  display: none;
}

.kito-embed-offer > summary::marker,
.kito-embed-offer__resize > summary::marker {
  content: '';
}

.kito-embed-offer > summary:hover {
  background: rgba(36, 99, 235, .035);
}

.kito-embed-offer > summary:focus-visible,
.kito-embed-offer__resize > summary:focus-visible,
.kito-embed-offer__code button:focus-visible {
  outline: 3px solid #80a8ff;
  outline-offset: -3px;
}

.kito-embed-offer__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #eaf1ff;
  color: #2359d4;
}

.kito-embed-offer__icon svg {
  width: 23px;
  height: 23px;
}

.kito-embed-offer__heading {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px;
  line-height: 1.35;
}

.kito-embed-offer__heading strong {
  font-size: .98rem;
  font-weight: 750;
}

.kito-embed-offer__heading small {
  color: var(--color-text-secondary, #60728a);
  font-size: .79rem;
}

.kito-embed-offer__action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 13px;
  border-radius: 9px;
  background: #eaf1ff;
  color: #1550c6;
  font-size: .8rem;
  font-weight: 750;
  white-space: nowrap;
}

.kito-embed-offer__action svg {
  width: 15px;
  height: 15px;
  transition: transform .2s ease;
}

.kito-embed-offer[open] .kito-embed-offer__action svg {
  transform: rotate(180deg);
}

.kito-embed-offer__body {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--color-border, #dce5f2);
}

.kito-embed-offer__body p {
  margin: 0 0 12px;
  color: var(--color-text-secondary, #596b83);
  font-size: .86rem;
  line-height: 1.55;
}

.kito-embed-offer__guide a {
  color: #2359d4;
  font-weight: 700;
  text-decoration: none;
}

.kito-embed-offer__guide a:hover {
  text-decoration: underline;
}

.kito-embed-offer__theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: .84rem;
  cursor: pointer;
}

.kito-embed-offer__theme input {
  accent-color: #2359d4;
}

.kito-embed-offer__code {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.kito-embed-offer__code pre {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 180px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--color-border, #dce5f2);
  border-radius: 10px;
  background: var(--color-bg-secondary, #f3f6fb);
  color: var(--color-text, #172b4d);
  font-size: .75rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.kito-embed-offer__code button {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid #2359d4;
  border-radius: 9px;
  background: #2359d4;
  color: #fff;
  font: inherit;
  font-size: .79rem;
  font-weight: 700;
  cursor: pointer;
}

.kito-embed-offer__code button:hover {
  background: #1746af;
}

.kito-embed-offer__body .kito-embed-offer__credit-note {
  margin: 7px 0 0;
  font-size: .76rem;
}

.kito-embed-offer__resize {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--color-border, #dce5f2);
}

.kito-embed-offer__resize > summary {
  width: fit-content;
  color: #2359d4;
  font-size: .84rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.kito-embed-offer__resize > summary::before {
  content: '+';
  display: inline-block;
  width: 16px;
  font-size: 1rem;
}

.kito-embed-offer__resize[open] > summary::before {
  content: '−';
}

.kito-embed-offer__resize p {
  margin-top: 10px;
}

html[data-theme='dark'] .kito-embed-offer__icon,
html[data-theme='dark'] .kito-embed-offer__action {
  background: #17366c;
  color: #bdd3ff;
}

html[data-theme='dark'] .kito-embed-offer__resize > summary {
  color: #a8c5ff;
}

@media (max-width: 540px) {
  .kito-embed-offer > summary {
    gap: 10px;
    padding: 13px;
  }

  .kito-embed-offer__icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .kito-embed-offer__heading strong {
    font-size: .87rem;
  }

  .kito-embed-offer__heading small {
    font-size: .72rem;
  }

  .kito-embed-offer__action {
    padding: 8px;
    font-size: 0;
  }

  .kito-embed-offer__body {
    padding: 14px 13px;
  }

  .kito-embed-offer__code {
    flex-direction: column;
  }

  .kito-embed-offer__code pre {
    width: 100%;
  }
}
