.wfac3d{--copper:#c75f32;--ink:#202022;flex:1 0 100%;margin-top:1.25rem;padding:1.4rem;border:1px solid #ead7ca;border-radius:16px;background:linear-gradient(135deg,#fff 0%,#fdf8f4 100%);box-shadow:0 14px 35px rgba(74,42,24,.08);font-family:Manrope,sans-serif}.wfac3d__heading h3{margin:.2rem 0;font:700 1.45rem/1.2 Jost,sans-serif;color:var(--ink)}.wfac3d__heading p{margin:0 0 1.2rem;color:#6f625b;font-size:.9rem}.wfac3d__eyebrow{color:var(--copper);font-weight:700;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase}.wfac3d__grid{display:grid;grid-template-columns:minmax(230px,.85fr) 1.15fr;gap:1.25rem}.wfac3d__drop{position:relative;display:grid;place-items:center;min-height:230px;margin:0;border:1.5px dashed #d9ad96;border-radius:12px;background:#fff;overflow:hidden;cursor:pointer}.wfac3d__drop input{position:absolute;inset:0;opacity:0;cursor:pointer}.wfac3d__drop-copy{text-align:center;color:#6f625b}.wfac3d__drop-copy i{display:block;color:var(--copper);font-size:2.3rem}.wfac3d__drop-copy strong,.wfac3d__drop-copy small{display:block}.wfac3d__drop canvas{width:100%;height:100%;object-fit:contain;cursor:grab}.wfac3d__options{display:grid;gap:.8rem}.wfac3d__options label,.wfac3d__options legend{font-weight:700;font-size:.84rem}.wfac3d__options select{margin-top:.35rem}.wfac3d__colors{display:flex;flex-wrap:wrap;gap:.7rem}.wfac3d__color{display:grid;justify-items:center;gap:.25rem;cursor:pointer}.wfac3d__color input{position:absolute;opacity:0}.wfac3d__color span{width:30px;height:30px;border:3px solid #fff;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px #d8c6ba}.wfac3d__color input:checked+span{box-shadow:0 0 0 2px var(--copper)}.wfac3d__color small{font-weight:500}.wfac3d__analyze{display:flex;align-items:center;justify-content:center;gap:.45rem;background:var(--copper);color:#fff;border:0;min-height:46px}.wfac3d__analyze:hover:not(:disabled){background:#aa4822;color:#fff}.wfac3d__status{min-height:1.35rem;color:#6f625b;font-size:.85rem}.wfac3d.has-error .wfac3d__status{color:#b42318}.wfac3d__result{display:grid;grid-template-columns:repeat(3,1fr);padding:.8rem;border-radius:10px;background:#f4e5dc}.wfac3d__result span{display:grid;padding:0 .7rem;border-right:1px solid #dfc4b4}.wfac3d__result span:last-child{border:0}.wfac3d__result small{color:#75665d}.wfac3d__result strong{color:var(--ink)}.wfac3d__price strong{color:var(--copper);font-size:1.25rem}@media(max-width:767px){.wfac3d{padding:1rem}.wfac3d__grid{grid-template-columns:1fr}.wfac3d__drop{min-height:190px}.wfac3d__result{grid-template-columns:1fr;gap:.5rem}.wfac3d__result span{border:0;padding:0}}

.wfac3d [hidden] { display: none !important; }
.wfac3d-material-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:end;min-width:0}
.wfac3d-material-field > label{display:grid;gap:5px;margin:0;min-width:0;font-weight:600;font-size:.88rem}
.wfac3d-material-info{align-self:end;margin:0 0 10px;max-width:100%;color:#553f32}
.wfac3d-material-info[hidden]{display:none!important}
.wfac3d-material-info > summary{display:grid;place-items:center;list-style:none;width:24px;height:24px;border:1px solid #b95f37;border-radius:50%;background:#fff9f3;color:#a74f2c;font:700 15px/1 Georgia,serif;cursor:pointer}
.wfac3d-material-info > summary::-webkit-details-marker{display:none}
.wfac3d-material-info > summary:focus-visible{outline:2px solid #a74f2c;outline-offset:3px}
.wfac3d-material-info[open]{display:contents}
.wfac3d-material-info[open] > summary{align-self:end;margin-bottom:10px;background:#b95f37;color:#fff}
.wfac3d-material-info > p{grid-column:1/-1;margin:0;padding:12px 14px;border:1px solid #ead1c2;border-radius:10px;background:#fbf4ee;color:#553f32;font-size:.85rem;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}
.wfac3d__uploads { min-width: 0; }
.wfac3d__file-list { list-style: none; padding: 0; margin: .8rem 0; }
.wfac3d__file-list li { display: flex; align-items: center; gap: .6rem; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid #ead7ca; }
.wfac3d__file-list span { min-width: 0; overflow-wrap: anywhere; font-size: .85rem; }
.wfac3d__file-list button { flex-shrink: 0; border: 1px solid #d9ad96; border-radius: 6px; background: #fff; color: #aa4822; padding: .35rem .55rem; cursor: pointer; }
.wfac3d__file-list button:disabled { opacity: .5; cursor: wait; }
.wfac3d__batch-note { font-size: .8rem; color: #6f625b; }
.wfac3d__parts {
  padding: 1rem;
  border: 1px solid #ead7ca;
  border-radius: 12px;
  background: #fff;
}
.wfac3d__parts h4 {
  margin: 0 0 .7rem;
  font: 600 1rem/1.3 Jost, sans-serif;
}
.wfac3d__parts p {
  margin: .7rem 0 0;
  color: #6f625b;
  font-size: .8rem;
}
.wfac3d__part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(125px, 175px);
  align-items: center;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px solid #f0e2d9;
}
.wfac3d__part:last-child { border-bottom: 0; }
.wfac3d__part strong { overflow-wrap: anywhere; }
.wfac3d__part-swatch {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f1e7d2;
  box-shadow: 0 0 0 1px #d8c6ba;
}
@media (max-width: 480px) {
  .wfac3d__part { grid-template-columns: 1fr 22px; }
  .wfac3d__part select { grid-column: 1 / -1; }
}


/* Filament colours are selected in the 3D configurator. Hide the decorative
   catalogue swatches injected above the form to avoid a duplicated choice. */
.product__right.has-wfac3d-configurator .wfa-product-colors,
.product__right:has(.wfac3d) .wfa-product-colors {
  display: none !important;
}

.wfac3d__options,
.wfac3d__options > label,
.wfac3d__options select {
  min-width: 0;
  max-width: 100%;
}

.wfac3d__options > label,
.wfac3d__options select {
  width: 100%;
}

/* Equal-width slots keep swatch centres evenly spaced regardless of label length. */
.wfac3d__colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wfac3d__color {
  position: relative;
  width: 100%;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 10px;
  padding: 10px;
  margin: 0;
  border: 1px solid #e5d5cc;
  border-radius: 10px;
  background: #fffdfb;
  text-align: left;
  min-height: 54px;
  transition: border-color .15s, background .15s;
}

.wfac3d__color:hover {border-color:var(--copper);background:#fcf5ef;}
.wfac3d__color:has(input:checked) {border-color:var(--copper);background:#fbefe6;box-shadow:inset 0 0 0 1px var(--copper);}
.wfac3d__color:has(input:focus-visible) {outline:2px solid var(--copper);outline-offset:3px;}
.wfac3d__color span {position:relative;flex-shrink:0;}
.wfac3d__color input:checked+span:after {content:'✓';position:absolute;right:-6px;bottom:-5px;display:grid;place-items:center;width:15px;height:15px;border:1px solid #fff;border-radius:50%;background:var(--copper);color:#fff;font-size:10px;font-weight:700;line-height:1;}

.wfac3d__color small {
  min-width: 0;
  max-width: 100%;
  font-size: .78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: normal;
}
.wfac3d__color{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px}
.wfac3d__color small{font-weight:700;text-align:left}

.wfac3d__icon {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wfac3d__drop-copy .wfac3d__icon--model {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto .55rem;
  color: var(--copper);
}

.wfac3d__analyze .wfac3d__icon--calculator {
  width: 1.2rem;
  height: 1.2rem;
  color: #fff;
}

.wfac3d.has-error .wfac3d__status {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-height: 0;
  padding: .75rem .85rem;
  border: 1px solid #efc2b2;
  border-radius: 10px;
  background: #fff3ee;
  color: #9f3219;
  line-height: 1.45;
}

.wfac3d.has-error .wfac3d__status::before {
  display: inline-grid;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: #c75f32;
  color: #fff;
  content: '!';
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
}
.wfac3d.has-parts .wfac3d__grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.wfac3d.has-parts .wfac3d__drop { min-height: 74px; }
.wfac3d.has-parts .wfac3d__drop-copy { display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap; padding: .65rem 1rem; }
.wfac3d.has-parts .wfac3d__drop-copy .wfac3d__icon--model { width: 1.8rem; height: 1.8rem; margin: 0; }
.wfac3d.has-parts .wfac3d__drop-copy small { flex-basis: 100%; }
.wfac3d__extra { padding: .85rem; border: 1px dashed #d9ad96; border-radius: 10px; background: #fffaf7; }
.wfac3d__extra label { display: block; margin-bottom: .45rem; font-weight: 700; }
.wfac3d__extra input { display: block; width: 100%; font: 500 .82rem Manrope, sans-serif; }
.wfac3d__extra small { display: block; margin-top: .45rem; color: #6f625b; line-height: 1.45; }
.wfac3d__parts-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.wfac3d__parts-heading span { color: #806b60; font-size: .78rem; white-space: nowrap; }
.wfac3d__uniform { display: flex; align-items: center; gap: .55rem; margin: .3rem 0 .7rem; padding: .65rem .75rem; border-radius: 9px; background: #f9eee7; cursor: pointer; }
.wfac3d__uniform input { accent-color: #b65932; width: 17px; height: 17px; flex: 0 0 auto; }
.wfac3d__uniform-choice { display: block; margin-bottom: .8rem; }
.wfac3d__part-list { max-height: 355px; overflow-y: auto; padding-right: .4rem; scrollbar-color: #d7b8a6 transparent; }
.wfac3d__part { grid-template-columns: minmax(0, 1fr) 22px minmax(135px, 190px); }
.wfac3d__part strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .82rem; }
.wfac3d__part select { width: 100%; min-width: 0; margin: 0; }
.wfac3d__part select:disabled { opacity: .7; }
@media (max-width: 520px) {
  .wfac3d__part { grid-template-columns: minmax(0, 1fr) 18px; }
  .wfac3d__part select { grid-column: 1 / -1; }
}
.wfac3d__progress { padding: .85rem 1rem; border: 1px solid #ead7ca; border-radius: 12px; background: #fffaf7; color: var(--ink); }
.wfac3d__progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .55rem; font-size: .84rem; font-weight: 700; }
.wfac3d__progress-head strong { color: var(--copper); white-space: nowrap; }
.wfac3d__progress-track { position: relative; height: 9px; overflow: hidden; border-radius: 99px; background: #f0dfd3; }
.wfac3d__progress-track [data-wfac3d-progress-fill] { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #aa4822, #d88a64); transition: width .2s ease; }
.wfac3d__progress small { display: block; margin-top: .5rem; color: #6f625b; font-size: .78rem; line-height: 1.45; }
.wfac3d__progress.is-processing [data-wfac3d-progress-fill] { position: absolute; left: -40%; width: 40% !important; animation: wfac3d-progress-scan 1.7s ease-in-out infinite; }
@keyframes wfac3d-progress-scan { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .wfac3d__progress.is-processing [data-wfac3d-progress-fill] { left: 30%; animation: none; } }
.wfac3d.is-loading .wfac3d__analyze { opacity: .78; cursor: progress; }
.wfac3d__file-loader:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: .65rem; max-width: 20rem; margin: 1rem auto 0; padding-inline: .75rem; font-size: .85rem; }
.wfac3d__file-loader[hidden] { display: none !important; }
.wfac3d__file-spinner { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; border: 2px solid #ead7ca; border-top-color: var(--copper); border-radius: 50%; animation: wfac3d-file-spin .8s linear infinite; }
@keyframes wfac3d-file-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wfac3d__file-spinner { animation: none; } }

.wfac3d { container-type: inline-size; }
/* Match the birth-plaque form: quiet frame, inherited type and full-width steps. */
.wfac3d {
  --copper: #bf6238;
  padding: 24px;
  margin: 20px 0;
  border: 1px solid #e6cdbf;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
}
.wfac3d__heading h3 { font-family: inherit; font-size: 1.5rem; line-height: 1.3; margin: 8px 0 16px; }
.wfac3d__heading p { color: #745e51; line-height: 1.65; }
.wfac3d__eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .1em; }
.wfac3d .wfac3d__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.wfac3d .wfac3d__drop { min-height: 150px; padding: 20px; border-color: #e6cdbf; background: #fffdfa; }
.wfac3d__drop-copy { color: #745e51; }
.wfac3d__batch-note { margin: 10px 0 0; color: #745e51; line-height: 1.6; }
.wfac3d__options { gap: 14px; }
.wfac3d__options > label { color: #493d35; }
.wfac3d__options select { min-height: 44px; padding: 9px 12px; border: 1px solid #d8cec9; border-radius: 9px; background-color: #fff; font-family: inherit; font-size: .92rem; }
.wfac3d__options > fieldset:not(.wfac3d__finishing) { padding: 14px; border: 1px solid #ece1d9; border-radius: 12px; background: #fffdfa; }
.wfac3d__options legend { float: none; width: auto; padding: 0 6px; font-size: .875rem; color: #493d35; }
.wfac3d .wfac3d__analyze { min-height: 48px; padding: .65rem 1rem; border: 1px solid #bf6238; border-radius: .35rem; background: linear-gradient(110deg,#b95831,#c96b3d); font-family: inherit; font-size: .92rem; font-weight: 700; box-shadow: none; }
.wfac3d .wfac3d__analyze:hover:not(:disabled) { background: linear-gradient(110deg,#a94e2c,#ba5d35); }
.wfac3d .wfac3d__analyze:disabled { opacity: .5; cursor: not-allowed; }
.wfac3d__status:not(:empty) { margin: 0; padding: 10px 12px; border: 1px solid #e6cdbf; border-radius: 8px; background: #fbefe6; color: #74503c; font-size: .8rem; line-height: 1.5; }
.wfac3d.has-error .wfac3d__status:not(:empty) { border-color: #cf8c79; background: #fff1eb; color: #813521; }
@media(max-width:480px) { .wfac3d { padding:16px; } }
.wfac3d__grid { align-items: start; }
.wfac3d__drop { align-self: start; }
.wfac3d__options fieldset { min-width: 0; }
/* Two equal columns match the birth customizer. Long labels wrap inside cards. */

.wfac3d__finishing { margin: 0; padding: 1rem; border: 1px solid #ead7ca; border-radius: 12px; background: #fff; }
.wfac3d__finishing legend { margin-bottom: .15rem; font-size: .9rem; }
.wfac3d__finishing-intro { margin: 0 0 .85rem; color: #6f625b; font-size: .78rem; line-height: 1.5; }
.wfac3d__finishing-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; }
.wfac3d__finishing-option { position: relative; display: grid; align-content: start; gap: .35rem; min-height: 5.6rem; margin: 0; padding: .8rem .9rem .8rem 2.8rem; border: 1px solid #e8d8ce; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease; }
.wfac3d__finishing-option input { position: absolute; opacity: 0; pointer-events: none; }
.wfac3d__finishing-option::before { position: absolute; top: .95rem; left: .9rem; width: 1.15rem; height: 1.15rem; border: 1.5px solid #cdb7aa; border-radius: 50%; background: #fff; content: ''; transition: border-color .2s ease, box-shadow .2s ease; }
.wfac3d__finishing-option::after { position: absolute; top: 1.25rem; left: 1.2rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--copper); content: ''; opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .2s ease; }
.wfac3d__finishing-option > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .15rem .5rem; }
.wfac3d__finishing-option strong { min-width: 0; color: var(--ink); font-size: .84rem; line-height: 1.3; }
.wfac3d__finishing-option small { color: #806b60; font-size: .72rem; font-weight: 600; }
.wfac3d__finishing-option em { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding: .2rem .45rem; border-radius: 99px; background: #faeee7; color: var(--copper); font-size: .7rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.wfac3d__finishing-option p { margin: 0; color: #6f625b; font-size: .72rem; font-weight: 500; line-height: 1.45; }
.wfac3d__finishing-option:has(input:checked) { border-color: var(--copper); background: #fff9f6; box-shadow: 0 0 0 2px rgba(199, 95, 50, .12); transform: translateY(-1px); }
.wfac3d__finishing-option:has(input:checked)::before { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(199, 95, 50, .1); }
.wfac3d__finishing-option:has(input:checked)::after { opacity: 1; transform: scale(1); }
.wfac3d__finishing-option:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 2px; }
.wfac3d__finishing-note { display: block; margin-top: .8rem; padding-top: .75rem; border-top: 1px solid #f0e3db; color: #806b60; font-size: .7rem; font-weight: 500; line-height: 1.45; }
.wfac3d__result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wfac3d__price-note { grid-column: 1 / -1; margin: .7rem .7rem 0; color: #6f625b; font-size: .74rem; line-height: 1.4; }
@container (max-width: 560px) { .wfac3d__grid { grid-template-columns: minmax(0, 1fr); } .wfac3d__drop { min-height: 15rem; } }
@media (max-width: 767px) { .wfac3d__result { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wfac3d__result span:nth-of-type(2) { border-right: 0; } .wfac3d__result span:nth-of-type(n+3) { border-top: 1px solid #dfc4b4; padding-top: .55rem; } }
/* Keep the native PrestaShop purchase controls inside the configurator card. */
.product__actions-qty-add.wfac3d-actions-integrated {
  display: block;
}

.product__actions-qty-add.wfac3d-actions-integrated::before {
  display: none;
}

.product__actions-qty-add.wfac3d-actions-integrated > .wfac3d {
  width: 100%;
  margin-top: 0;
}

.wfac3d__purchase {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 7.75rem minmax(0, 1fr) 3rem;
  gap: .65rem .75rem;
  align-items: center;
  margin-top: .15rem;
  padding-top: 1rem;
  border-top: 1px solid #ead7ca;
}

.wfac3d__purchase-label {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
}

#product .wfac3d__purchase > .product__quantity {
  width: 100%;
  grid-column: 1;
  grid-row: 2;
}

#product .wfac3d__purchase > .product__add-to-cart {
  grid-column: 2;
  grid-row: 2;
}

#product .wfac3d__purchase > .wfac3d__wishlist-slot {
  display: flex;
  width: 3rem;
  height: 3rem;
  grid-column: 3;
  grid-row: 2;
  align-items: stretch;
  justify-content: center;
}

#product .wfac3d__purchase .product__add-to-cart-button {
  width: 100%;
}

@media (max-width: 560px) {
  .wfac3d__purchase {
    grid-template-columns: minmax(0, 1fr) 3rem;
  }

  #product .wfac3d__purchase > .product__quantity {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #product .wfac3d__purchase > .product__add-to-cart {
    grid-column: 1;
    grid-row: 3;
  }

  #product .wfac3d__purchase > .wfac3d__wishlist-slot {
    grid-column: 2;
    grid-row: 3;
  }
}
/* Layered important rules override unlayered ones. Match the theme's page layer
   to keep the heart in the purchase row instead of the absolute module position. */
@layer ps-pages {
/* The wishlist Vue component replaces its wrapper with an absolutely positioned
   button. Reset it here so the heart stays in the purchase row. */
#product .wfac3d__wishlist-slot .wishlist-button-add {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  width: 3rem !important;
  min-width: 3rem !important;
  height: 3rem !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #c9673b !important;
  border-radius: .4rem !important;
  background: #fffdfb !important;
  color: #c9673b !important;
  box-shadow: none !important;
  transform: none !important;
}

#product .wfac3d__wishlist-slot .wishlist-button-add:hover,
#product .wfac3d__wishlist-slot .wishlist-button-add:focus-visible {
  border-color: #a94e2c !important;
  background: #f8e9df !important;
  color: #a94e2c !important;
  opacity: 1 !important;
}

#product .wfac3d__wishlist-slot .wishlist-button-add i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  color: inherit !important;
  font-size: 1.85rem !important;
  line-height: 1 !important;
}

/* The configurator renders its own wishlist mount point; hide the original hook output. */
#product .product__actions-qty-add.wfac3d-actions-integrated > .wishlist-button,
#product .product__actions-qty-add.wfac3d-actions-integrated > .wishlist-button-add {
  display: none !important;
}

#product .wfac3d__purchase .wishlist-button-product {
  margin-left: 0 !important;
}
}
