/* Calendar choices inherit the invitation's rose, paper and font variables. */
.rp-calendar-dialog {
  position: fixed;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  margin: auto;
  padding: 30px 26px 26px;
  overflow: auto;
  border: 1px solid var(--rp-gold-soft, #ead4a6);
  border-radius: 18px;
  background: var(--rp-paper, #fcf4f1);
  color: var(--rp-ink, #4a2a31);
  box-shadow: 0 18px 70px rgb(45 20 27 / 24%);
  font-family: var(--rp-sans, Arial, sans-serif);
  text-align: center;
}

.rp-calendar-dialog::backdrop {
  background: rgb(38 16 25 / 62%);
}

.rp-calendar-dialog h2 {
  margin: 0 24px 8px;
  font-family: var(--rp-serif, Georgia, serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
}

.rp-calendar-event {
  margin: 0 0 23px;
  color: var(--rp-ink-soft, #6f5057);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.rp-calendar-dialog .rp-calendar-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font:
    26px/1 Arial,
    sans-serif;
  cursor: pointer;
}

.rp-calendar-choices {
  display: grid;
  gap: 11px;
}

.rp-calendar-dialog .rp-calendar-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
  min-height: 48px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--rp-rose, #8a4a55);
  border-radius: 10px;
  color: var(--rp-rose-deep, #5f2b36);
  background: transparent;
  font: 500 14px/1.45 var(--rp-sans, Arial, sans-serif);
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.rp-calendar-dialog .rp-calendar-google {
  background: var(--rp-rose-deep, #5f2b36);
  border-color: var(--rp-rose-deep, #5f2b36);
  color: var(--rp-ivory, #fffaf6);
}

.rp-calendar-choice small {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}

.rp-calendar-dialog :is(button, a):focus-visible {
  outline: 3px solid var(--rp-gold-deep, #a07a36);
  outline-offset: 3px;
}

@media (hover: hover) {
  .rp-calendar-close:hover,
  .rp-calendar-download:hover {
    background: var(--rp-blush, #f6e2dc);
  }

  .rp-calendar-google:hover {
    opacity: 0.93;
  }
}

@media (max-width: 360px) {
  .rp-calendar-dialog {
    padding: 28px 16px 20px;
  }

  .rp-calendar-dialog h2 {
    font-size: 29px;
  }
}
