/* The dialog element fills the viewport (padding 0) so a backdrop click targets
   the dialog itself. The white panel is the inner box, so clicks inside it do not. */
.tt-confirm {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  color: #222;
}

.tt-confirm[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-confirm::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.tt-confirm .tt-confirm-box {
  background: #fff;
  width: 92%;
  max-width: 520px;
  padding: 30px 34px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.tt-confirm .tt-confirm-question {
  margin: 0;
  line-height: 1.5;
}

.tt-confirm .tt-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tt-confirm .tt-confirm-actions button {
  font: inherit;
  padding: 8px 16px;
  cursor: pointer;
  box-sizing: border-box;
}

/* input.yel / #form input.yel do not reach a button outside #form. Match the
   theme primary: yellow fill, ink text, deep-yellow border, black on hover. */
.tt-confirm button.yel {
  background-color: #fee600;
  color: #111;
  border: 1px solid #d9c400;
  font-weight: 700;
}

.tt-confirm button.yel:hover,
.tt-confirm button.yel:focus {
  background-color: #000;
  color: #fff;
}

.tt-confirm button.tt-confirm-cancel {
  background: #fff;
  color: #222;
  border: 1px solid #d6d6d6;
}

.tt-confirm button.tt-confirm-cancel:hover,
.tt-confirm button.tt-confirm-cancel:focus {
  background: #f4f4f4;
}

@media (max-width: 600px) {
  .tt-confirm .tt-confirm-box {
    width: calc(100% - 32px);
    padding: 22px 16px;
  }

  .tt-confirm .tt-confirm-actions button {
    min-height: 44px;
  }
}
