
.subscribe-save-banner {
    position: absolute;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 35px;
    float: left;
    margin: 0 -0.625em 0 0;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
    text-align: center;
    border-radius: 0 0.156em 0.156em 0;
    box-shadow: -1px 2px 3px rgba(0, 0, 0, 0.3);
    width: 100%;
    bottom: 45px;
}

.subscribe-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subscribe-banner-content .banner-text {
    font-size: 14px;
    line-height: 1;
}

.subscribe-banner-content .subscribe-btn {
    background: #fff;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.subscribe-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.subscribe-btn:hover {
    background: #0056b3;
    color: #fff;
    transform: translateY(-2px);
}

/* Flipbook Modal Styles */
.flipbook-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 30, 45, .6);
}

.flipbook-modal-content {
    position: relative;
    margin: 3% auto;
    width: 100%;
    height: 90%;
    max-width: 1200px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.flipbook-close {
    position: absolute;
    right: 15px;
    top: 8px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flipbook-close:hover,
.flipbook-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#flipbook-container {
    width: 100%;
    height: 100%;
}

.flipbook-main-wrapper {
    transform-origin: 0px 0px;
    transform: translate(0px, 0px) rotate(0deg);
}

.flipbook-menu-right {
    justify-content: flex-start !important;
}

.flipbook-menu-left {
    flex: 0 !important;
    justify-content: flex-start !important;
}

.flipbook-menu-btn-wrapper.flipbook-menu-btn {
    width: 14px !important;
    height: 14px !important;
    padding: 8px !important;
    margin: 2px !important;
    margin-right: 10px !important;
}

.flipbook-menuTop.flipbook-menu-fixed {
    padding: 2px !important;
}

.flipbook-submenu {
    right: auto !important;
    width: 120px !important;
}

@media only screen and (max-width: 768px) {
    .flipbook-menu-fixed .flipbook-menu {
        justify-content: space-around;
        width: auto !important;
    }
}

@media (max-width: 768px) {
    .subscribe-banner-wrapper {
        /* bottom: 98px; */
        width: 96.5%;
        left: 5px;
    }

    .subscribe-banner-content {
        flex-wrap: wrap;
    }

    .subscription-plans {
        grid-template-columns: 1fr;
    }

    .flipbook-modal-content {
        width: 95%;
        height: 85%;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .subscribe-save-banner {
        padding: 12px 5px;
        font-size: 6px;
    }

    .bookshelf .thumb {
        width: 50% !important;
        max-width: 100px;
    }
}

/* Container */
.flipbook-carousel {
    position: relative;
}
/* Navigation Buttons */
.flipbook-navigation {
    position: absolute;
    top: 35%;
    left: 0;
    right: 0;
    transform: translateY(-35%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
    padding: 0;
}

.flipbook-navigation .navigation {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.book-items {
    position: relative;
    cursor: default;
    margin: auto;
    display: flex;
    break-inside: avoid;
}

.book-cover {
    position: relative;
}

.book-cover .book-inside {
    position: absolute;
    width: 99%;
    height: 96%;
    top: 2%;
    left: 7px;
    border: 1px solid grey;
    border-radius: 2px 6px 6px 2px;
    background: white;
    box-shadow: 10px 40px 40px -10px #00000030, inset -2px 0 0 grey,
        inset -3px 0 0 #dbdbdb, inset -4px 0 0 white, inset -5px 0 0 #dbdbdb,
        inset -6px 0 0 white, inset -7px 0 0 #dbdbdb, inset -8px 0 0 white,
        inset -9px 0 0 #dbdbdb;
}

.book-cover .book-image {
    line-height: 0;
    position: relative;
    border-radius: 2px 6px 6px 2px;
    box-shadow: 4px 4px 10px -2px rgba(0, 0, 0, 0.2),
        24px 28px 20px -6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    transform-origin: 0 50%;
    transform: rotateY(0);
    transition: all .45s ease;
    cursor: pointer;
    width: 100%;
    height: 230px;
}

.book-image img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 2px 6px 6px 2px;
}

.book-image:hover {
    transform: perspective(3000px) rotateY(-20deg) translateX(-10px) scaleX(0.94);
    /* transform: perspective(800px) rotateY(0deg) translateX(0px) scaleX(1); */
    transform-style: preserve-3d;
    box-shadow: 6px 6px 12px -1px rgba(0, 0, 0, 0.1),
        15px 14px 16px -6px rgba(0, 0, 0, 0.1);
}

.effect {
    position: absolute;
    width: 4px;
    height: 100%;
    margin-left: 1.5px;
    top: 0;
    border-left: 2px solid #00000010;
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0) 100%);
    transition: all 0.5s ease;
    z-index: 5;
}

.light {
    width: 90%;
    height: 100%;
    position: absolute;
    border-radius: 3px;
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 100%);
    top: 0;
    right: 0;
    opacity: 0.1;
    transition: all 0.5s ease;
    z-index: 4;
}

.book-image:hover .effect {
    margin-left: 1.7px;
}

.shelf-img {
    z-index: 0;
    height: 120px;
    max-width: 100%;
    vertical-align: top;
    margin-top: -12px;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
    padding-top: 20px;
}

.flipbook-carousel .swiper-wrapper {
    justify-content: center !important;
    margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .book-cover .book-image {
        height: 180px;
    }

    .shelf-img {
        height: 110px;
    }
}

@media (max-width: 480px) {
    .book-cover .book-image {
        height: 140px;
    }

    .flipbook-navigation .navigation {
        width: 35px;
        height: 35px;
    }

    .flipbook-navigation {
        top: 35%;
        transform: translateY(-50%);
        padding: 0px;
    }

    .shelf-img {
        height: 90px;
    }
}

.subscribed-ribbon .ribbon {
    min-height: 5rem !important;
    min-width: 5rem !important;
}

.subscribed-ribbon .ribbon-bookmark.ribbon-top:after {
    border-width: 0rem 2.5rem .6rem !important;
}

.subscribed-ribbon .ribbon-bookmark.ribbon-top {
    right: 3.5rem !important;
}

.subscribed-ribbon .subscribed-text {
    font-size: 10px !important;
    font-weight: 700 !important;
}