.rs_cf7_confirm {
  width: min(90%, 50rem);
  max-width: none;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: #fff;
  color: #333;
  overflow: hidden;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
}

.rs_cf7_confirm::backdrop {
  background: rgb(0 0 0 / 60%);
}

.rs_cf7_confirm__inner {
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 90dvh;
}

.rs_cf7_confirm__close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 11px;
  right: 6px;
  z-index: 2;
  width: 1.8em;
  height: 1.8em;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 18px;
  font-weight: bold;
  line-height: 0.1;
  cursor: pointer;
  appearance: none;
}

.rs_cf7_confirm__close:hover {
  background: rgb(0 0 0 / 6%);
}

.rs_cf7_confirm__close:focus-visible,
.rs_cf7_confirm__back:focus-visible,
.rs_cf7_confirm__send:focus-visible {
  outline: 0.1875rem solid currentColor;
  outline-offset: 0.1875rem;
}

.rs_cf7_confirm__title {
  flex: 0 0 auto;
  margin: 0;
  padding: 15px;
  border: none;
  border-bottom: 0.0625rem solid #ddd;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  background: none;
  color: #333;
}

.rs_cf7_confirm__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rs_cf7_confirm__list {
  display: grid;
  grid-template-columns: minmax(8rem, 30%) minmax(0, 1fr);
  margin: 0;
  border-top: 0.0625rem solid #ddd;
  border-left: 0.0625rem solid #ddd;
}

.rs_cf7_confirm__label,
.rs_cf7_confirm__value {
  margin: 0;
  padding: 1rem;
  border-right: 0.0625rem solid #ddd;
  border-bottom: 0.0625rem solid #ddd;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.rs_cf7_confirm__label {
  background: #f5f5f5;
  font-weight: 700;
}

.rs_cf7_confirm__value {
  background: #fff;
}

.rs_cf7_confirm__buttons {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 0.0625rem solid #ddd;
  background: #fff;
}

.rs_cf7_confirm__back,
.rs_cf7_confirm__send {
  min-width: 12rem;
  margin: 0;
  padding: 0.875rem 1.5rem;
  border: 0.0625rem solid #333;
  border-radius: 0.25rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  appearance: none;
}

.rs_cf7_confirm__back {
  background: #fff;
  color: #333;
}

.rs_cf7_confirm__send {
  background: #333;
  color: #fff;
}

.rs_cf7_confirm__back:hover {
  background: #f5f5f5;
}

.rs_cf7_confirm__send:hover:not(:disabled) {
  opacity: 0.8;
}

.rs_cf7_confirm__send:disabled,
.rs_cf7_confirm__send[aria-busy="true"] {
  opacity: 0.6;
  cursor: wait;
}

form[data-rs-cf7-confirm-initialized="true"] .rs_cf7_confirm__native_submit {
  display: none !important;
}

body.rs-cf7-confirm-is-open {
  overflow: hidden;
}

@media (max-width: 40rem) {
  .rs_cf7_confirm {
    width: calc(100% - 2rem);
    max-height: calc(100dvh - 2rem);
  }

  .rs_cf7_confirm__inner {
    max-height: calc(100dvh - 2rem);
  }

  .rs_cf7_confirm__title {
    padding: 1.25rem 3.75rem 1.25rem 1.25rem;
    font-size: 1.25rem;
  }

  .rs_cf7_confirm__body {
    padding: 1rem;
  }

  .rs_cf7_confirm__list {
    display: block;
    border-left: 0;
  }

  .rs_cf7_confirm__label,
  .rs_cf7_confirm__value {
    display: block;
    border-left: 0.0625rem solid #ddd;
  }

  .rs_cf7_confirm__label {
    padding-bottom: 0.625rem;
  }

  .rs_cf7_confirm__value {
    padding-top: 0.625rem;
  }

  .rs_cf7_confirm__buttons {
    flex-direction: column-reverse;
    gap: 0.75rem;
    padding: 1rem;
  }

  .rs_cf7_confirm__back,
  .rs_cf7_confirm__send {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs_cf7_confirm * {
    scroll-behavior: auto !important;
  }
}
