/* Archive Pages */
.tax-product_cat .wd-page-title .wd-back-btn,
.tax-product_tag .wd-page-title .wd-back-btn,
.tax-product_brand .wd-page-title .wd-back-btn {
    display: none;
}

.tax-product_library .woocommerce-result-count,
.tax-product_series .woocommerce-result-count,
.tax-product_author .woocommerce-result-count {
    display: none;
}

.tax-product_library .sidebar-container,
.tax-product_series .sidebar-container {
    --wd-col-lg: 2 !important;
}

.tax-product_library .site-content,
.tax-product_series .site-content {
    --wd-col-lg: 10 !important;
}

.term-description {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

a.wd-load-more {
    background: var(--wd-primary-color);
    color: #fff;
}
a.wd-load-more:hover {
    background: var(--wd-alternative-color);
    color: #fff;
    border-color: var(--wd-alternative-color);
}
.btn.wd-load-more-loader {
    border:none !important;
}

/* Filter Everything */
/* Filter Everything: hide filters without available terms */
.wpc-filters-section:has(.wpc-no-filter-terms) {
    display: none !important;
}

/* Filter Everything: hide the current taxonomy from filters */
.tax-product_library .wpc-filters-section.wpc-filter-product_library,
.tax-product_series .wpc-filters-section.wpc-filter-product_series {
    display: none !important;
}
/* Filter Everything: hide result count */
.wpc-posts-found {
    display: none !important;
}

.wpc-filters-main-wrap .wpc-filters-section:not(.wpc-filter-terms-count-0) ul.wpc-filters-labels {
    flex-direction: column;
}

.wpc-filter-chips-list a,
.wpc-filter-chips-list li.wpc-filter-chip>span.wpc-apply-button-chip,
.wpc-filter-chips-list span[data-wpc-span-link],
body .wpc-filter-chips-list li.wpc-filter-chip a,
body .wpc-filter-chips-list li.wpc-filter-chip span[data-wpc-span-link],
body .wpc-filter-chips-list li.wpc-filter-chip>span.wpc-apply-button-chip,
.wpc-filters-widget-content .wpc-filters-section input[type="number"],
.wpc-filters-widget-content .wpc-filters-section input[type="text"] {
    border-radius: 0px !important;
}
.wpc-filters-main-wrap input[type=checkbox]:after {
    border-radius: 0px !important;
    border: none !important;
}
.wpc-term-image-wrapper {
    border-radius: 0px !important;
    width: unset !important;
    min-width: unset !important;
}
body .wpc-filter-chips-list li.wpc-chip-reset-all a, body .wpc-filter-chips-list li.wpc-chip-reset-all span.wpc-apply-button-chips-reset {
    background-color: #dc0018 !important;
    border: none !important;
    color: #fff !important;
}
.wpc-filter-chip-name {
    white-space: normal !important;
}

.wpc-filters-main-wrap input[type=checkbox], .wpc-filters-main-wrap input[type=radio] {
    border-radius: 0px !important;
}
.wpc-filters-main-wrap a.wpc-toggle-a {
    font-size: 12px;
    border: none !important;
    position: relative;
}
.wpc-filters-main-wrap a.wpc-toggle-a:hover {
    opacity: 1 !important;
}
.wpc-filters-main-wrap a.wpc-toggle-a:before,
.product-author a:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background-color: #999;
    bottom: 0;
    left: 0;
}
.wpc-filters-main-wrap a.wpc-toggle-a:hover:before,
.product-author a:hover:before {
    background-color: var(--wd-primary-color);
}

/* Loop item */
.woocommerce .wd-page-content .price {
    display: flex !important;
    align-items: baseline;
    gap: 10px;
    justify-content: start;
}
.woocommerce.archive .wd-page-content .price,
.woocommerce .wd-page-content .wd-products-element .price {
    justify-content: center;
}

.woocommerce .price ins {
    order: 1;
}
.woocommerce .price del {
    order: 2;
    text-decoration-color: #dc0018;
    color: #999;
}
/* Product labels */
:where(.wd-loop-builder-off) .product-labels {
    top: 10px !important;
    inset-inline-start: 0px !important;
}
.product-label.preorder-label {
    padding: 5px 10px;
    min-width: 50px;
    text-align: center;
    text-transform: uppercase;
    word-break: break-all;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    background-color: #689cc9;
    color: #fff;
}

.product-grid-item .wd-buttons.wd-pos-r-t {
    display:none;
}

/* Out of stock: replace cart icon with "view" icon */
.wd-product.outofstock .wd-add-btn .wd-action-icon:before {
    content: "\f11a" !important;
}

.wd-product.wd-hover-quick .wd-add-btn {
    opacity: 1 !important;
}
.wd-product.wd-hover-quick .wd-add-btn,
.wd-product.wd-hover-quick .wd-add-btn>a {
    border-radius: 0 0 10px 10px !important;
}

/* Equal image area + bottom aligned book covers */
.product-grid-item .product-image-link {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 7 / 10;
}

