.plmc-cta {
  --plmc-accent: #ff2d55;
  --plmc-text: #202020;
  --plmc-muted: #6f6f6f;
  --plmc-border: #e8e8e8;
  color: var(--plmc-text);
  background: #fff;
  border: 1px solid var(--plmc-border);
  border-top: 4px solid var(--plmc-accent);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  font-family: inherit;
  margin: 24px 0;
  padding: 24px;
}

.plmc-cta * {
  box-sizing: border-box;
}

.plmc-cta__media {
  margin: -6px 0 18px;
}

.plmc-cta__image {
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 320px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.plmc-cta__mark {
  color: var(--plmc-accent);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.plmc-cta__title {
  color: var(--plmc-text);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 10px;
}

.plmc-cta__body {
  color: var(--plmc-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 0 0 18px;
}

.plmc-cta__button {
  align-items: center;
  background: var(--plmc-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.3;
  min-height: 46px;
  padding: 12px 22px;
  text-decoration: none;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.plmc-cta__button:hover,
.plmc-cta__button:focus {
  color: #fff;
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.plmc-cta--sidebar {
  margin: 18px 0;
  padding: 18px;
}

.plmc-cta--sidebar .plmc-cta__title {
  font-size: 1.2rem;
}

.plmc-cta--sidebar .plmc-cta__body {
  font-size: 0.9rem;
}

.plmc-cta--sidebar .plmc-cta__button {
  display: flex;
  width: 100%;
}

.plmc-cta--top {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto;
}

.plmc-cta--top .plmc-cta__mark,
.plmc-cta--top .plmc-cta__title,
.plmc-cta--top .plmc-cta__body {
  grid-column: 1;
}

.plmc-cta--top .plmc-cta__button {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.plmc-sheet[hidden] {
  display: none;
}

.plmc-sheet {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 99999;
}

.plmc-sheet__backdrop {
  background: transparent;
  border: 0;
  inset: 0;
  padding: 0;
  position: absolute;
}

.plmc-sheet__panel {
  background: #fff;
  border: 0;
  border-radius: 12px;
  bottom: 24px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
  left: auto;
  max-width: 620px;
  overflow: visible;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  right: 24px;
  transform: translateY(24px);
  transition: transform 0.18s ease;
  width: min(calc(100vw - 48px), 560px);
  opacity: 0;
}

.plmc-sheet.is-open .plmc-sheet__panel {
  opacity: 1;
  transform: translateY(0);
}

.plmc-sheet__close {
  align-items: center;
  background: #111;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  top: -18px;
  width: 38px;
  z-index: 2;
}

.plmc-cta--sheet-inner {
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  box-shadow: none;
  margin: 0;
  padding: 28px 56px 28px 28px;
}

.plmc-cta--sheet-inner.plmc-cta--has-image {
  align-items: start;
  display: grid;
  column-gap: 22px;
  grid-template-areas:
    "media mark"
    "media title"
    "media body"
    "media button";
  grid-template-columns: 176px minmax(0, 1fr);
  padding: 22px 52px 22px 22px;
  row-gap: 6px;
}

.plmc-cta--sheet-inner[hidden] {
  display: none !important;
}

.plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__media {
  align-self: center;
  grid-area: media;
  margin: 0;
}

.plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__image {
  aspect-ratio: 1;
  height: 176px;
  object-fit: cover;
  width: 176px;
}

.plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__mark {
  grid-area: mark;
  margin-bottom: 0;
}

.plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__title {
  font-size: 1.45rem;
  grid-area: title;
  margin-bottom: 0;
}

.plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__body {
  grid-area: body;
  line-height: 1.55;
  margin-bottom: 4px;
}

.plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__button {
  grid-area: button;
  justify-self: start;
}

.plmc-sheet-open {
  overflow: auto;
}

@media (max-width: 640px) {
  .plmc-cta {
    padding: 18px;
  }

  .plmc-cta__title {
    font-size: 1.38rem;
  }

  .plmc-cta__button {
    display: flex;
    width: 100%;
  }

  .plmc-cta__image {
    max-height: 220px;
  }

  .plmc-cta--top {
    display: block;
  }

  .plmc-sheet__panel {
    border-radius: 14px 14px 0 0;
    bottom: 0;
    left: 0;
    padding: 0;
    right: 0;
    width: 100%;
  }

  .plmc-cta--sheet-inner {
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    padding: 24px 18px 18px;
  }

  .plmc-cta--sheet-inner.plmc-cta--has-image {
    column-gap: 12px;
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 15px 46px 15px 14px;
    row-gap: 3px;
  }

  .plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__image {
    height: 96px;
    width: 96px;
  }

  .plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__mark {
    font-size: 0.7rem;
  }

  .plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__title {
    display: -webkit-box;
    font-size: 1.05rem;
    line-height: 1.3;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__body {
    display: -webkit-box;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 2px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .plmc-cta--sheet-inner.plmc-cta--has-image .plmc-cta__button {
    font-size: 0.84rem;
    justify-self: stretch;
    min-height: 36px;
    padding: 8px 12px;
    width: 100%;
  }

  .plmc-sheet__close {
    right: 14px;
    top: -18px;
  }
}
