/*! KoScreen – Confirm model FAB + modal (sitewide) */
.kos-cm-fab {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 1200;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
  color: #1a1238;
  background: #f5c518;
  box-shadow: 0 6px 20px rgba(26, 18, 56, .28);
  cursor: pointer;
}
.kos-cm-fab:hover,
.kos-cm-fab:focus {
  background: #ffd43b;
  outline: none;
}

.kos-cm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(18, 12, 40, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.kos-cm-backdrop[hidden] { display: none !important; }

.kos-cm-dialog {
  width: min(560px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
  padding: 16px 18px 18px;
  color: #24184a;
}

.kos-cm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.kos-cm-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}
.kos-cm-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #6b6880;
  cursor: pointer;
  padding: 0 4px;
}
.kos-cm-sub {
  margin: 0 0 12px;
  color: #6b6880;
  font-size: 14px;
  line-height: 1.45;
}

.kos-cm-media {
  background: #120c28;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kos-cm-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.kos-cm-fallback {
  margin: 0;
  padding: 20px;
  color: #cfc8f5;
  font-size: 14px;
  text-align: center;
  line-height: 1.45;
}

.kos-cm-steps {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  font-size: 14px;
  line-height: 1.5;
  color: #24184a;
}
.kos-cm-steps li { margin: 0 0 6px; }

.kos-cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kos-cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  color: #24184a !important;
  background: #eeeafc;
  border: 1px solid #d9d3fb;
}
.kos-cm-btn:hover { background: #e2dcfb; }
.kos-cm-btn--primary {
  background: #f5c518 !important;
  border-color: #e0b000 !important;
  color: #1a1238 !important;
}

html.kos-cm-open { overflow: hidden; }

@media (max-width: 520px) {
  .kos-cm-fab {
    right: 12px;
    bottom: 14px;
    padding: 11px 14px;
    font-size: 13px;
  }
  .kos-cm-actions { flex-direction: column; }
  .kos-cm-btn { width: 100%; }
}
