/*
 * The "are you sure" box. Shares .modal_backdrop_div with the time picker and
 * the upload preview, which already centres what it holds in both directions.
 */
.confirm_dialog_div {
  width: 100%;
  max-width: 380px;
  background-color: var(--surface_container_lowest_color);
  border: 1px solid var(--border_color);
  border-top: 8px solid var(--secondary_color);
  box-shadow: var(--shadow_strong);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  outline: none;
  animation: confirm_dialog_appear 0.16s ease;
}
@keyframes confirm_dialog_appear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .confirm_dialog_div {
    animation: none;
  }
}

.confirm_title_text {
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
}
.confirm_body_text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text_secondary_color);
}

.confirm_actions_div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.confirm_button {
  padding: 12px 20px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: 0.2s ease;
}
/* Cancel is the way out and reads as the quieter of the two */
.confirm_cancel_button {
  background-color: var(--surface_container_color);
  color: var(--text_secondary_color);
  border: 1px solid var(--border_strong_color);
}
.confirm_cancel_button:hover {
  color: var(--text_primary_color);
  border-color: var(--text_tertiary_color);
}
.confirm_accept_button {
  background-color: var(--secondary_color);
  color: #ffffff;
  border: 1px solid var(--secondary_color);
}
.confirm_accept_button:hover {
  filter: brightness(1.1);
}

/* On a phone the two buttons share the width instead of hugging the corner */
@media (max-width: 555px) {
  .confirm_dialog_div {
    padding: 20px;
  }
  .confirm_title_text {
    font-size: 16px;
  }
  .confirm_body_text {
    font-size: 12px;
  }
  .confirm_actions_div {
    gap: 8px;
  }
  .confirm_button {
    flex: 1;
    padding: 14px 12px;
  }
}
