/* Conheça — construtor multinível (PDF §1.1 — Registro & Checkout) */

.ck-construtor-section {

  padding: 40px 0 100px;

}

.ck-construtor-panel {

  max-width: 980px;

  margin: 0 auto;

  background: #fff;

  border-radius: 20px;

  border: 1px solid #e2e8f0;

  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);

  overflow: hidden;

}

.ck-construtor-head {

  text-align: center;

  padding: 28px 24px 20px;

  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);

  border-bottom: 1px solid #e2e8f0;

}

.ck-construtor-head h2 {

  margin: 0;

  font-family: Outfit, Poppins, sans-serif;

  font-weight: 900;

  font-size: clamp(1.15rem, 2.5vw, 1.45rem);

  letter-spacing: 0.06em;

  color: #0f172a;

}

.ck-construtor-head p {

  margin: 8px 0 0;

  font-weight: 700;

  font-size: 0.82rem;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: #64748b;

}

.ck-construtor-body {

  padding: 24px 24px 8px;

  background: #f1f5f9;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg fill='%2306b6d4' fill-opacity='0.07'%3E%3Ccircle cx='30' cy='40' r='3'/%3E%3Ccircle cx='100' cy='80' r='4'/%3E%3Cpath d='M30 40 L100 80' stroke='%2306b6d4' stroke-opacity='0.06'/%3E%3C/g%3E%3C/svg%3E");

}

.ck-nivel-block {

  background: #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 16px;

  padding: 18px 18px 16px;

  margin-bottom: 16px;

  color: #f8fafc;

  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);

}

.ck-nivel-block.is-master {

  border-color: rgba(37, 99, 235, 0.35);

}

.ck-nivel-top {

  display: flex;

  flex-wrap: wrap;

  align-items: flex-start;

  justify-content: space-between;

  gap: 10px;

  margin-bottom: 14px;

}

.ck-nivel-label {

  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: #f97316;

}

.ck-nivel-title {

  font-weight: 800;

  font-size: 1.05rem;

  margin: 4px 0 0;

}

.ck-nivel-price {

  font-weight: 800;

  font-size: 1.1rem;

  color: #21c07a;

  white-space: nowrap;

}

.ck-nivel-price small {

  display: block;

  font-size: 0.72rem;

  font-weight: 600;

  color: #94a3b8;

  text-align: right;

}

.ck-mod-group {

  margin-top: 12px;

}

.ck-mod-group-title {

  font-size: 0.75rem;

  font-weight: 700;

  color: #94a3b8;

  margin: 0 0 8px;

  text-transform: uppercase;

  letter-spacing: 0.04em;

}

.ck-mod-radios {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}

.ck-mod-radio {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 8px 12px;

  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  background: rgba(255, 255, 255, 0.05);

  font-size: 0.82rem;

  cursor: pointer;

  transition: border-color 0.15s, background 0.15s;

  color: #f8fafc;

}

.ck-mod-radio:hover {

  border-color: rgba(240, 138, 0, 0.5);

}

.ck-mod-radio.is-on {

  border-color: #f97316;

  background: rgba(249, 115, 22, 0.15);

}

.ck-mod-radio input {

  accent-color: #f97316;

}

.ck-mod-radio span.preco {

  color: #93c5fd;

  font-weight: 700;

  font-size: 0.78rem;

}

.ck-toggle-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-top: 14px;

  padding-top: 12px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 0.82rem;

  font-weight: 700;

  letter-spacing: 0.02em;

  text-transform: uppercase;

  line-height: 1.35;

}

.ck-toggle-row strong {

  color: #f97316;

}

.ck-switch {

  position: relative;

  width: 52px;

  height: 28px;

  flex-shrink: 0;

}

.ck-switch input {

  opacity: 0;

  width: 0;

  height: 0;

}

.ck-switch span {

  position: absolute;

  inset: 0;

  background: #334155;

  border-radius: 999px;

  cursor: pointer;

  transition: 0.2s;

}

.ck-switch span::before {

  content: "";

  position: absolute;

  width: 22px;

  height: 22px;

  left: 3px;

  top: 3px;

  background: #fff;

  border-radius: 50%;

  transition: 0.2s;

}

.ck-switch input:checked + span {

  background: #f97316;

}

.ck-switch input:checked + span::before {

  transform: translateX(24px);

}

.ck-func-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

  gap: 10px;

}

.ck-func-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 8px;

  padding: 10px 12px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 0.85rem;

}

.ck-func-row strong {

  display: block;

  font-size: 0.88rem;

}

.ck-func-row small {

  color: #94a3b8;

  font-size: 0.72rem;

}

.ck-qty {

  display: inline-flex;

  align-items: center;

  gap: 4px;

}

.ck-qty button {

  width: 28px;

  height: 28px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  background: rgba(255, 255, 255, 0.08);

  color: #f8fafc;

  border-radius: 8px;

  cursor: pointer;

  font-weight: 800;

  line-height: 1;

}

.ck-qty button:hover {

  background: rgba(249, 115, 22, 0.25);

  border-color: #f97316;

}

