/* -------------------------------------- */
/* PRIS-SKJULER OG TOTAL-SKJOLD           */
/* -------------------------------------- */

/* Skjul nul-prisen for "Sammensæt selv"-produkter på shop-oversigten */
li.product:has(.tc-extra-product-options) .wc-block-components-product-price,
li.product:has(.tc-extra-product-options) > .price {
    visibility: hidden !important;
}

/* Skjul nul-prisen i toppen på "Sammensæt selv"-produkter */
body:has(.tc-extra-product-options) .wp-block-woocommerce-product-price {
    display: none !important;
}

/* Skjul prisen ud for valgmuligheder (radio og checkbox) */
.tc-extra-product-options .tm-radio .tc-price-wrap,
.tc-extra-product-options .tm-checkbox .tc-price-wrap {
    display: none !important;
}

/* SKJOLD: Tving altid totalprisen i bunden til at være synlig (Tapas/Buffet) */
html body .tc-totals-form .price,
html body .tc-totals-form .amount,
html body .tc-totals-form .woocommerce-Price-amount {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fjern kr. 0.00 ud for selve checkbox og radio-knapperne */
.tc-extra-product-options li .tc-price-wrap,
.tc-extra-product-options li .amount {
    display: none !important;
}

/* Skjul nul-prisen på selve shop-oversigten for Buffet og Tapas */
.post-1133 .wc-block-components-product-price,
.post-1133 .price,
.post-1217 .wc-block-components-product-price,
.post-1217 .price {
    visibility: hidden !important;
}

/* 1. Skjul den gamle pris på BEGGE arrangementer */
.postid-1244 .wp-block-woocommerce-product-price .wc-block-components-product-price,
.postid-1275 .wp-block-woocommerce-product-price .wc-block-components-product-price {
    display: none !important;
}

/* 2. Indsæt priserne med Voksen øverst på BEGGE arrangementer */
.postid-1244 .wp-block-woocommerce-product-price::after,
.postid-1275 .wp-block-woocommerce-product-price::after {
    content: "Voksen: 120 kroner \A Barn: 60 kroner"; 
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #000000 !important; 
    white-space: pre-wrap !important;
    display: block !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

/* -------------------------------------- */
/* FIX TIL KORT BESKRIVELSE (LANDMAD)     */
/* -------------------------------------- */

/* 1. Skjul den flade tekst fra temaet på BEGGE varer */
.postid-1244 .wp-block-post-excerpt,
.postid-1244 .woocommerce-product-details__short-description,
.postid-1275 .wp-block-post-excerpt,
.postid-1275 .woocommerce-product-details__short-description {
    font-size: 0 !important;
    line-height: 0 !important;
}

/* 2A. Indsæt tekst: KYLLING DANOISE (ID: 1244) */
.postid-1244 .wp-block-post-excerpt::after,
.postid-1244 .woocommerce-product-details__short-description::after {
    content: "𝗠𝗲𝗻𝘂: Kylling Danoise \A 𝗗𝗮𝘁𝗼: 21. april 2026 \A 𝗧𝗶𝗱𝘀𝗽𝘂𝗻𝗸𝘁: Kl. 18.00";
    font-size: 22px !important; 
    color: #000000 !important;
    white-space: pre-wrap !important;
    display: block !important;
    line-height: 1.6 !important;
    margin-top: 20px !important;
}

/* 2B. Indsæt tekst: HØNS I ASPARGES (ID: 1275) */
.postid-1275 .wp-block-post-excerpt::after,
.postid-1275 .woocommerce-product-details__short-description::after {
    content: "𝗠𝗲𝗻𝘂: Høns i asparges \A 𝗗𝗮𝘁𝗼: 13. maj 2026 \A 𝗧𝗶𝗱𝘀𝗽𝘂𝗻𝗸𝘁: Kl. 18.00";
    font-size: 22px !important; 
    color: #000000 !important;
    white-space: pre-wrap !important;
    display: block !important;
    line-height: 1.6 !important;
    margin-top: 20px !important;
}

/* Styling af Næste og Tilbage (Owl Carousel) */
.owl-nav .owl-prev.button,
.owl-nav .owl-next.button {
    display: inline-block !important;
    padding: 12px 28px !important;
    background-color: #6fb2ad !important;
    color: #ffffff !important; 
    border-radius: 6px !important; 
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 20px !important; 
    transition: background-color 0.3s ease !important;
}

.owl-nav .owl-prev.button {
    margin-right: 15px !important;
}

.owl-nav .owl-prev.button:hover,
.owl-nav .owl-next.button:hover {
    background-color: #528b87 !important; 
}

/* -------------------------------------- */
/* TVING POP-UP NED I HØJRE HJØRNE + FIX  */
/* -------------------------------------- */
html body .pum-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    max-width: 350px !important; 
    width: 90% !important; 
    max-height: 85vh !important;
    overflow-y: auto !important;
    background-color: #d1d4a6 !important; 
    padding: 40px !important; 
    border-radius: 5px !important;
    display: flex !important; 
    flex-direction: column !important; 
}

html body .pum-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    color: #000000 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    text-shadow: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 5px !important;
    z-index: 10 !important;
}

