/**
 * Desktop book detail view - inline styles (extracted from template_book_detail_view.php).
 * Used by: includes/templates/caching/template_book_detail_view.php
 */

/* Slider heading with count styling */
.slider-header,
.testimonial-h2-related-books,
.h2-edition-books,
.product-shelf-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    text-align: left !important;
}
.slider-header .heading-text,
.testimonial-h2-related-books .heading-text,
.h2-edition-books .heading-text,
.product-shelf-title .heading-text {
    flex: 1;
    text-align: left !important;
}
.slider-header .heading-count,
.testimonial-h2-related-books .heading-count,
.h2-edition-books .heading-count,
.product-shelf-title .heading-count {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-left: 10px;
    white-space: nowrap;
}

.tab-content>.active {display:block !important}
.related-question-section-heading{font-size:20px;font-weight:600;color:#333;border-bottom:1px solid #ccc;padding-bottom:5px;margin-top:10px}
.q-icon,.qbq{position:absolute}
.hrf_blk{color:#252424!important}
.question-count{line-height:1.5;display:block}
.wrd_rlt{margin-left:30px;margin-top:5px;font-weight:600;font-size:12px;width:100%}
.tutor-info,.wrd_rlt{overflow:hidden!important;text-overflow:ellipsis}
.wrd_rlt{white-space:nowrap}
@media (min-width:200px) and (max-width:425px){.wrd_rlt{width:95%}}
.qbq,.tphs-head{font-weight:700}
.qbq{background:#6f9dd33d;border-radius:70%;padding:0 5px 5px;left: 0;}
.related-question-statment-redesign{padding:8px}
.related-question-section{margin-top: 10px;}
@media (max-width:485px){.qbq{top:unset}}
@media (max-width:768px){.related-question-section{padding: 0 10px}}
.wishlist-link:hover i {
    transform: scale(1.2);
    color: #e74c3c !important;
}
.minimum-body-height-size{margin-top: 0!important;}
.breadcrumb-container{margin-top: 0!important;}
.slick-slide{height: auto !important;}
.book_count{min-width: max-content !important;}

#reviews-list-container .book-review-text {
    display: block;
    margin-top: 8px;
    line-height: 1.6;
    word-break: break-word;
}

#reviews-list-container .book-review-text.is-clamped:not(.is-expanded) {
    display: block !important;
}

#reviews-list-container .book-review-text.is-clamped:not(.is-expanded) .book-review-text-content {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden !important;
    max-height: 4.8em !important;
}

.book-review-text.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
}

.book-review-toggle {
    background: none;
    border: none;
    color: #1f73b7;
    font-weight: 600;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: none;
    font-size: 14px;
    text-decoration: none;
}

.book-review-toggle:focus {
    outline: none;
    border: none;
}

/* Hide "See more" button on desktop, show only on mobile */
@media (min-width: 768px) {
    #reviews-list-container .book-review-text.is-clamped:not(.is-expanded) .book-review-toggle {
        display: none !important;
    }

    #reviews-list-container .book-review-text.is-clamped:not(.is-expanded) .book-review-text-content {
        display: block !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Show button only on mobile */
@media (max-width: 767px) {
    #reviews-list-container .book-review-text .book-review-toggle {
        display: inline !important;
        white-space: nowrap;
        vertical-align: baseline;
    }
}

/* Sticky footer styles - mobile only */
@media (max-width: 767px) {
    .sticky-bottom-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background-color: #fff !important;
        padding: 10px 15px !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .sticky-bottom-footer.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .sticky-bottom-footer .lds-ellipsis {
        display: none !important;
    }

    .sticky-bottom-footer .lds-ellipsis:not(.hidden) {
        display: inline-block !important;
    }

    .sticky-bottom-footer .lds-ellipsis.hidden {
        display: none !important;
    }

    .sticky-bottom-footer .custom-place-order {
        width: calc(100% - 30px) !important;
        background-color: #048204 !important;
        border-color: #048204 !important;
        color: #fff !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 8px 30px !important;
        line-height: 1.4 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        border-radius: 3px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
    }

    .sticky-bottom-footer .custom-place-order.hidden {
        display: none !important;
    }
}

/* Hide sticky footer on desktop */
@media (min-width: 768px) {
    .sticky-bottom-footer {
        display: none !important;
    }
}

/* Hide original buttons in panels on mobile when sticky footer is active */
@media (max-width: 767px) {
    #buy .checkout-btn,
    #buy .a-button.checkout-btn,
    #membership .a-button.a-button-primary {
        display: none !important;
    }
}

/* Show buttons on desktop */
@media (min-width: 768px) {
    #buy .checkout-btn,
    #buy .a-button.checkout-btn,
    #membership .a-button.a-button-primary {
        display: block !important;
    }

    .rate {
        cursor: pointer
    }
}

/* Book detail clamp cache - mobile only */
@media (max-width: 767px) {
    .bookdetailclampcache{
        border: 1px solid black;
        padding:5px;
    }
    .bookdetailclampcache span {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .bookdetailclampcache span.expanded {
        -webkit-line-clamp: unset;
        line-clamp: unset;
        display: block;
    }

    .bookdetailclampcache .see-more-btn-cache {
        color: #007bff;
        cursor: pointer;
        margin-top: 5px;
        display: inline-block;
        border: none;
        background-color: white;
    }
}

/* Hide see more button on desktop */
@media (min-width: 768px) {
    .bookdetailclampcache .see-more-btn-cache {
        display: none !important;
    }
}