.ck-qty input {

  width: 36px;

  text-align: center;

  border: none;

  background: transparent;

  color: #f8fafc;

  font-weight: 800;

  font-size: 0.95rem;

}

/* PDF: barra azul escura “+ ADICIONAR NOVO MASTER” */

.ck-btn-add-master {

  width: 100%;

  margin: 4px 0 16px;

  padding: 14px 18px;

  border: none;

  background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);

  color: #fff;

  font-weight: 800;

  font-size: 0.82rem;

  letter-spacing: 0.04em;

  border-radius: 12px;

  cursor: pointer;

  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.35);

  transition: transform 0.15s, box-shadow 0.15s;

  -webkit-appearance: none;

  appearance: none;

}

.ck-btn-add-master .ck-plus-ico {

  color: #f97316;

}

.ck-btn-add-master:hover {

  transform: translateY(-1px);

  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.45);

}

.ck-master-remove {

  border: none;

  background: transparent;

  color: #f87171;

  font-size: 0.78rem;

  font-weight: 700;

  cursor: pointer;

  padding: 4px 8px;

}

.ck-construtor-fields {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

  margin-bottom: 12px;

}

.ck-construtor-panel .ck-construtor-fields .ck-form-field {

  margin: 0;

}

.ck-construtor-panel .ck-construtor-fields .ck-form-field label {

  display: block;

  font-size: 0.78rem;

  font-weight: 700;

  color: #cbd5e1;

  margin-bottom: 5px;

  text-transform: uppercase;

  letter-spacing: 0.03em;

}

.ck-construtor-panel .ck-construtor-fields .ck-form-field input {

  width: 100%;

  padding: 11px 14px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 10px;

  font: inherit;

  color: #0f172a;

  background: #fff;

  transition: border-color 0.15s, box-shadow 0.15s;

}

.ck-construtor-panel .ck-construtor-fields .ck-form-field input:focus {

  outline: none;

  border-color: #2563eb;

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);

}

.ck-construtor-panel .ck-construtor-fields .ck-form-field input::placeholder {

  color: #94a3b8;

}

.ck-construtor-fields .full {

  grid-column: 1 / -1;

}

/* PDF: faixa escura fixa + total + botão verde */

.ck-construtor-sticky {

  position: sticky;

  bottom: 0;

  z-index: 90;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 16px 24px;

  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);

  border-top: 3px solid #f97316;

  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);

}

.ck-btn-detalhe {

  border: 1px solid rgba(255, 255, 255, 0.25);

  background: rgba(255, 255, 255, 0.08);

  color: #f8fafc;

  font-weight: 700;

  font-size: 0.85rem;

  padding: 10px 14px;

  border-radius: 10px;

  cursor: pointer;

  -webkit-appearance: none;

  appearance: none;

}

.ck-btn-detalhe:hover {

  background: rgba(255, 255, 255, 0.14);

}

.ck-total-box {

  text-align: center;

  flex: 1;

  min-width: 140px;

}

.ck-total-box span {

  display: block;

  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 0.1em;

  color: #94a3b8;

}

.ck-total-box strong {

  font-size: clamp(1.25rem, 3vw, 1.55rem);

  font-weight: 900;

  color: #fff;

}

.ck-btn-concluir {

  border: none;

  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);

  color: #fff;

  font-weight: 800;

  font-size: 0.92rem;

  letter-spacing: 0.06em;

  padding: 14px 24px;

  border-radius: 12px;

  cursor: pointer;

  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);

  -webkit-appearance: none;

  appearance: none;

  white-space: nowrap;

}

.ck-btn-concluir:hover {

  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);

  transform: translateY(-1px);

}

.ck-btn-concluir:disabled {

  opacity: 0.65;

  cursor: not-allowed;

  transform: none;

}

.ck-detalhe-pop {

  position: fixed;

  inset: 0;

  z-index: 300;

  display: none;

  align-items: flex-end;

  justify-content: center;

  padding: 20px;

  background: rgba(15, 23, 42, 0.55);

}

.ck-detalhe-pop.open {

  display: flex;

}

.ck-detalhe-sheet {

  width: min(520px, 100%);

  max-height: 70vh;

  overflow: auto;

  background: #fff;

  border-radius: 16px 16px 0 0;

  padding: 18px 20px 24px;

}

.ck-detalhe-sheet h4 {

  margin: 0 0 12px;

  font-weight: 800;

}

.ck-detalhe-sheet ul {

  margin: 0;

  padding: 0;

  list-style: none;

  font-size: 0.9rem;

}

.ck-detalhe-sheet li {

  display: flex;

  justify-content: space-between;

  gap: 12px;

  padding: 8px 0;

  border-bottom: 1px solid #f1f5f9;

}

@media (max-width: 768px) {

  .ck-construtor-fields {

    grid-template-columns: 1fr;

  }

  .ck-construtor-sticky {

    flex-direction: column;

    align-items: stretch;

  }

  .ck-btn-concluir {

    width: 100%;

    text-align: center;

  }

}


