/*
 Theme Name:   Divi Child Screenpublisher
 Theme URI:    https://screenpublisher.com
 Description:  Child theme til Screenpublisher baseret på Divi 5
 Author:       Screenpublisher
 Template:     Divi
 Version:      1.0.0
*/

/* Herunder kan du indsætte din egen CSS */

/* Styling af tabeller i Specifikations-fane */
.product-specs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #eeeeee;
}


/* Styling af celler */
.product-specs-content td, 
.product-specs-content th {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
}

/* Gør første kolonne fed (ofte titlen på specifikationen) */
.product-specs-content td:first-child {
    font-weight: bold;
    width: 30%;
    background-color: #fafafa;
}

/* Responsiv tabel til mobil */
@media screen and (max-width: 600px) {
    .product-specs-content table {
        display: block;
        overflow-x: auto;
    }
}

/* Fjern shipping options på Cart siden (Woo Cart Totals module)*/
.woocommerce-cart .cart_totals .shipping,
.woocommerce-cart .cart-collaterals .shipping,
.et_pb_wc_cart_totals .shipping {
  display: none !important;
}

/* Ensretter højden på Country dropdown med de øvrige felter */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 44px !important; /* Juster dette tal så det matcher dine andre felter præcis */
    border: 1px solid #e7e9eb !important;
    display: flex;
    align-items: center;
}

/* Centrerer teksten vertikalt inde i dropdown-feltet */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    color: #6a6f74; /* Skifer grå */
}

/* Centrerer selve pilen vertikalt */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important; /* Lad den fylde hele feltets højde */
    top: 0 !important;
    right: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fjerner den gamle pil-positionering (nødvendigt i nogle temaer) */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: 0 !important;
    top: auto !important;
    position: relative !important;
}

/* Søgeikon på søgefelt i blog istedet for"search" tekst */

/* 1. Skjul den originale tekst og knap-styling */
.et_pb_search .et_pb_searchsubmit {
    color: transparent !important;
    background: transparent !important;
    border: none !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* 2. Indsæt ikonet direkte på søge-modulet */
.et_pb_search::after {
    content: 'U' !important; /* 'U' er koden for luppen i ETmodules */
    font-family: 'ETmodules' !important;
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    transform: translateY(-50%) scaleX(-1) !important;
    font-size: 20px !important;
    color: #cfd2d5 !important;
    z-index: 99 !important;
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
}

/* 3. Gør selve inputfeltet klikbart og pænt */
.et_pb_search input.et_pb_s {
    padding-right: 50px !important;
    border-radius: 50px !important;
    position: relative !important;
    z-index: 5 !important;
}


/* Stopper alle indbyggede CSS-animationer og transforms */
/*
.et_pb_button, 
.et_pb_module .et_pb_button {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
*/

/* Sikrer at knapper ikke fader ind via JavaScript */
.et_pb_animation_top, 
.et_pb_animation_bottom, 
.et_pb_animation_left, 
.et_pb_animation_right, 
.et_pb_animation_fade_in {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
}

