
/* Custom Cake frontend */
.cc-custom-cake-panel{
  border:1px solid #ead6dc;
  border-radius:18px;
  padding:22px;
  margin:24px 0;
  background:#fff7fa;
  box-shadow:0 8px 24px rgba(140,55,85,.08);
}

.cc-custom-cake-panel h3{
  margin:0 0 8px;
  text-align:center;
  color:#5b2a38;
}

.cc-custom-cake-intro{
  text-align:center;
  margin:0 0 18px;
  color:#6d4b56;
  font-size:14px;
  line-height:1.45;
}

.cc-custom-cake-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 14px;
  align-items:start;
}

.cc-custom-cake-field{
  display:grid;
  grid-template-rows:auto 48px auto;
  gap:6px;
  font-weight:700;
  align-self:start;
}

.cc-custom-cake-field span{
  font-size:14px;
  color:#4a2834;
}

.cc-custom-cake-field-full{
  grid-column:1/-1;
  grid-template-rows:auto auto auto;
}

.cc-custom-cake-panel select,
.cc-custom-cake-panel input{
  width:100%;
  height:48px;
  padding:12px;
  border:1px solid #d9c5cb;
  border-radius:10px;
  background:#fff;
  font-size:15px;
  box-sizing:border-box;
  line-height:1.2;
}

.cc-custom-cake-panel input[type="file"]{
  height:auto;
  min-height:48px;
  padding:10px 12px;
}

.cc-custom-cake-panel textarea{
  width:100%;
  min-height:110px;
  padding:12px;
  border:1px solid #d9c5cb;
  border-radius:10px;
  background:#fff;
  font-size:15px;
  box-sizing:border-box;
  resize:vertical;
}

.cc-custom-cake-panel select:focus,
.cc-custom-cake-panel input:focus,
.cc-custom-cake-panel textarea:focus{
  border-color:#d88aa2;
  box-shadow:0 0 0 2px rgba(216,138,162,.16);
  outline:none;
}

.cc-custom-cake-panel small{
  display:block;
  min-height:16px;
  font-weight:400;
  font-size:12px;
  line-height:1.3;
  opacity:.72;
}

.cc-flavor-group{
  grid-column:1/-1;
  background:#fff;
  border:1px solid #ead6dc;
  border-radius:14px;
  padding:14px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.cc-flavor-group[hidden]{
  display:none!important;
}

.cc-flavor-group-title{
  grid-column:1/-1;
  font-weight:800;
  color:#5b2a38;
  margin-bottom:-4px;
}

.cc-custom-cake-note{
  grid-column:1/-1;
  background:#fff;
  border:1px dashed #d7a8b7;
  border-radius:12px;
  padding:12px;
  color:#5b2a38;
  font-size:13px;
  line-height:1.45;
}

.cc-custom-cake-summary{
  background:#fff;
  border:1px solid #ead6dc;
  border-radius:12px;
  padding:12px;
  font-size:14px;
}

.cc-custom-cake-summary strong{
  display:block;
  margin-bottom:4px;
}

.cc-custom-cake-summary.is-invalid{
  border-color:#d63638;
  background:#fff5f5;
  color:#8a2424;
}

.cc-custom-cake-summary.is-valid{
  border-color:#8bc98b;
  background:#f7fff7;
  color:#1f5f2a;
}

/* Legacy safety: old tier fields should still hide if present */
.cc-custom-cake-tier-field[hidden]{
  display:none!important;
}

@media(max-width:720px){
  .cc-custom-cake-fields,
  .cc-flavor-group{
    grid-template-columns:1fr;
  }

  .cc-custom-cake-panel{
    padding:18px;
  }
}
