dialog.owlModal .wpkqcg_qrcode_wrapper {
    text-align: center;
}

.owlWishlistHeader {
    h1 {
        margin: 0;
    }
}

.owlProductItemsTable {
    td:first-child {
        width: 50%;
    }
}

.owlTextItemsTable {
    td:first-child {
        width: 60%;
    }
}

.owlWishlistGiftCards {
    & > h2 {
        margin: 1rem 0 0;
    }

    & > p {
        padding-bottom: 0.5rem;
    }

    .owlWishlistGiftCardsInner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;

        & > div {
            border: 2px solid var(--owl-color-text-environment);
            background-color: #13820022;
            padding: 1rem 1rem 1.5rem;
            border-radius: 10px;

            dl {
                display: grid;

                dt {
                    grid-column: 1;
                }

                dd {
                    grid-column: 2;
                }
            }
        }
    }

    @media screen and (width >= 1000px) {
        .owlWishlistGiftCardsInner {
            grid-template-columns: 1fr 1fr;
        }
    }
}

.owlTable {
    margin: 0 !important;

    th:not(:first-child) {
        text-align: center !important;
    }

    td {
        vertical-align: middle;
        font-size: 1rem !important;

        &:not(:first-child) {
            text-align: center;
        }
    }

    a.owlProductImageAndTitle {
        display: flex;
        gap: 1rem;
        align-items: center;
        width: fit-content;
        
        img {
            width: 80px;
            margin-bottom: 0 !important;
        }
    }

    .owlQuantityContainer {
        white-space: nowrap;
        
        .owlQuantityInput {
            font-size: 1.15rem !important;
            font-weight: 600;
        }
    }
}

.owlAddAllToCart {
    float: right;
    margin: 1rem 0;
}

#owlProductSingleContainer {
    .owlButton {
        width: 100%;
        display: block;
    }
}

@media print {
    body.single-onskalistan, body.page-id-29 {
        #header-space,
        #header-outer,
        #footer-outer,
        button,
        .owlProductItemsTable th:nth-child(3), /* remove product column */
        .owlProductItemsTable td:nth-child(3), /* remove product column */
        .owlProductItemsTable th:nth-child(5), /* buy product column */
        .owlProductItemsTable td:nth-child(5), /* buy product column */
        .owlTextItemsTable th:nth-child(3), /* buy product column */
        .owlTextItemsTable td:nth-child(3), /* buy product column */
        .owlHideOnPrint,
        .woocommerce-MyAccount-navigation /* 'My account' sidebar */
        {
            display: none;
        }

        .owlProductImageAndTitle img {
            width: 50px !important;
        }

        * {
            color: var(--owl-color-text-print) !important;
            background-color: transparent !important;
        }

        .woocommerce-MyAccount-content { /* main page content on 'My account' page */
            width: 100%;
        }

        dialog#owlSetWishlistVisibilityModal_wl190791 {
            display: block;
            position: static;
            opacity: 1;
            box-shadow: none;
            border: none;
            margin: 0;
            padding: 0;

            & > div {
                display: block;
                
                & > *:not(.wpkqcg_qrcode_wrapper, .copyForm) {
                    display: none;
                }
            }

            img {
                width: 150px !important;
            }

            .wpkqcg_qrcode_wrapper {
                text-align: left;
            }

            input {
                border: none;
                font-size: 1rem;
            }
        }
    }
}

.owlWishlistSearch {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.owlWishlistSearch .owlWishlistSearchInput {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.owlWishlistSearch .owlWishlistSearchInput:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* The dropdown panel */
.owlWishlistSearch .owlWishlistSearchDropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.owlWishlistSearchDropdown[hidden] {
    display: none;
}

.owlWishlistSearchMessage {
    margin: 0;
    padding: 12px 16px;
    color: #666;
    font-size: 14px;
}

.owlWishlistSearchMessage[hidden] {
    display: none;
}

/* The result rows */
.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 320px;
    overflow-y: auto;
}

.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #eee;
}

.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults li::marker,
.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults li::before {
    content: none !important;
    display: none !important;
}

.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults li:last-child {
    border-bottom: none;
}

.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    color: #222;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
    transition: background-color 0.15s ease, padding-left 0.15s ease;
}

/* Small arrow on the right, so each row feels clickable like a menu item */
.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults li a::after {
    content: "\203A";
    color: #aaa;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease;
}

.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults li a:hover,
.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults li a:focus {
    background: #f2f2f2;
    padding-left: 22px;
    outline: none;
}

.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults li a:hover::after,
.owlWishlistSearch .owlWishlistSearchDropdown ul.owlWishlistSearchResults li a:focus::after {
    color: #222;
    transform: translateX(3px);
}

.owlWishlistSearch {
    position: relative;
    z-index: 99999;
}

/* Lift the row/column that contains the search above the sections below it */
.vc_row:has(.owlWishlistSearch),
.wpb_column:has(.owlWishlistSearch),
.wpb_wrapper:has(.owlWishlistSearch),
.nectar-global-section:has(.owlWishlistSearch) {
    position: relative;
    z-index: 99999;
}

/* Visible only when printing (used for the author's "Kvar att köpa" column) */
.owlPrintOnly {
    display: none;
}

@media print {
    th.owlPrintOnly,
    td.owlPrintOnly {
        display: table-cell !important;
    }
}