/* ============================================================
   Jersey Customizer – Frontend Styles
   Scope: single product page fields + confirmation modal
   ============================================================ */

/* ── Wrap ── */
.jc-wrap {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.125rem;
  border: 1px solid #cccccc80;
  border-radius: 6px;
}

.jc-section-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

/* ── Fields ── */
.jc-field {
  margin: 0 0 0.75rem;
}

.jc-field:last-child {
  margin-bottom: 0;
}

.jc-field label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: BLACK;
}

.jc-field input[type='text'],
.jc-field input[type='number'] {
  display: block;
  padding: 0.45rem 0.65rem;
  border: 1px solid #00000066;
  border-radius: 4px;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 0.15s;
}

.jc-field input[type='text'] {
  width: 100%;
}

.jc-field input:focus {
  outline: none;
  border-color: #0071a1;
  box-shadow: 0 0 0 2px rgba(0, 113, 161, 0.18);
}

/* ── Modal overlay ── */
.jc-modal-overlay {
  display: none; /* shown via JS as flex */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

/* ── Modal box ── */
.jc-modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.22);
  animation: jcSlideIn 0.18s ease-out;
}

@keyframes jcSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jc-modal-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

#jc-modal-summary {
  font-size: 1.05rem;
  margin: 0.5rem 0 1.5rem;
  color: #444;
}

/* ── Modal buttons ── */
.jc-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.jc-btn {
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.jc-btn:hover {
  opacity: 0.88;
}

.jc-btn--primary {
  background: #0071a1;
  color: #fff;
}

.jc-btn--secondary {
  background: #e0e0e0;
  color: #333;
}

/* ── Thank-you page notice ── */
.jc-thankyou-box {
  margin-bottom: 1.5rem;
}

.jc-thankyou-box ul {
  margin: 0.5rem 0 0 1.25rem;
  list-style: disc;
}

.jc-thankyou-box li {
  margin-bottom: 0.25rem;
}

/* ── Toggle checkbox ── */
.jc-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .9375rem;
}

.jc-toggle input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

/* ── Hidden fields panel ── */
.jc-fields {
    display: none;
    margin-top: .875rem;
    padding-top: .875rem;
    border-top: 1px solid #e0e0e0;
}

.jc-fields.jc-fields--visible {
    display: block;
}