/*
Theme Name: Foedevaredanmark Block Theme
Theme URI: https://foedevaredanmark.dk
Author: Netkant
Author URI: https://netkant.com
Description: Block theme for Foedevaredanmark 
Version: 1.0.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fd-block
*/

html {
    scrollbar-gutter: stable;
}


footer.wp-block-template-part {
    margin-top: 0;
}

.home main.entry-content {
    margin-top: 0;
}

body:not(.home) main {
    margin-top: 0;
    margin-bottom: 0;
}

body.woocommerce:not(.home) main {
    padding-top: 24px;
    padding-bottom: 24px;
}

.single-product .woocommerce-Price-unit.unit {
    margin-right: 12px;
}

body[data-gb-menu-open="full-overlay"]::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

form.checkout {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 32px;
}

form.checkout .col2-set {
    grid-column: span 6;
}

form.checkout .order-review-container {
    grid-column: span 4;
}

.col2-set#customer_details .col-1,
.col2-set#customer_details .col-2 {
    float: unset;
    width: 100%;
}

.woocommerce-page table.shop_table {
    width: 100%;
}

h3#ship-to-different-address label span {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.woocommerce form .form-row {
    margin-bottom: 0.5em;
}

.woocommerce-checkout main .woocommerce {
    max-width: 1140px;
}

.woocommerce-billing-fields h3 {
    margin-bottom: 16px;
}

.wc-block-mini-cart__footer-actions a {
    border-radius: 0;
}

.wc-block-mini-cart__footer-actions a:hover {
    background-color: var(--wp--preset--color--custom-medium-brown);
    color: var(--wp--preset--color--custom-white);

}

header .wp-block-search__button {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.wc-block-product-template .wc-block-product {
    background-color: var(--wp--preset--color--custom-medium-brown);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wc-block-product-template li.wc-block-product .wc-block-components-product-image {
    margin-bottom: 0 !important;
}

.wc-block-product-template li.wc-block-product .wp-block-post-title {
    margin-top: 8px !important;
}

.wc-block-product-template li.wc-block-product .wp-block-post-title a {
    word-break: normal;
}

.wc-block-product-template li.wc-block-product .wc-block-components-product-summary p:first-of-type {
    margin-top: 0;
}

.woocommerce-shipping-totals.shipping {
    /* display: flex; */
    /* flex-direction: column; */
    width: 100%;
}

.woocommerce-shipping-totals.shipping td {
    width: 100%;
}

.shop_table .delivery-notice {
    font-weight: 500;
    margin-top: 4px;
}

/* .shop_table tfoot {
    display: block;
} */

.woocommerce-shipping-totals.shipping th {
    display: block;
    width: 100%;
}

.woocommerce-shipping-totals.shipping td {
    display: block;
    width: 100%;
}

.shop_table strong {
    width: 100%;
    display: block;
}

.shop_table tr {
    width: 100%;
    max-width: unset;
}

.shop_table th {
    width: 100% !important;
    max-width: unset;
}

.shop_table .woocommerce-shipping-totals td {
    width: 100%;
    max-width: unset;
    border-top: none !important;
    padding-top: 0 !important;
}

tr.cart-subtotal td {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.shop_table p.delivery-notice {
    padding-left: 19px;
    width: 100%;
    margin-top: 0;
}

ul#shipping_method li {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    row-gap: 0;
    flex-wrap: wrap;
}

ul#shipping_method li input[type="radio"] {
    flex-shrink: 0;
    margin-top: 0.25em;
}

ul#shipping_method li label {
    flex: 1;
}

.woocommerce-page form .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 0 0 12px;
}

#nkt-variations-table {
    max-width: 1200px;
}

.wc-block-product-description.fd-description-clamped {
    position: relative;
    max-height: 200px;
    overflow: hidden;
}

.fd-description-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.fd-description-readmore {
    display: block;
    margin: 10px 0 0;
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
}

.wc-block-components-product-image.wc-block-grid__product-image .wc-block-woocommerce-product-gallery-large-image__image {
    object-position: top;
}

.nkt-vt-btn.wp-block-button__link {
    border-radius: 0;
}

table.ui-datepicker-calendar tr td a.ui-state-default {
    background: #00b000;
    color: #fff;
    text-align: center;
}

table.ui-datepicker-calendar tr td a.ui-state-active {
    background: #000000;
    color: #fff;
    text-align: center;
}

table.ui-datepicker-calendar tr td.ui-datepicker-unselectable span {
    background: #e6e6e6;
    text-align: center;
}

.fd-product-description-cta .wp-block-button__link.wp-element-button {
    border-radius: 0;
}

.wp-block-woocommerce-product-collection .is-product-collection-layout-carousel .wc-carousel {
    position: relative;
}

.wc-carousel {
    position: relative;
}

.wc-block-next-previous-buttons__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    height: 48px;
    width: 48px;
}

.wc-block-next-previous-buttons__button:first-of-type {
    left: -64px;
}

.wc-block-next-previous-buttons__button:last-of-type {
    right: -64px;
}

@media (max-width: 1320px) {
    .wc-block-next-previous-buttons__button:first-of-type {
        left: 32px;
    }

    .wc-block-next-previous-buttons__button:last-of-type {
        right: 32px;
    }
}

@media (max-width: 782px) {
    .wc-block-next-previous-buttons__button:first-of-type {
        display: none;
    }

    .wc-block-next-previous-buttons__button:last-of-type {
        display: none;
    }
}

.wp-block-woocommerce-product-price .woocommerce-Price-unit.unit {
    margin-right: 4px;
}

div[data-collection="woocommerce/product-collection/related"] ul[data-block-name="woocommerce/product-template"] div.wc-block-components-product-summary {
    padding: 10px 20px;
}

div[data-collection="woocommerce/product-collection/related"] ul[data-block-name="woocommerce/product-template"] ul.fa-ul {
    display: none;
}