.amcp-shell,
.amcp-shell * {
  box-sizing: border-box;
}

.amcp-shell {
  position: fixed;
  left: 50%;
  bottom: 24px;
  width: min(var(--amcp-width, 80vw), var(--amcp-max-width, 1180px));
  max-width: calc(100vw - 32px);
  transform: translate3d(-50%, 18px, 0);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
  font-family: inherit;
}

.amcp-shell.amcp-is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}

.amcp-shell.amcp-is-hidden {
  display: none;
}

.amcp-shell.amcp-is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 18px, 0);
}

.amcp-box {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 84px;
  padding: 22px 26px;
  color: var(--amcp-text, #2f343a);
  background: var(--amcp-bg, #f5f0e6);
  border: 1px solid color-mix(in srgb, var(--amcp-accent, #711b34) 28%, transparent);
  border-top: 3px solid var(--amcp-accent, #711b34);
  box-shadow: 0 22px 54px rgba(28, 22, 16, .18);
  border-radius: 5px;
}

.amcp-content {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  line-height: 1.58;
  letter-spacing: .01em;
}

.amcp-content > :first-child {
  margin-top: 0;
}

.amcp-content > :last-child {
  margin-bottom: 0;
}

.amcp-content p {
  margin: 0 0 8px;
}

.amcp-content a {
  color: var(--amcp-accent, #711b34);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.amcp-button {
  flex: 0 0 auto;
  min-width: 168px;
  min-height: 48px;
  margin: 0;
  padding: 14px 24px;
  border: 1px solid var(--amcp-button-bg, #711b34);
  border-radius: 3px;
  background: var(--amcp-button-bg, #711b34);
  color: var(--amcp-button-text, #ffffff);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-align: center;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.amcp-button:hover,
.amcp-button:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(113, 27, 52, .22);
  transform: translateY(-1px);
}

.amcp-button:focus-visible {
  outline: 2px solid var(--amcp-accent, #711b34);
  outline-offset: 3px;
}

@media (max-width: 782px) {
  .amcp-shell {
    bottom: 14px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .amcp-box {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px;
  }

  .amcp-content {
    font-size: 13px;
    line-height: 1.52;
  }

  .amcp-button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }
}

@media (max-width: 420px) {
  .amcp-box {
    padding: 16px 14px;
  }

  .amcp-content {
    font-size: 12.5px;
  }
}

@supports not (width: min(80vw, 1180px)) {
  .amcp-shell {
    width: 80vw;
    max-width: 1180px;
  }
}