.product-grid-item .product-image-link img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    object-fit: cover;
}
.products.wd-products .wd-entities-title a:hover {
    color: var(--wd-alternative-color);
}

.products.wd-products .product-author a {
    font-size: 12px;
    color: #999;
    position: relative;
     display: inline-block;
}
.products.wd-products .product-author a:hover {
    color: #000;
}

/* Author profile */
.author-profile {
    padding: 10px 0 50px;
}
.author-profile.has-image {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: start;
}
.author-image {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    max-height: 320px;
    margin-left: auto;
    margin-right: auto;
}
.author-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
}

@media (max-width: 1024px) {

    .author-profile.has-image {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .author-profile.has-image {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .author-image {
        max-width: 200px;
        margin-left: 0;
    }
}

.author-books-section {
    position: relative;
    z-index: 0;
    padding-top: 60px;
    padding-bottom: 60px;
}

.author-books-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 50%;
    margin: 0 -50vw;
    background-color: #f5f5f5;
}

.tax-product_author .wd-products {
    --wd-col-lg: 6 !important;
}

.author-title {
    margin-bottom: 10px;
}
.author-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    color: #999;
    font-weight: 600;
}
.author-original-name {
    font-weight: 600;
}

.author-original-name + .author-website::before {
    content: "•";
    margin-right: 5px;
    color: #999;
}

.author-website::after {
    content: "\f11c";
    font-family: "woodmart-font";
    margin-left: 3px;
    font-size: 0.85em;
}


/* Single Book */
.single-product .wd-gallery-images .wd-carousel-wrap {
    align-items: flex-end;
} 

.wd-product-nav-desc .wd-entities-title {
    font-size: 12px;
}
.wd-product-nav-desc span.price {
    display: none !important;
}
@media (max-width: 440px) {
    table.variations label {
        margin-bottom: 10px !important;
    }
}

.book-author-link {
    color: #999;
    font-weight: 600;
}
.book-author-link:hover {
    color: var(--wd-link-color);
}

.single-product-page.product-type-variable .wd-single-price {
    width: 100% !important;
    margin-bottom: 20px;
}
.single-product-page .wd-attr-selected {
    display: none !important;
}

p.stock.out-of-stock {
    margin-bottom: 15px;
}

.book-backorder-notice {
    background-color: #689cc9;
    color: #fff;
    font-size: 12px;
    padding: 5px;
    border-radius: 0;
    text-align: center;
    margin-bottom: 20px !important;
}

/* Frequently Bought Together */
.book-fbt-row:not(:has(.wd-single-fbt > *)) {
    display: none !important;
}
.wd-fbt.wd-design-side .wd-fbt-form {
    border-left: 1px solid #dbdbdb;
    background-color: transparent !important;
    border-radius: 0 !important;
}

@media (max-width: 1024px) {
    .wd-fbt.wd-design-side {
        grid-template-columns: 1fr var(--wd-form-width, 350px) !important;
    }
}

@media (max-width: 767px) {
    .wd-fbt.wd-design-side {
        grid-template-columns: 1fr !important;
    }
}
@media (min-width: 426px) and (max-width: 767px) {
    .wd-fbt-form {
        flex-direction: row !important;
    }
}

@media (max-width: 425px){
    .wd-fbt.wd-design-side .wd-fbt-form {
        border-left: none;
        border-top: 1px solid #dbdbdb;
        text-align: center;
        padding-bottom: 0 !important;
    }
    .wd-fbt.wd-design-side .wd-fbt-form .wd-fbt-purchase {
        border-top: 1px solid #dbdbdb;
        padding-top: 20px;
    }
    .wd-fbt.wd-design-side .wd-fbt-form .price {
        justify-content: center;
    }
}

/* Newsletter */
.book-newsletter-subscription .wpcf7-submit {
    display: block;
    margin: 25px auto 0;
}

.book-newsletter-col > .vc_column-inner,
.book-newsletter-col > .vc_column-inner > .wpb_wrapper {
    height: 100%;
}

.book-newsletter-col > .vc_column-inner > .wpb_wrapper {
    display: flex;
    flex-direction: column;
}

.book-newsletter-subscription {
    flex: 1;
}

.book-newsletter-subscription > .wpb_column {
    display: flex;
    height: 100%;
}

.book-newsletter-subscription > .wpb_column > .vc_column-inner {
    width: 100%;
    height: 100%;
}

.shop_attributes td a {
    color: var(--wd-alternative-color);
}
.shop_attributes td a:hover {
    color: var(--wd-primary-color);
}

.book-upsells-row:not(:has(.wd-products-element)) {
    display: none !important;
}

/* Search results: equal image area + bottom aligned book covers */
.wd-search-results .wd-suggestion-thumb {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 7 / 10;
}

.wd-search-results .wd-suggestion-thumb img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.wd-search-results .wd-suggestion-title {
    justify-content: center;
    text-align: center;
}

.wd-search-results .wd-search-product-author {
    margin: 5px 0 10px;
    font-size: 12px;
    color: #999;
    line-height: 1.25;
}