html body .pum-container h3 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 24px !important;
    color: #000000 !important;
}

/* -------------------------------------- */
/* GLOBAL VISIBILITY CLASSES              */
/* -------------------------------------- */
.desktop-only { 
    display: block !important; 
}

.mobile-only {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
    .mobile-only {
        display: block !important;
        height: auto !important;
        min-height: unset !important;
        max-height: unset !important;
        overflow: visible !important;
    }
}

/* -------------------------------------- */
/* CONTACT FORM 7 STYLING                 */
/* -------------------------------------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 18px 15px; 
    font-size: 16px; 
    margin-top: 5px; 
    margin-bottom: 25px; 
    box-sizing: border-box; 
    border: 1px solid #cccccc; 
    background-color: #ffffff;
}

.wpcf7 input[type="submit"] {
    background-color: #000000; 
    color: #ffffff; 
    padding: 20px 50px; 
    font-size: 18px; 
    border: none; 
    font-weight: bold;
    text-transform: uppercase; 
    cursor: pointer; 
}

/* -------------------------------------- */
/* BREVO NYHEDSBREV FORMULAR              */
/* -------------------------------------- */
.brevo-nyhedsbrev p {
    font-weight: bold;
    margin-bottom: 5px;
}

.brevo-nyhedsbrev input[type="text"],
.brevo-nyhedsbrev input[type="email"] {
    width: 100%;
    padding: 18px 15px; 
    font-size: 16px; 
    margin-top: 5px; 
    margin-bottom: 25px; 
    box-sizing: border-box; 
    border: 1px solid #cccccc; 
    background-color: #ffffff;
}

.brevo-nyhedsbrev input[type="submit"] {
    background-color: #000000; 
    color: transparent !important; 
    padding: 20px 50px; 
    font-size: 18px; 
    border: none; 
    font-weight: bold;
    cursor: pointer; 
    width: 100%; 
    box-sizing: border-box; 
}

.brevo-nyhedsbrev input[type="submit"]:hover {
    opacity: 0.8;
}

.brevo-nyhedsbrev p:last-of-type {
    position: relative !important;
    margin-bottom: 0 !important;
}

.brevo-nyhedsbrev p:last-of-type::after {
    content: "Tilmeld dig nyhedsbrevet" !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    text-align: center !important;
    color: #ffffff !important; 
    font-size: 18px !important;
    font-weight: bold !important;
    pointer-events: none !important; 
}

/* -------------------------------------- */
/* GØR RADIO-KNAP TIL EN KÆMPE "NÆSTE" KNAP */
/* -------------------------------------- */
.tc-extra-product-options .stor-naeste-knap .tc-label.tm-epo-field-label { 
    display: none !important; 
}

.tc-extra-product-options .stor-naeste-knap input[type="radio"],
.tc-extra-product-options .stor-naeste-knap .tc-radio-image,
.tc-extra-product-options .stor-naeste-knap .tm-radio,
.tc-extra-product-options .stor-naeste-knap .tc-price-wrap,
.tc-extra-product-options .stor-naeste-knap .amount,
.tc-extra-product-options .stor-naeste-knap .tm-epo-field-price { 
    display: none !important; 
}

.tc-extra-product-options .stor-naeste-knap label {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 20px 40px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
    margin-top: 15px !important;
}

.tc-extra-product-options .stor-naeste-knap label:hover {
    background-color: #333333 !important;
    transition: 0.3s !important;
}

