/* Dialog OysKasir: lapisan final agar kontras tidak tertimpa tema lain. */
dialog#modal {
  color: #293044;
  border: 1px solid rgba(103, 92, 176, .14);
  border-radius: 22px;
  background: #fffefa;
  box-shadow: 0 28px 80px rgba(38, 36, 61, .24), inset 0 1px 0 #fff;
}

dialog#modal::backdrop {
  background: rgba(30, 35, 52, .42);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

dialog#modal .modal-head {
  min-height: 68px;
  padding: 18px 22px;
  color: #302b52;
  border-bottom: 1px solid #e9e5f3;
  background: linear-gradient(135deg, #fffefa 0%, #f8f5ff 55%, #f0edff 100%);
  box-shadow: inset 0 1px 0 #fff;
}

dialog#modal .modal-head h3,
dialog#modal #modal-title {
  margin: 0;
  color: #302b52;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: -.015em;
}

dialog#modal .modal-head .btn.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: #6559c7;
  border: 1px solid #e3def5;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 5px 14px rgba(82, 70, 150, .08), inset 0 1px 0 #fff;
}

dialog#modal .modal-head .btn.icon-btn:hover {
  color: #fff;
  border-color: #665ee8;
  background: linear-gradient(135deg, #5f68ec, #8059df);
  box-shadow: 0 9px 20px rgba(91, 82, 196, .22);
  transform: translateY(-1px);
}

dialog#modal .modal-head .btn.icon-btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

dialog#modal .modal-body {
  padding: 24px;
  color: #34394a;
  background: #fffefa;
}

dialog#modal .modal-body .sub {
  color: #687083;
  font-size: 13px;
  line-height: 1.7;
}

dialog#modal .modal-foot {
  min-height: 70px;
  padding: 14px 22px;
  border-top: 1px solid #ebe7f1;
  background: linear-gradient(180deg, #fbfaf7, #f7f4ef);
}

dialog#modal .modal-foot .btn {
  min-height: 40px;
  padding-inline: 17px;
  font-weight: 700;
}

dialog#modal .modal-foot .btn:not(.primary) {
  color: #4d5364;
  border-color: #e1dfe7;
  background: #fff;
}

dialog#modal .modal-foot .btn.primary,
dialog#modal .modal-foot .btn.primary:hover {
  color: #fff;
  border-color: #5f67e9;
  background: linear-gradient(135deg, #5f6aee, #7b58e2);
  box-shadow: 0 9px 20px rgba(86, 77, 191, .23), inset 0 1px 0 rgba(255,255,255,.2);
}

@media (max-width: 560px) {
  dialog#modal { width: calc(100vw - 24px); max-width: calc(100vw - 24px); border-radius: 18px; }
  dialog#modal .modal-head { min-height: 62px; padding: 14px 16px; }
  dialog#modal .modal-body { padding: 19px 16px; }
  dialog#modal .modal-foot { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  dialog#modal .modal-head .btn.icon-btn { transition: none; }
}