@media (min-width: 1024px) {
    .wd-search-results .wd-suggestion-content,
    .wd-search-results .wd-search-product-author, 
    .wd-search-results .price{
        text-align: center;
    }
}

/* Search results: sale prices */
.wd-search-results .price {
    display: flex !important;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.wd-search-results .price ins {
    order: 1;
}

.wd-search-results .price del {
    order: 2;
}

/* Cart */
@media (min-width: 769px) {
    .wd-checkout-steps .step-active>:is(a,span) {
        text-decoration: none !important;
    }
}
ul.variation .item-variation-name,
.variation .item-variation-value {
    font-size: .9em;
}
.woocommerce-shipping-destination {
    display: none;
    visibility: hidden;
}
.woocommerce-cart #shipping_method li {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
}
.woocommerce-cart #shipping_method input.shipping_method:checked + label {
    color: var(--wd-alternative-color);
}

/* Checkout */
#billing_country_field,
label[for="order_comments"] {
    display: none !important;
    visibility: hidden;
}
#billing_invoice_requested_field {
    text-align: center;
}
.woocommerce-shipping-totals.shipping {
    border-bottom: none !important;
}
.woocommerce-shipping-totals.shipping th,
.woocommerce-checkout .payment-section-title {
    text-transform: uppercase;
}
.shop_table.woocommerce-checkout-review-order-table .cart-product-label {
    font-weight: 600;
}
.shop_table tr.custom-shipping-methods td {
    text-align: start !important;
}

.woocommerce-checkout #shipping_method li label,
.woocommerce-checkout ul.woocommerce-shipping-methods li label {
    display: inline;
}
.shop_table tr.custom-shipping-methods input.shipping_method {
    float: none !important;
    top: 0 !important;
    vertical-align: middle;
    margin: 3px .4375em 0 0;
}
.shop_table tr.custom-shipping-methods input.shipping_method:checked + label,
.woocommerce-checkout .wc_payment_method input[type="radio"]:checked + label {
    color: var(--wd-alternative-color);
}
table.shop_table #box_now_delivery_button {
    margin: 5px 20px;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.woocommerce-checkout .boxnow-selected-locker-info .boxnow-locker-label,
.woocommerce-page .boxnow-selected-locker-info .boxnow-locker-label,
.wc-block-checkout .boxnow-selected-locker-info .boxnow-locker-label {
    color: var(--wd-alternative-color) !important;
}

.woocommerce-checkout .boxnow-selected-locker-info,
.woocommerce-page .boxnow-selected-locker-info {
    border-radius: 0;
    box-shadow: none;
    background-color: #ffffff !important;
    color:#000 !important;
}

table.shop_table #speedy_office_city_field, 
table.shop_table #speedy_office_field,
table.shop_table .shipping-method-speedy-address > p{
    background: #fff;
    padding: 15px;
}
table.shop_table #speedy_office_city_field, 
table.shop_table #speedy_office_field,
table.shop_table .shipping-method-speedy-address > p:first-child {
    margin-top: 15px;
}
@media (min-width: 768px) {
    table.shop_table .shipping-method-speedy-address > p:nth-child(2) {
        margin-top: 15px;
    }
    p.form-row-first {
        float: left;
    }
    p.form-row-last {
        float: right;
    }
    p.form-row-wide {
        clear: both;
    }
    p:where(.form-row-first,.form-row-last) {
        overflow: visible;
        width: 48%;
    }
}

.woocommerce-terms-and-conditions-wrapper {
    text-align: center;
    padding-bottom: 20px;
}

.payment_methods .payment_box {
    border-radius: 0 !important;
    box-shadow: none !important;
}

#ws_opt_in_field {
    text-align: center;
    margin-top: -25px;
    margin-bottom: 35px;
}

/* Thank you */
.wd-el-tp-payment-instructions {
    text-align: center;
}
.woocommerce-order-overview.woocommerce-thankyou-order-details li > span,
span.shipped_via {
    font-weight: 600;
}
.woocommerce-order-overview.woocommerce-thankyou-order-details li > strong {
    font-weight: normal;
}

/* My account */
.wd-login-title {
    text-align: center;
}
.woocommerce-MyAccount-content {
    padding-bottom: 50px;
}
.woocommerce-account .woocommerce-table--order-details ul.wc-item-meta .wc-item-meta-label {
    vertical-align: inherit;
}
section.woocommerce-customer-details.invoice-details {
    float: right;
}
section.woocommerce-customer-details {
    float: left;
}
section.woocommerce-customer-details.invoice-details,
section.woocommerce-customer-details {
    width: 48%;
    text-align: left;
}
@media (max-width: 540px) {
    section.woocommerce-customer-details.invoice-details,
    section.woocommerce-customer-details {
        width: 100%;
        float: none;
    }
}

/* Notices */
:is(.woocommerce-error,.woocommerce-message,.woocommerce-info) {
    border-radius: 0 !important;
}

/* Blog related products */
.blog-related-products .price {
    display: flex !important;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.blog-related-products .price ins {
    order: 1;
}

.blog-related-products .price del {
    order: 2;
    color: #999;
    text-decoration-color: #dc0018;
}