/* sv-checkout-modal — modal Dados da empresa (homepage www.siversa.co.mz) */
.ck-overlay {
  --navy-900: var(--blue-deep, #061B49);
  --navy-950: #04142f;
  --orange-dark: #e86a00;
  --ink: var(--blue-deep, #061B49);
  --display: inherit;
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.ck-overlay[hidden] { display: none !important; }

.ck-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 24, 0.68);
  backdrop-filter: blur(10px);
}

.ck-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(92vh, 760px);
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #f3f6fb 100%);
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 28px 70px rgba(2, 8, 20, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  padding: 22px 24px 16px;
  animation: ckIn 0.28s ease;
}

.ck-dialog::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  opacity: 0.88;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 38%, #f59e0b 72%, #ea580c 100%);
}

@keyframes ckIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.ck-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.ck-close:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.ck-close:focus-visible {
  outline: 2px solid #1558e8;
  outline-offset: 2px;
}

.ck-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  padding-right: 36px;
}

.ck-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.ck-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.ck-brand h2,
.ck-success h2 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}

.ck-sub {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
  max-width: 48ch;
}

.ck-summary {
  margin: 20px 0 18px;
  padding: 12px 12px;
  border-radius: 16px;
  background: #f3f6fa;
  border: 1px solid #e4ebf3;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.ck-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 650;
  color: #1e293b;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ck-chip-k {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  opacity: 0.78;
}

.ck-chip-v {
  font-weight: 750;
  font-size: 0.88rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ck-chip strong {
  color: inherit;
  font-weight: 750;
}

.ck-chip--pkg {
  background: linear-gradient(160deg, #fff4ee 0%, #ffe8df 100%);
  border-color: #ffd0be;
  color: #9a3412;
}

.ck-chip--pkg .ck-chip-k { color: #c2410c; }

.ck-chip--period {
  background: linear-gradient(160deg, #eef5ff 0%, #e0ecff 100%);
  border-color: #c7dbf8;
  color: #1e3a5f;
}

.ck-chip--period .ck-chip-k { color: #2563eb; }

.ck-chip--mods {
  background: linear-gradient(160deg, #eefaf6 0%, #ddf5ec 100%);
  border-color: #b8e8d6;
  color: #115e59;
}

.ck-chip--mods .ck-chip-k { color: #0f766e; }

.ck-chip--total {
  margin-left: auto;
  align-self: center;
  flex-direction: row;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 26, 46, 0.18);
  font-size: 0.9rem;
}

.ck-chip--total strong { color: #fff; }

.ck-form { margin-top: 18px; }

.ck-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ck-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 12px;
  margin-top: 14px;
}

.ck-field { margin: 0; min-width: 0; }

.ck-field--full {
  grid-column: 1 / -1;
}

.ck-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 5px;
}

.ck-field .req { color: var(--orange); }

.ck-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5deeb;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 11px;
  min-height: 38px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ck-input:hover { border-color: #c0cddd; }

.ck-input:focus-within {
  background: #fff;
  border-color: #1558e8;
  box-shadow: 0 0 0 3px rgba(21, 88, 232, 0.1);
}

.ck-ico {
  color: #94a3b8;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  transition: color 0.15s ease;
}

.ck-input:focus-within .ck-ico { color: #1558e8; }

.ck-input input,
.ck-input select.ck-select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 0;
  font: inherit;
  font-size: 0.875rem;
  color: #475569;
}

.ck-input select.ck-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ck-input input::placeholder { color: #94a3b8; }

.ck-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  transform-origin: center;
}

.ck-error.is-shake {
  animation: ckErrorShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
  border-color: #f87171;
}

@keyframes ckErrorShake {
  0%, 100% { transform: translateX(0); }
  12% { transform: translateX(-7px); }
  24% { transform: translateX(7px); }
  36% { transform: translateX(-5px); }
  48% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  72% { transform: translateX(3px); }
  84% { transform: translateX(-1px); }
}

.ck-error-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: #dc2626;
}

.ck-error-text {
  min-width: 0;
  flex: 1 1 auto;
}

.ck-error[hidden] { display: none !important; }

.ck-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8eef5;
}

.ck-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  justify-content: flex-end;
}

.ck-actions-success {
  justify-content: center;
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
}

.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  line-height: 1;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.ck-btn:focus-visible {
  outline: 2px solid #1558e8;
  outline-offset: 2px;
}

.ck-btn-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: block;
}

.ck-btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange-dark);
  min-width: 176px;
  box-shadow: 0 6px 14px rgba(255, 92, 53, 0.18);
}

.ck-btn-primary:hover:not(:disabled) {
  background: var(--orange-dark);
  border-color: #d13d1a;
  box-shadow: 0 8px 16px rgba(232, 70, 31, 0.22);
}

.ck-btn-primary:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

.ck-btn-ghost {
  background: #eef2f7;
  color: var(--navy-900);
  border-color: #d5deeb;
  min-width: 120px;
  box-shadow: none;
}

.ck-btn-ghost:hover {
  background: #e4ebf3;
  border-color: #c5d0e0;
  color: var(--navy-950);
}

.ck-contacts {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 0;
  text-align: center;
}

.ck-contacts-sig {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

.ck-contacts-row {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  font-size: 0.76rem;
  color: #64748b;
}

.ck-contacts-row a {
  color: #1558e8;
  text-decoration: none;
  font-weight: 600;
}

.ck-contacts-row a:hover {
  text-decoration: underline;
}

.ck-contacts-sep {
  color: #cbd5e1;
}

.ck-success {
  text-align: center;
  padding: 16px 8px 6px;
}

.ck-success-mark {
  width: 72px;
  height: 72px;
  margin: 8px auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #16a34a;
  background: #ecfdf5;
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.06);
}

.ck-code {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

body.ck-open { overflow: hidden; }

@media (max-width: 640px) {
  .ck-chip--total { margin-left: 0; }
}

@media (max-width: 768px) {
  .ck-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 14px;
    padding: 16px 16px 12px;
  }

  .ck-dialog::before { left: 16px; right: 16px; }

  .ck-brand h2,
  .ck-success h2 {
    font-size: 1.05rem;
  }

  .ck-form-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 10px;
  }

  .ck-field--full {
    grid-column: 1 / -1;
  }

  .ck-actions {
    flex-direction: column-reverse;
  }

  .ck-btn {
    width: 100%;
  }

  .ck-btn-primary {
    min-width: 0;
  }
}
