/*
Theme Name: Retros Football
Template: blocksy
Description: Child theme carrying the store's own product schema, free
personalisation fields and league > club breadcrumbs. Ported from the original
Shopify build.
Version: 1.0.0
*/

/* --- Free personalisation ------------------------------------------------ */
.rf-personalisation {
  border: 1px solid var(--theme-border-color, #e3e7e4);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.rf-personalisation__toggle {
  display: flex; align-items: center; gap: .7rem;
  cursor: pointer; font-weight: 600; min-height: 44px;
}
.rf-personalisation__toggle input { width: 18px; height: 18px; flex: none; }
.rf-personalisation__free {
  display: inline-block; margin-left: .5rem; padding: .1rem .6rem;
  border-radius: 999px; background: #0e7a3d; color: #fff;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.rf-personalisation__note { margin: .2rem 0 0 1.9rem; font-size: .85rem; opacity: .75; }

/* Revealed by the checkbox alone — no JavaScript needed. */
.rf-personalisation__fields { display: none; margin-top: 1.2rem; }
.rf-personalisation:has(#rf-personalise:checked) .rf-personalisation__fields { display: grid; gap: 1rem; }

.rf-personalisation__row { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.rf-field { display: grid; gap: .3rem; margin: 0; }
.rf-field label { font-weight: 600; font-size: .9rem; }
.rf-field input {
  min-height: 44px; padding: .5rem .8rem; text-transform: uppercase;
  border: 1px solid var(--theme-border-color, #e3e7e4); border-radius: 4px;
}
.rf-field small { font-size: .78rem; opacity: .7; }
.rf-personalisation__patches { border: 0; margin: 0; padding: 0; }
.rf-personalisation__patches legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: .5rem; }
.rf-patch { display: flex; align-items: center; gap: .6rem; min-height: 40px; cursor: pointer; }
.rf-patch input { width: 18px; height: 18px; flex: none; }
.rf-personalisation__returns { margin: 0; font-size: .78rem; opacity: .7; }
@media (max-width: 600px) { .rf-personalisation__row { grid-template-columns: 1fr; } }
