.itala-ebook-choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 10px;
    margin: 16px 0;
    padding: 0;
    border: 0;
}

.single-product div.product .summary > p.price {
    display: none;
}

.single-product .fusion-woo-price-tb {
    display: none;
}

.single-product form.cart.is-itala-ebook-selected .quantity {
    display: none;
}

.itala-ebook-choice__option {
    position: relative;
    display: flex;
    min-height: 84px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 3px;
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #fff;
    color: #222;
    cursor: pointer;
    line-height: 1.25;
}

.itala-ebook-choice__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.itala-ebook-choice__option.is-selected {
    border-color: #1f6fae;
    background: #eef8ff;
    box-shadow: inset 0 0 0 1px #1f6fae;
}

.itala-ebook-choice__option.is-disabled {
    border-color: #ddd;
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.itala-ebook-choice__option.is-disabled .itala-ebook-choice__input {
    cursor: not-allowed;
}

.itala-ebook-choice__option:focus-within {
    outline: 2px solid #1f6fae;
    outline-offset: 2px;
}

.itala-ebook-choice__title,
.itala-ebook-choice__price {
    display: block;
    font-weight: 700;
}

.itala-ebook-choice__price {
    font-size: 1.04em;
}

.itala-ebook-choice__availability {
    color: #333;
    font-size: 0.93em;
}

.itala-ebook-open-access-label {
    display: inline-block;
    color: #1f1f1f;
    font-weight: 700;
    line-height: 1.3;
}

.woocommerce-cart .woocommerce-message,
.woocommerce-cart table.shop_table,
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals,
.woocommerce-cart .cart_totals table,
.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td,
.woocommerce-cart .cart_totals .shop_table,
.woocommerce-cart .fusion-woocommerce-cart-totals,
.woocommerce-checkout table.shop_table,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout .fusion-woocommerce-checkout-review-order-table {
    border-color: #d7d7d7 !important;
    border-style: none !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.woocommerce-cart :where([style*="border-color"]),
.woocommerce-checkout :where([style*="border-color"]) {
    border-style: none !important;
}

.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals,
.woocommerce-cart .cart_totals .shop_table,
.woocommerce-cart .fusion-woocommerce-cart-totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout .fusion-woocommerce-checkout-review-order-table {
    border-width: 0 !important;
    border-style: none !important;
    border-radius: 4px !important;
}

.woocommerce-cart .cart_totals .shop_table th,
.woocommerce-cart .cart_totals .shop_table td,
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    border-left: 0 !important;
    border-right: 0 !important;
}

.itala-ebook-archive {
    margin: 24px 0;
}

.itala-ebook-archive__heading {
    margin: 0 0 24px;
}

.itala-ebook-archive ul.products.itala-ebook-archive__products {
    display: grid;
    grid-template-columns: repeat(var(--itala-ebook-columns, 6), minmax(0, 1fr));
    gap: 28px 22px;
    margin: 0;
    padding: 0;
}

.itala-ebook-archive ul.products.itala-ebook-archive__products::before,
.itala-ebook-archive ul.products.itala-ebook-archive__products::after {
    display: none;
}

.itala-ebook-archive ul.products.itala-ebook-archive__products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}

.itala-ebook-archive .featured-image img {
    width: 100%;
    height: auto;
}

.itala-ebook-archive__pagination {
    margin-top: 28px;
}

.itala-ebook-archive__empty {
    margin: 24px 0;
}

@media (max-width: 1024px) {
    .itala-ebook-archive ul.products.itala-ebook-archive__products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .itala-ebook-archive ul.products.itala-ebook-archive__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .itala-ebook-archive ul.products.itala-ebook-archive__products {
        grid-template-columns: 1fr;
    }
}