/* -------------------------------------- */
/* UX EFFEKT TIL "TILFØJ TIL KURV" KNAP   */
/* -------------------------------------- */
@keyframes hopEffekt {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.single_add_to_cart_button.klar-til-kurv,
button[name="add-to-cart"].klar-til-kurv,
.add_to_cart_button.klar-til-kurv {
    background-color: #4CAF50 !important; 
    color: #ffffff !important;
    animation: hopEffekt 0.4s ease forwards !important; 
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4) !important; 
    border: none !important;
}

/* -------------------------------------- */
/* KALENDER & DATO-FELT STYLING           */
/* -------------------------------------- */

/* Gør overskriften elegant */
.tc-extra-product-options .tm-epo-field-label {
    font-weight: 600 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    display: block !important; 
}

/* Det rene datofelt */
.tc-extra-product-options input[type="text"].tm-epo-field.tm-epo-datepicker {
    width: 100% !important; 
    max-width: 250px !important;
    padding: 12px 15px !important; 
    border: 1px solid #d1d1d1 !important; 
    border-radius: 4px !important; 
    font-size: 15px !important; 
    background-color: #ffffff !important; 
    box-shadow: none !important;
    cursor: pointer !important; 
    margin: 0 !important;
}

/* Sort kant ved klik */
.tc-extra-product-options input[type="text"].tm-epo-field.tm-epo-datepicker:focus {
    border-color: #000000 !important;
    outline: none !important;
}

/* Skjul det drilske kalender-ikon fuldstændig */
.tc-extra-product-options button.ui-tm-datepicker-trigger,
.tc-extra-product-options .ui-datepicker-trigger,
.tc-extra-product-options button.ui-datepicker-trigger,
.tc-extra-product-options img.ui-datepicker-trigger,
.tc-extra-product-options .tm-epo-datepicker-trigger,
.tc-extra-product-options i[class*="calendar"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* -------------------------------------- */
/* SMØRREBRØD: GRØN KANT OM VALGTE BILLEDER */
/* -------------------------------------- */

/* Ændrer den sorte ramme til turkis, når et billede er valgt */
.tc-extra-product-options .tc-active img,
.tc-extra-product-options .tc-active .tc-image-wrapper,
.tc-extra-product-options .tm-image.tc-active img,
.tc-extra-product-options label.tc-active img {
    border: 3px solid #6fb2ad !important; /* Den turkise farve */
    border-radius: 2px !important; /* Gør hjørnerne en anelse bløde */
    box-shadow: 0 0 8px rgba(111, 178, 173, 0.4) !important; /* Giver den en lille "glød" så det er super tydeligt */
    transition: all 0.3s ease !important;
}

/* -------------------------------------- */
/* FLOTTE +/- KNAPPER TIL SMØRREBRØD      */
/* -------------------------------------- */

/* Skjul de små grimme standard-pile i browseren */
.tc-extra-product-options input[type=number]::-webkit-inner-spin-button, 
.tc-extra-product-options input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.tc-extra-product-options input[type=number] {
    -moz-appearance: textfield; 
}

/* Vores nye indpakning til talfeltet */
.madhus-qty-wrapper {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
    background: #ffffff;
}

/* Design af - og + knapperne */
.madhus-qty-btn {
    background-color: #f4f4f4;
    border: none;
    color: #333333;
    font-size: 20px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Gør dem til din signatur-turkise farve, når musen holdes over */
.madhus-qty-btn:hover {
    background-color: #6fb2ad;
    color: #ffffff;
}

/* Selve input-feltet (tallet) i midten */
.madhus-qty-wrapper input.tm-qty,
.madhus-qty-wrapper input[type="number"] {
    border: none !important;
    text-align: center !important;
    width: 50px !important;
    height: 40px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #000000 !important;
}

/* Gør mængden i kurven mere logisk for kunden */
.woocommerce-cart table.cart td.product-quantity .quantity::after {
    content: " samlet bestilling";
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
}

/* -------------------------------------- */
/* RET KNAPPER PÅ PRODUKT-OVERSIGT IND    */
/* -------------------------------------- */
.woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
}

.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Tvinger billedet og teksten til at fylde udkradset */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product > .product-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Sikrer at knappen altid ender nederst */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    margin-top: auto !important;
    align-self: center !important;
    width: 100% !important; /* Holder dem ensartede i bredden */
}