.vbz-confirmation-open { overflow: hidden !important; }

.vbz-confirmation-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(15 36 61 / 54%);
  backdrop-filter: blur(3px);
  animation: vbz-confirmation-fade 140ms ease-out;
}

.vbz-confirmation-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid #c9d7e6;
  border-radius: 18px;
  background: #fff;
  color: #14263a;
  box-shadow: 0 24px 70px rgb(9 30 55 / 28%);
  animation: vbz-confirmation-rise 170ms ease-out;
}

.vbz-confirmation-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e4ebf3;
  background: linear-gradient(135deg, #f4f9fd, #eef5fb);
}

.vbz-confirmation-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #1c62b6;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

[data-confirm-dialog="danger"] .vbz-confirmation-icon { background: #c93645; }
[data-confirm-dialog="warning"] .vbz-confirmation-icon { background: #b87808; }

.vbz-confirmation-header p {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 4px;
  color: #5d7188;
  font-size: 12px;
  line-height: 1.35;
}

.vbz-confirmation-header p span {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em;
}

.vbz-confirmation-header p strong { color: #245a91; }
.vbz-confirmation-header h2 { margin: 0; color: #162d46; font-size: 21px; line-height: 1.25; }

.vbz-confirmation-close {
  width: 38px;
  height: 38px;
  border: 1px solid #cad7e5;
  border-radius: 10px;
  background: #fff;
  color: #3e536b;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.vbz-confirmation-question {
  margin: 0;
  padding: 20px 22px 14px;
  color: #172c42;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}

.vbz-confirmation-effects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 22px 20px;
}

.vbz-confirmation-effects article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 104px;
  padding: 14px;
  border: 1px solid #d8e3ed;
  border-radius: 13px;
  background: #f7fafc;
}

.vbz-confirmation-effects article > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dcefe4;
  color: #146c43;
  font-weight: 900;
}

.vbz-confirmation-effects .cancel-effect > span { background: #e8edf3; color: #50647b; }
.vbz-confirmation-effects strong { display: block; margin: 2px 0 6px; color: #213a55; font-size: 13px; }
.vbz-confirmation-effects p { margin: 0; color: #54697f; font-size: 13px; line-height: 1.45; }

.vbz-confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 22px 20px;
  border-top: 1px solid #e4ebf3;
  background: #fbfcfe;
}

.vbz-confirmation-actions .button {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 10px;
  font-weight: 750;
}

.vbz-confirmation-actions .button.danger { background: #c93645; border-color: #c93645; color: #fff; }
.vbz-confirmation-actions .button.danger:hover { background: #ab2535; border-color: #ab2535; }
.vbz-confirmation-actions button:focus-visible { outline: 3px solid rgb(28 98 182 / 28%); outline-offset: 2px; }

.vbz3-input-fields { display: grid; gap: 14px; padding: 2px 22px 20px; }
.vbz3-input-field { display: grid; gap: 7px; color: #263e58; font-weight: 750; font-size: 13px; }
.vbz3-input-field input,
.vbz3-input-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b9cada; border-radius: 10px; background: #fff; color: #14263a; font: inherit; font-weight: 500; box-sizing: border-box; }
.vbz3-input-field textarea { resize: vertical; min-height: 92px; }
.vbz3-input-field input:focus,
.vbz3-input-field textarea:focus { outline: 3px solid rgb(28 98 182 / 20%); border-color: #1c62b6; }
.vbz3-input-field small { color: #61758a; font-weight: 500; }
.vbz3-input-effects { padding-top: 0; }

@keyframes vbz-confirmation-fade { from { opacity: 0; } }
@keyframes vbz-confirmation-rise { from { opacity: 0; transform: translateY(8px) scale(.985); } }

@media (max-width: 620px) {
  .vbz-confirmation-layer { align-items: end; padding: 10px; }
  .vbz-confirmation-dialog { width: 100%; max-height: calc(100vh - 20px); border-radius: 17px; }
  .vbz-confirmation-header { padding: 17px 16px 14px; }
  .vbz-confirmation-question { padding: 17px 16px 12px; font-size: 16px; }
  .vbz-confirmation-effects { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .vbz-confirmation-effects article { min-height: 0; }
  .vbz-confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; padding: 13px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vbz-confirmation-layer,
  .vbz-confirmation-dialog { animation: none; }
}
