/* Produktfelter (Advanced Product Fields) som i PDF-designeren. Gælder alle produkter undtagen fingeraftryksplakaterne (egen farve i "Wombat fix"). */
body.single-product:not(.is-modul-fingertryksplakat-product) .woocommerce-variation-add-to-cart .wapf,
body.single-product:not(.is-modul-fingertryksplakat-product) form.cart .wapf {
   background: #efebeb !important;
   border-radius: 4px !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf input[type="checkbox"]:not(:checked)+.wapf-custom {
   background: #fff !important;
}

/* Feltoverskrifter: Slabo 18px fed - samme som overskrifterne i designeren */
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-label,
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-label label,
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-label span,
body.customize-product label.customizer-p-input-label {
   font-family: "Slabo", serif !important;
   font-size: 18px !important;
   font-weight: 700 !important;
   line-height: 1.25 !important;
   color: #666 !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-label {
   margin-bottom: 8px !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-container+.wapf-field-container {
   margin-top: 14px !important;
}

/* Felter der folder sig ud (upload/link + vejledning): lysere boks tone i tone */
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-container.has-conditions {
   background: #f8f6f6 !important;
   border-radius: 4px !important;
   padding: 12px !important;
   margin-top: 10px !important;
   box-sizing: border-box !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-container.has-conditions .wapf-field-label,
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-container.has-conditions .wapf-field-label label,
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-container.has-conditions .wapf-field-label span {
   font-size: 16px !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-label-text,
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-pricing-hint,
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf input,
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-product-totals {
   font-family: "Open sans", sans-serif !important;
   font-size: 14px !important;
   color: #777 !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-description {
   font-family: "Open sans", sans-serif !important;
   font-size: 13px !important;
   line-height: 1.45 !important;
   color: #777 !important;
}

/* Link-/tekstfelter i samme stil som tekstfelterne i designeren */
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf input[type="url"],
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf input[type="text"] {
   width: 100% !important;
   height: auto !important;
   min-height: 44px !important;
   padding: 10px 12px !important;
   background: #fff !important;
   border: 1px solid #e1e1e8 !important;
   border-radius: 4px !important;
   box-sizing: border-box !important;
}

/* Mindre luft mellem designerens sidste felt og produktfelterne */
body.customize-product .product-addons-for-customizer_container {
   margin-bottom: 0 !important;
}

body.customize-product:not(.is-modul-fingertryksplakat-product) .woocommerce-variation-add-to-cart .wapf,
body.customize-product:not(.is-modul-fingertryksplakat-product) form.cart .wapf {
   margin-top: 0 !important;
}

/* Nøgleringe: vis eksempeltekst i tekstfelterne på mobil */
.product_cat-noegleringe .bpp-mocked-input:empty::before {
   color: #999;
   font-size: 14px;
}

.product_cat-noegleringe .bpp-mocked-input[data-uuid="df711203-80dc-43f7-bfb8-445bc6edec1a"]:empty::before {
   content: "Fx Mor, Far, Mormor, et navn eller Love";
}

.product_cat-noegleringe .bpp-mocked-input[data-uuid="83e88b98-a016-47f2-8ac9-3272fd9b6106"]:empty::before {
   content: "Fx en dato, Altid med dig eller Verdens bedste far";
}

/* Billedkort (fx Barnets Bog-omslag, papirtyper): ens højde på titler og mindre tekst, så kortene står lige */
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-card-title {
   min-height: 2.7em !important;
   display: flex !important;
   flex-direction: column !important;
   align-items: center !important;
   justify-content: center !important;
   line-height: 1.3 !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-card-desc,
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-card .wapf-pricing-hint {
   font-size: 12px !important;
   line-height: 1.3 !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-card-body {
   padding-bottom: 8px !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-field-group+.wapf-field-group {
   margin-top: 14px !important;
}

/* Kompakte billedkort: mindre luft, prisen lige under titlen */
body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-card-inner {
   gap: 6px !important;
   padding: 8px !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-card-body {
   gap: 2px !important;
   justify-content: flex-start !important;
   flex-grow: 0 !important;
   padding-bottom: 0 !important;
}

body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-card-title {
   min-height: 2.6em !important;
}

@media (min-width: 769px) {
   body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-card-title span {
      font-size: 14px !important;
   }
}

/* Mobil: lidt mindre tekst og luft i billedkortene. Babypakker: prisen på én linje */
@media (max-width: 768px) {
   body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-card-desc {
      font-size: 11px !important;
   }

   body.single-product:not(.is-modul-fingertryksplakat-product) .wapf .wapf-card-inner {
      padding: 6px !important;
   }

   .product_cat-babypakke .wapf .wapf-card-desc {
      white-space: nowrap !important;
   }
}

/* Babypakker på mobil: samme antal kort pr. række som på computer (fx aftrykssæt side om side) og kvadratiske billeder uden tom plads */
@media (max-width: 768px) {
   .product_cat-babypakke .wapf .wapf-card-wrap {
      grid-template-columns: repeat(var(--wapf-cols), minmax(0, 1fr)) !important;
   }

   .product_cat-babypakke .wapf .wapf-card-img,
   .product_cat-babypakke .wapf .wapf-card-img img {
      height: auto !important;
      max-height: none !important;
   }

   .product_cat-babypakke .wapf .wapf-card-img img {
      width: 100% !important;
      aspect-ratio: 1 / 1;
      object-fit: cover !important;
   }
}