/* Family planner storefront – live SVG preview + form */
@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes.woff2") format("woff2"),
       url("../fonts/great-vibes.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald.woff2") format("woff2"),
       url("../fonts/oswald.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2"),
       url("../fonts/source-sans-3.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Dancing Script";
  src: url("../fonts/DancingScript-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
.cl-planner {
  margin: 12px 0 18px;
  font-family: inherit;
  color: #1a1a1a;
}
/* Oak board and clear plexi, same size. Glass is only a 1px edge and an even separation shadow. */
.cl-planner-preview {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: url("../textures/egetrae.webp") center / cover no-repeat;
  background-color: transparent;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 0 4px rgba(42, 30, 16, 0.18);
}
.cl-planner-preview svg {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}
/* Oak is the frame behind the SVG. The SVG itself is the line drawing. */
.cl-planner-preview svg g#cut path {
  fill: none;
  stroke: #111111;
  stroke-width: 0.1;
}
.cl-planner-form {
  display: grid;
  gap: 6px;
  max-width: 680px;
  container-type: inline-size;
  container-name: cl-planner;
}
.cl-planner-field {
  display: grid;
  gap: 2px;
  align-content: start;
  min-width: 0;
  font-weight: 600;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.2;
}
.cl-planner-field span {
  font-weight: 600;
}
.cl-planner-field input,
.cl-planner-field select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 34px;
  padding: 4px 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  border: 1px solid #cfc3b6;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
}
.cl-planner-field input[type="range"] {
  width: 100%;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #8a6424;
}
.cl-planner-field input[type="hidden"] {
  display: none;
}
.cl-planner-switch {
  position: relative;
  display: block;
  width: 36px;
  height: 20px;
  justify-self: start;
}
.cl-planner-switch input {
  position: absolute;
  inset: 0;
  width: 36px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.cl-planner-switch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e4dcd3;
  pointer-events: none;
}
.cl-planner-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(42, 30, 16, 0.08);
  pointer-events: none;
  transition: transform 0.15s ease;
}
.cl-planner-switch:has(input:checked)::before {
  background: #8a6424;
}
.cl-planner-switch:has(input:checked)::after {
  transform: translateX(16px);
}
.cl-planner-switch:has(input:focus-visible)::before {
  outline: 2px solid #c4a574;
  outline-offset: 2px;
}
.cl-planner-date-rail[hidden],
.cl-planner-date-box[hidden],
.cl-planner-row[hidden] {
  display: none !important;
}
.cl-planner-row,
.cl-planner-names {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 10px;
  min-width: 0;
}
/* Pair short controls once the form column itself is wide enough. */
@container cl-planner (min-width: 380px) {
  .cl-planner-row,
  .cl-planner-names {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .cl-planner-row > :last-child:nth-child(odd),
  .cl-planner-names > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
.cl-planner-hint {
  margin: 0;
  font-size: 0.92em;
  font-weight: 400;
  color: #5a5148;
}
.cl-planner-error {
  color: #a52929;
  font-weight: 600;
  margin: 8px 0 0;
}
.cl-planner-hot {
  animation: cl-planner-hot-text 0.7s ease-out;
}
.cl-planner-hot-line {
  animation: cl-planner-hot-line 0.7s ease-out;
}
@keyframes cl-planner-hot-text {
  0% { fill: #b86a12; }
  100% { fill: #111; }
}
@keyframes cl-planner-hot-line {
  0% { stroke: #b86a12; stroke-width: 1.05; }
  100% { stroke: #111; stroke-width: 0.45; }
}
/* Phone: leave the plate in normal flow so it cannot cover the form. */
@media (max-width: 800px) {
  .cl-planner-preview {
    position: relative;
    top: auto;
    z-index: auto;
    width: 100%;
    max-width: none;
    margin-bottom: 8px;
    background-color: #e7d7c3;
  }
  .cl-planner-form {
    max-width: none;
  }
  .cl-planner-field input,
  .cl-planner-field select {
    scroll-margin-top: 12px;
    scroll-margin-bottom: 12px;
  }
}
.cl-planner[hidden] {
  display: none !important;
}
.cl-planner:not([hidden]) {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  box-sizing: border-box;
  padding: 28px 16px 40px;
  background: rgba(32, 22, 16, 0.55);
}
.cl-planner-sheet {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 18px 48px rgba(32, 22, 16, 0.28);
  box-sizing: border-box;
}
.cl-planner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #2c1d17;
  color: #fff;
  font-family: var(--cl-font, Manrope, system-ui, sans-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 801px) {
  .cl-planner-sheet {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 420px);
    column-gap: 22px;
    align-items: start;
  }
  .cl-planner-sheet .cl-planner-preview,
  .cl-planner-sheet .cl-planner-form {
    max-width: none;
    margin: 0;
  }
}
body.cl-planner-open {
  overflow: hidden;
}
@media (max-width: 800px) {
  .cl-planner:not([hidden]) {
    padding: 8px 8px 20px;
  }
  .cl-planner-sheet {
    padding: 40px 10px 12px;
  }
}
.cl-planner-launch {
  margin: 0 0 14px;
}
button.cl-planner-open {
  background: #2c1d17 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 12px 22px !important;
}
.cl-planner-design-her {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 140px;
  height: var(--woocommerce-form-comp-heights, var(--comp-heights, 40px));
  margin: 0;
  padding: 0 1.15em;
  border: 1px solid var(--cl-btn, #2c1d17);
  border-radius: 999px;
  background: var(--cl-btn, #2c1d17);
  color: #fff;
  font-family: var(--cl-font, Manrope, system-ui, sans-serif);
  font-size: 100%;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
@media (min-width: 1025px) {
  .cl-planner-design-her {
    min-width: 180px;
  }
}
.cl-planner-design-her:hover,
.cl-planner-design-her:focus {
  background: var(--cl-btn-hover, #1a110e);
  border-color: var(--cl-btn-hover, #1a110e);
  color: #fff;
}
.cl-planner-price {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.cl-planner-price del {
  margin-right: 0.4rem;
  color: #6d645b;
  font-weight: 600;
  font-size: 0.95rem;
}
.cl-planner-price ins {
  text-decoration: none;
}
form.cart:has(.cl-planner-launch) button.single_add_to_cart_button:not(.cl-planner-add):not(.cl-planner-open) {
  display: none !important;
}
