/**
 * MP Delivery Terms - Frontend Styles
 */

/* Override default styles if needed */
.mp-delivery-terms-block {
    margin: 2rem 0;
}

.mp-delivery-terms-heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.frn-items-with-term__item--disabled {
    cursor: default;
    display: block;
    text-decoration: none;
}

.frn-items-with-term__item--disabled .frn-items-with-term__item-image {
    border-radius: 6px;
    overflow: hidden;
}

.frn-items-with-term__item--disabled .frn-items-with-term__item-image img {
    filter: grayscale(1);
    opacity: 0.42;
}

.frn-items-with-term__item--disabled .frn-items-with-term__item-text {
    opacity: 0.74;
}

.frn-items-with-term__item-unavailable {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    box-sizing: border-box;
    border-radius: 4px;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--cText, #333);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Product listing page styles */
.page-products-by-delivery #products {
    margin-top: 2rem;
}

.page-products-by-delivery .products {
    margin-bottom: 2rem;
}

/* Pagination */
.page-products-by-delivery .pagination {
    margin-top: 2rem;
}

.page-products-by-delivery .page-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.page-products-by-delivery .page-list li {
    margin: 0 0.25rem;
}

.page-products-by-delivery .page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.page-products-by-delivery .page-list li.current .page-link {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.page-products-by-delivery .page-link:hover {
    background-color: #f5f5f5;
}
