/*   bookshowcase Common Style */
.gsb--scrollbar {
    padding-right: 10px;

    &::-webkit-scrollbar {
        width: 3px;
    }

    &::-webkit-scrollbar-track {
        background-color: #e9e9ea;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #babec0;
    }
}

/*--  gsb Single Template --*/
.gs-single-container,
.gs-archive-container,
.gsb-author-single-container {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 120px;
    padding-bottom: 120px;
    width: 1200px;
    box-sizing: border-box;

    * {
        box-sizing: border-box;
    }
}

.single-bookshowcase {
    h1, h2, h3, h4, h5, h6, p {
        margin: 0 !important;
        padding: 0 !important;
    }

    &.grid_one,
    &.grid_two,
    &.grid_three,
    &.grid_four,
    &.grid_five,
    &.horizontal_one,
    &.horizontal_two,
    &.horizontal_three,
    &.horizontal_four,
    &.grid_dddddddd {
        .gs-roow.gs_bookshowcase {
            & > div[class*=col-] {
                padding-left: 15px;
                padding-right: 15px;
            }
        }
    }

    a {
        text-decoration: none !important;
    }
}

/* Css By Manzur */
.gs_bookshowcase_area {

    * {
        box-sizing: border-box;
    }

    .gs_bookshowcase {

        .single-bookshowcase {

            .gsb-cover-wrapper {
                position: relative;
                overflow: hidden;
                transition: all .25s;

                a {
                    display: block;
                    transition: none !important;

                    .gsbooks--book-thumb {

                        img {
                            position: absolute;
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                            object-position: center;
                            top: 0;
                            left: 0;
                            transition: transform .35s ease-in-out;
                            transform: scale(1);
                        }

                        &::after {
                            content: "";
                            width: 100%;
                            display: block;
                            padding-bottom: 150%;
                        }

                        &:before {
                            content: "";
                            position: absolute;
                            left: 0;
                            top: 0;
                            width: 100%;
                            height: 100%;
                            background-color: #0000008a;
                            z-index: 99;
                            opacity: 0;
                            transition: .5s;
                        }
                    }
                }
            }

            .gsb-book-info-wrapper {
                padding: 22px 0;

                .gsb-title h3,
                .gsb-author h4,
                .gsb-book-info p,
                .rating {
                    transition: .25s;
                }
            }
            
            /* Book Title */
            .gsb-title {
                margin-bottom: 5px;

                h3 {
                    font-family: var(--gsb-title-font-family);
                    font-size: var(--gsb-title-font-size);
                    line-height: var(--gsb-title-line-height);
                    font-weight: var(--gsb-title-font-weight);
                    color: var(--gsb-title-color);
                    text-transform: var(--gsb-title-text-transform);
                    background-color: var(--gsb-title-bg-color);
                    font-style: var(--gsb-title-font-style);
                    letter-spacing: var(--gsb-title-letter-spacing);
                    text-decoration: var(--gsb-title-text-decoration);
                    transition: all .25s ease-in-out;

                    a {
                        font-family: inherit;
                        font-size: inherit;
                        font-weight: inherit;
                        color: inherit;
                        text-transform: inherit;
                        line-height: inherit;
                    }

                    &:hover {
                        color: var(--gsb-title--hover-color);

                        a {
                            color: inherit;
                        }
                    }
                }
            }

            .gsb-author {
                margin-bottom: 14px;

                h4 {
                    font-family: var(--gsb-author-font-family);
                    font-size: var(--gsb-author-font-size);
                    line-height: var(--gsb-author-line-height);
                    font-weight: var(--gsb-author-font-weight);
                    font-style: var(--gsb-author-font-style);
                    color: var(--gsb-author-color);
                    text-decoration: var(--gsb-author-text-decoration);
                    text-transform: var(--gsb-author-text-transform);
                    letter-spacing: var(--gsb-author-letter-spacing);
                    transition: all .25s ease-in-out;

                    /* gsb author prefix */
                    span.gsb-author-prefix {
                        font-family: var(--gsb-author-prefix-font-family);
                        font-size: var(--gsb-author-prefix-font-size);
                        line-height: var(--gsb-author-prefix-line-height);
                        font-weight: var(--gsb-author-prefix-font-weight);
                        color: var(--gsb-author-prefix-color);
                        text-transform: var(--gsb-author-prefix-text-transform);
                        letter-spacing: var(--gsb-author-prefix-letter-spacing);
                        font-style: var(--gsb-author-prefix-font-style);
                        text-decoration: var(--gsb-author-prefix-text-decoration);
                    }

                    a {
                        font-family: inherit;
                        font-size: inherit;
                        font-weight: inherit;
                        text-transform: inherit;
                        line-height: inherit;
                        font-style: inherit;
                        color: inherit;
                        text-transform: inherit;
                        text-decoration: inherit;
                    }

                    &:hover {
                        color: var(--gsb-authors--hover-color);

                        a {
                            color: var(--gsb-author-hover-color);
                        }

                        span.gsb-author-prefix {
                            color: var(--gsb-author-prefix-hover-color);
                        }
                    }
                }
            }

            .gsb-desc {
                font-family: var(--gsb-desc-font-family);
                font-size: var(--gsb-desc-font-size);
                line-height: var(--gsb-desc-line-height);
                font-weight: var(--gsb-desc-font-weight);
                color: var(--gsb-desc-color);
                text-transform: var(--gsb-desc-text-transform);
                letter-spacing: var(--gsb-desc-letter-spacing);
                font-style: var(--gsb-desc-font-style);
                text-decoration: var(--gsb-desc-text-decoration);

                padding-bottom: 14px;

                p,a {
                    font-family: inherit;
                    font-size: inherit;
                    line-height: inherit;
                    font-weight: inherit;
                    color: inherit;
                }

                a {
                    color: var(--gsb--readmore-color);
                    font-family: var(--gsb-readmore-font-family);
                    font-size: var(--gsb-readmore-font-size);
                    line-height: var(--gsb-readmore-line-height);
                    font-weight: var(--gsb-readmore-font-weight);
                    text-transform: var(--gsb-readmore-text-transform);
                    letter-spacing: var(--gsb-readmore-letter-spacing);
                    font-style: var(--gsb-readmore-font-style);
                    text-decoration: var(--gsb-readmore-text-decoration) !important;
                    transition: all .25s ease-in-out;


                    &:hover {
                        color: var(--gsb-readmore-hover-color);
                    }
                }

                &:hover {
                    color: var(--gsb-desc-hover-color);

                    a {
                        color: var(--gsb-readmore-hover-color);
                    }
                }
            }
            
            .gsb-book-info {
               
                p {

                    font-family: var(--gsb-info-font-family);
                    font-size: var(--gsb-info-font-size);
                    line-height: var(--gsb-info-line-height);
                    font-weight: var(--gsb-info-font-weight);
                    color: var(--gsb-info-color);
                    text-transform: var(--gsb-info-transform);
                    padding-bottom: 4px !important;


                    &:last-child {
                        padding-bottom: 0;
                    }

                    a {
                        color: var(--gsb-author-color);
                    }

                    span.gsb-info-lavel {
                        color: var(--gsb-typo-label-color);
                        font-family: var(--gsb-typo-label-font-family);
                        font-size: var(--gsb-typo-label-font-size);
                        line-height: var(--gsb-typo-label-line-height);
                        font-weight: var(--gsb-typo-label-font-weight);
                        text-transform: var(--gsb-typo-label-text-transform);
                        letter-spacing: var(--gsb-typo-label-letter-spacing);
                        font-style: var(--gsb-typo-label-font-style);
                        text-decoration: var(--gsb-typo-label-text-decoration);
                    }

                    span.gsb-info-value {
                        color: var(--gsb-typo-value-color);
                        font-family: var(--gsb-typo-value-font-family);
                        font-size: var(--gsb-typo-value-font-size);
                        line-height: var(--gsb-typo-value-line-height);
                        font-weight: var(--gsb-typo-value-font-weight);
                        text-transform: var(--gsb-typo-value-text-transform);
                        letter-spacing: var(--gsb-typo-value-letter-spacing);
                        font-style: var(--gsb-typo-value-font-style);
                        text-decoration: var(--gsb-typo-value-text-decoration);
                    }

                    &:hover {

                        // a {
                        //     color: var(--gsb-author-hover-color);
                        // }

                        span.gsb-info-lavel {
                            color: var(--gsb-typo-label-hover-color);
                        }

                        span.gsb-info-value {
                            color: var(--gsb-typo-value-hover-color);
                        }
                    }
                }
            }

            .rating {
                margin-bottom: 10px;
        
                .gs-star-rating {
                    margin-left: 6px;
        
                    .gs-star {
                        color: var(--gsb-star-rating);
                        margin-right: 6px;
        
                        &:last-child {
                            margin-right: 0;
                        }
                    }
        
                    .gs-star.star-empty {
                        color: var(--gsb-star-rating-empty);
                    }
                }
            }


            &:hover {

                .gsb-cover-wrapper {

                    a {
                        .gsbooks--book-thumb {

                            img {
                                transform: scale(1.2);
                            }

                            &:before {
                                opacity: 1;
                            }
                        }
                    }
                }

                .rating {

                    .gs-star-rating {
                       
                        .gs-star {
                            color: var(--gsb-star-rating-hover);
                        }
                    }
                }

            }
        }
    }
}

/* gsb popup + single page 
========================= */
.gs-single-container,
.gsb-author-single-container,
.gs_book_popup {

	/* gsb Nav + Dot */
	--nav-border-color: #E5E5E5;
	--nav-border-active-color: #15b7b9;
	--nav-bg-color: #ffffff;
	--nav-bg-active-color: #15b7b9;
	--nav-icon-color: #222222;
	--nav-icon-active-color: #ffffff;
	--nav-shadow-color: rgba(0, 0, 0, 0.15);

	/* Swiper */
	--swiper-center-pos: 50%;
	--swiper-button-size: 42px;
	--swiper-bottom-space-dots: 0px;
	--swiper-button-space: 0px;
	--swiper-dots-bottom-space: 45px;
	--swiper-dots-x-space: 0px;

    .gsb-sp-section-space {
        margin-top: var(--gsb-sp-section-space);
    }

    /* Separator only when both Books by Author + Similar Category are adjacent */
    .gsb-more-by-author-section:has(+ .gsb-similar-category-section),
    .gsb-similar-category-section:has(+ .gsb-more-by-author-section) {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: var(--gsb-sp-section-space);
    }

    .gsb-sp-top-content {
        display: flex;
        gap: 50px;

        .gsb-sp-cover-img {
            width: 33%;
        }

        .gsp-thumb-slider {
            width: 33%;
          }

        .gsb-sp-info-details {
            width: 67%;

            // Book name: h1 on the single book page, h2 in the popup.
            .gsb-title h1,
            .gsb-title h2 {
                margin: 0 0 18px;
                font-size: clamp(26px, 2.6vw, 36px);
                font-weight: 600;
                line-height: 1.2;
                letter-spacing: -0.01em;
            }

            // Details grow with their content; the page or popup scrolls instead of a small inner box.
            .gsb-sp-info-details-top.gsb--scrollbar {
                max-height: none;
                overflow: visible;
            }
        }
    }

    .gsb-cover-wrapper {
        position: relative;
        width: 100%;
        transition: all .5s;

        img {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            object-fit: cover;
            object-position: center;
        }

        .gsbooks--book-thumb:after {
            content: "";
            display: block;
            padding-bottom: 150%;
            width: 100%;
        }
    }

    .gsb-gallery-img {
        margin-top: 10px;

        .gallery-img {
            width: 100px;
            height: 120px;
            margin-right: 10px;
            margin-bottom: 10px;

            &:last-child {
                margin-right: 0;
            }
        }
    }


    /* gsp SP Title */
    .gsb-sp-label,
    .gsb-title {

        // h1 on the single book page, h2 in the popup, h3 elsewhere.
        h1,
        h2,
        h3 {
            font-family: var(--gsb-typo-title-font-family);
            font-size: var(--gsb-typo-title-font-size);
            line-height: var(--gsb-typo-title-line-height);
            font-weight: var(--gsb-typo-title-font-weight);
            color: var(--gsb-typo-title-color);
            text-transform: var(--gsb-typo-title-text-transform);
            background-color: var(--gsb-title-bg-color);
            margin-bottom: 10px;

            a {
                    font-family: var(--gsb-typo-title-font-family);
                    font-size: var(--gsb-typo-title-font-size);
                    line-height: var(--gsb-typo-title-line-height);
                    font-weight: var(--gsb-typo-title-font-weight);
                    color: var(--gsb-typo-title-color);
                    text-transform: var(--gsb-typo-title-text-transform);
                    background-color: var(--gsb-title-bg-color);
            }

            &:hover {
                // color: var(--gsb-sp-title--hover-color);

                a {
                    color: var(--gsb-typo-title-hover-color);
                }
            }
        }
    }

    /* gsp SP author */
    .gsb-author {
        margin-bottom: 14px;

        h4 {
            font-family: var(--gsb-sp-author-font-family);
            font-size: var(--gsb-sp-author-font-size);
            line-height: var(--gsb-sp-author-line-height);
            font-weight: var(--gsb-sp-author-font-weight);
            color: var(--gsb-sp-link-color);
            text-transform: capitalize;
            color: #808080;

            a {
                font-family: inherit;
                font-size: inherit;
                font-weight: inherit;
                text-transform: inherit;
                line-height: inherit;
                color: var(--gsb-sp-link-color);
                text-transform: var(--gsb-sp-author-text-transform);
            }
        }
    }

    .rating {
        // margin-bottom: 10px;

        .gs-star-rating {

            .gs-star {
                color: var(--gsb-star-rating);
                margin-right: 6px;

                &:last-child {
                    margin-right: 0;
                }
            }

            .gs-star.star-empty {
                color: var(--gsb-star-rating-empty);
            }
        }
    }

    /* gsp SP desc */
    .gsb-sp-desc,
    .gsb-sp-details p,
    .gsb-short-description,
    .gsb-sp-label p,
    .gsb-author-bio p,
    .reader-review p {
        font-family: var(--gsb-sp-desc-font-family);
        font-size: var(--gsb-sp-desc-font-size);
        line-height: var(--gsb-sp-desc-line-height);
        font-weight: var(--gsb-sp-desc-font-weight);
        color: var(--gsb-sp-desc-color);
        margin-bottom: 10px;
    }

    .gsb-book-info {
        margin-top: 30px;
               
        .gsb-info-single {

            font-family: var(--gsb-sp-info-font-family);
            font-size: var(--gsb-sp-info-font-size);
            line-height: var(--gsb-sp-info-line-height);
            font-weight: var(--gsb-sp-info-font-weight);
            text-transform: var(--gsb-sp-info-transform);
            padding-bottom: 16px;
            display: flex;
            // gap: 120px;

            .gsb-info-single-name {
                color: #030D1E;
                width: 220px;
                display: flex;

                .gsb-info-single-icon {
                    width: 24px;
                }
            }

            .gsb-info-single-value {
                color: var(--gsb-sp-info-color);

                ul {
                    list-style: none;
                    padding: 0;
                    margin: 0;

                    li {
                        display: inline;
                    }
                }
            }

            &:last-child {
                margin-bottom: 0;
            }

            a {
                color: var(--gsb-sp-link-color);
            }
        }

    }

    .gsb-retails {
        margin-top: 32px;
        
        h3 {
            font-size: 24px;
            font-family: var(--gsb-sp-title-font-family);
        }
    }

    ul.buy-store-link {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 32px;

        li {
            display: flex;
            flex-direction: column;
            margin-right: 10px;
            margin-bottom: 10px;

            a {
                .store-btn {
                    font-family: var(--gsb-sp-desc-font-family);
                    font-size: 16px;
                    line-height: var(--gsb-sp-desc-line-height);
                    font-weight: var(--gsb-sp-desc-font-weight);
                    // color: var(--gsb-sp-desc-color);
                    color: #ffffff;
    
                    background-color: #2f3957d1;
                    padding: 10px 16px;
                    border-radius: 3px;
                    margin-bottom: 10px;
                    text-align: center;
                    transition: all .25s ease-in-out;

                    &:hover {
                        background-color: #F77674;
                    }
                }
                
                .store_img {
                    width: 140px;
                    height: 58px;
                    padding: 10px;
                    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
                    border-radius: 3px;
                    object-fit: scale-down;
                    object-position: center;
                }
            }
        }
    }

    .gsb-book-formats {
        padding: 16px;
        box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
        // border-radius: 5px;
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
        background-color: #ffffff;

        .gsb-formats-title {
            margin-right: 56px;

            h3 {
                font-size: 24px;
                font-family: var(--gsb-sp-title-font-family);
            }
        }

    }

    .gs-book-categories {
        display: flex;
        align-items: center;
        line-height: 1;
        gap: 6px;
        margin-bottom: 10px;

        p {
            margin-bottom: 0;
        }

        ul {
            list-style: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;

            li {
                a {
                    color: var(--gsb-sp-link-color);
                }
            }
        }
    }

    .gsb-sp-label {
        margin-bottom: 10px;
    }

    .gsb-author-bio-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        align-items: flex-start;
        gap: 28px;

        .gsb-author-name {
            font-size: 20px;
            margin-bottom: 14px;
        }

        .gsb-author-img {
            line-height: 0;
            flex: 1 0 auto;

            .gs_book_author_img {
                
                img {
                    object-fit: cover;
                    object-position: center;
                    width: var(--gsb-sp-author-width);
                    height: var(--gsb-sp-author-height);
                    border-radius: var(--gsb-sp-author-radius);
                }
            }
        }
    }

    .gsb-author-social {
        margin-top: 24px;
        padding-left: 0;
        padding-right: 0;
        
        li {
            list-style: none;
            display: inline-block;
            margin-bottom: 6px;

            a {
                background-color: var(--gsb-sp-social-bg-color);
                border: 1px solid var(--gsb-sp-social-border-color);
                height: var(--gsb-sp-social-width);
                width: var(--gsb-sp-social-height);
                border-radius: var(--gsb-sp-social-radius);
                display: block;
                font-size: 15px;
                line-height: 3;
                text-align: center;
                transition: all .25s;

                i {
                    color: var(--gsb-sp-social-icon-color);
                }

                &:hover {
                    background-color: var(--gsb-sp-social-bg-hover-color);

                    i {
                        color: var(--gsb-sp-social-icon-hover-color);
                    }
                }
            }
        }
    }

    .gs-related-books {
        margin-top: 14px;

        .gsb-cover-wrapper {
            overflow: hidden;

            a {

                .gsbooks--book-thumb {

                    img {
                        transform: scale(1);
                        transition:  0.25s;
                    }

                    &:before {
                        content: "";
                        position: absolute;
                        left: -270px;
                        top: 0;
                        width: 100%;
                        height: 100%;
                        background-color: rgb(14 10 10 / 54%);
                        z-index: 99;
                        opacity: 0;
                        transition: 0.35s;
                    }
                }

                &:hover {

                    .gsbooks--book-thumb {

                        img {
                            transform: scale(1.05);
                        }
    
                        &:before {
                            left: 0px;
                            opacity: 1;
                        }
                    }
                }
            }
        }

        .gsb-title {
            text-align: center;
            font-family: var(--gsb-title-font-family);
            font-size: var(--gsb-title-font-size);
            line-height: var(--gsb-typo-title-line-height);
            font-weight: var(--gsb-typo-title-font-weight);
            color: var(--gsb-typo-title-color);
            text-transform: var(--gsb-typo-title-text-transform);
            background-color: var(--gsb-title-bg-color);
            margin-top: 14px;

            h3 {
                font-size: 18px;
                font-weight: 400;
            }
        }
    }

    .swiper-nav-buttons {

        .swiper-button-prev:after,
        .swiper-button-next:after {
          display: none !important;
        }
    
        .swiper-button-next,
        .swiper-button-prev {
          width: var(--swiper-button-size);
          height: var(--swiper-button-size);
          background: var(--nav-bg-color);
          border-radius: 50%;
          border: 1px solid var(--nav-border-color);
    
          svg {
            width: 16px;
            height: 16px;
      
            path {
              fill: var(--nav-icon-color);
            }
          }
      
          &:hover {
            background: var(--nav-bg-active-color);
            border: 1px solid var(--nav-bg-active-color);
      
            svg {
        
              path {
                fill: var(--nav-icon-active-color);
              }
            }
          }
    
        }

        .swiper-button-prev {
      
            svg {
                transform: rotate(180deg);
            }
        }
    }

    .comments-area {
        padding-top: 16px;
        margin-top: 60px;

        .title-comments,
        .comment-reply-title {
            font-family: var(--gsb-sp-title-font-family);
            font-size: var(--gsb-sp-title-font-size);
            line-height: var(--gsb-sp-title-line-height);
            font-weight: var(--gsb-sp-title-font-weight);
            color: var(--gsb-sp-title-color);
            text-transform: var(--gsb-sp-title-text-transform);
            background-color: var(--gsb-sp-title-bg-color);
            transition: var(--gsb-sp-title-transition);
            margin-bottom: 16px;
        }

        .comment-list {
            list-style: none;

            .children {
                list-style: none;
            }
        }

        /* comment-body */
        .comment-body {

            footer.comment-meta {

                .comment-author {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    font-family: "Playfair Display", serif;
                    text-transform: capitalize;

                    img {
                        width: 64px;
                        height: 64px;
                        border-radius: 50%;
                    }
                }

                .comment-metadata {
                    font-family: "Poppins", system-ui;
                    font-size: 14px;
                }
            }

            .comment-content {
                margin-top: 10px;

                p {
                    font-family: "Poppins", system-ui;
                    font-size: 16px;
                }
            }
        }

        .comment-author-admin {
            margin-left: 20px;
            margin-top: 20px;
        }

        .even {

            article.comment-body {
                // background-color: #808080;
                border-bottom: 1px solid #e6e8e9;
                padding-bottom: 20px;
            }
        }

        .comment-respond {
            margin-top: 20px;
        }


        .comment-form {

            .comment-form-comment {
                display: flex;
                flex-direction: column;
                margin-top: 12px;

                label {
                    margin-bottom: 8px;

                    .required {
                        color: red;
                    }
                }
            }
        }


        .form-submit {
            margin-top: 16px;

            .submit {
                padding: 12px 16px;
                font-family: "Playfair Display", serif;
                font-size: 18px;
            }
        }
    }
}
.gs_bookshowcase_area.gs-book--img-efect_blur,
.gs_bookshowcase_area.gs-book--img-efect_brightness,
.gs_bookshowcase_area.gs-book--img-efect_contrast,
.gs_bookshowcase_area.gs-book--img-efect_grayscale,
.gs_bookshowcase_area.gs-book--img-efect_hue_rotate
.gs_bookshowcase_area.gs-book--img-efect_invert,
.gs_bookshowcase_area.gs-book--img-efect_saturate,
.gs_bookshowcase_area.gs-book--img-efect_opacity,
.gs_bookshowcase_area.gs-book--img-efect_sepia {

    .gs_bookshowcase {

        .single-bookshowcase {

            .gsb-cover-wrapper {

                a {
                    .gsbooks--book-thumb:before {
                        display: none;
                    }
                }
            }
        }
    }
}


@media (min-width: 768px) and (max-width: 1024px) {


}

@media (min-width: 480px) and (max-width: 767px) {

    .gs-single-container,
    .gsb-author-single-container,
    .gs_book_popup {

        --gsb-sp-author-width: 100%;
    
        .gsb-sp-top-content {
            flex-direction: column;

            .gsb-sp-cover-img {
                width: 100%;
            }

            .gsb-sp-info-details {
                width: 100%;
            }
        }
    
        ul.buy-store-link {
            flex-direction: column;

            li {
                margin-right: 0px;

                a {
                    .store_img {
                        width: 100%;
                    }
                }
            }
        }
    
        .gs-book-categories {
            flex-direction: column;
            align-items: flex-start;
    
            ul {
                flex-wrap: wrap;
            }
        }

        .gsb-author-bio-wrapper {
            flex-direction: column;
            padding-left: 0;

            .gsb-author-img {
                width: 100%;
            }

            .gsb-author-bio {
                margin-top: 20px;
            }
        }
    }
}

@media (max-width: 479px) {

    .gs-single-container,
    .gsb-author-single-container,
    .gs_book_popup {
        padding: 32px 16px !important;

        --gsb-sp-author-width: 100%;

        .gsb-sp-top-content {
            flex-direction: column;
            gap: 30px;

            .gsb-sp-cover-img {
                width: 100%;
            }

            .gsb-sp-info-details {
                width: 100%;
            }
        }


        .gsb-book-info {
            margin-top: 30px;
                   
            .gsb-info-single {
                flex-direction: column;
    
                .gsb-info-single-name {
                    width: 100%;
                    margin-bottom: 6px;
                }
            }
        }
    
        ul.buy-store-link {
            flex-direction: column;

            li {
                margin-right: 0px;

                a {
                    .store_img {
                        width: 100%;
                    }
                }
            }
        }
    
        .gs-book-categories {
            flex-direction: column;
            align-items: flex-start;
    
            ul {
                flex-wrap: wrap;
            }
        }

        .gsb-author-bio-wrapper {
            flex-direction: column;
            padding-left: 0;

            .gsb-author-img {
                width: 100%;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .gsb-author-bio {
                margin-top: 20px;
                padding-left: 0;
            }
        }
    }
}

/* Publish date on cards: a small pill with a calendar icon.
   The long selector outranks the card's ".gsb-book-info p" padding rule. */
.gsb-book-info p.gsb-publish-date:not(.gsb-publish-date--adapt),
.gs_bookshowcase_area .gs_bookshowcase .single-bookshowcase .gsb-book-info p.gsb-publish-date:not(.gsb-publish-date--adapt) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0 !important;
    padding: 8px 16px !important;
    border-radius: 999px;
    background: rgba(121, 72, 255, 0.08);
    color: #4b5563;
    font-size: 13px;
    line-height: 1.4;

    .gsb-publish-date__icon {
        flex: 0 0 14px;
        color: #7948FF;
    }

    .gsb-info-lavel {
        font-weight: 500;
        color: #6b7280;
    }

    .gsb-info-value {
        font-weight: 600;
        color: #1f2937;
    }
}

/* Categories and tags on the single page and popup: soft pills.
   Indigo for categories, teal for tags. */
.gs-single-container,
.gsb-author-single-container,
.gs_book_popup {

    .gsb-book-info .gsb-info-single {
        align-items: flex-start;
    }

    .gsb-book-info .gsb-info-single .gsb-info-single-value ul.gsb-term-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: -3px 0 0;
        padding: 0;
        list-style: none;

        li {
            display: inline-flex;
            margin: 0;
        }

        a.gsb-term-pill {
            display: inline-flex;
            align-items: center;
            padding: 3px 12px;
            border: 1px solid transparent;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 500;
            line-height: 1.5;
            text-transform: none;
            text-decoration: none;
            transition: background-color .2s ease, border-color .2s ease, color .2s ease;
        }
    }

    ul.gsb-term-pills--category a.gsb-term-pill {
        color: #4338ca;
        background: #eef0ff;
        border-color: #dfe3ff;

        &:hover,
        &:focus {
            color: #3730a3;
            background: #e0e5ff;
            border-color: #c7cffe;
        }
    }

    ul.gsb-term-pills--tag a.gsb-term-pill {
        color: #0f766e;
        background: #e8f7f2;
        border-color: #cdeee2;

        &:hover,
        &:focus {
            color: #115e59;
            background: #d5f1e7;
            border-color: #b3e5d3;
        }
    }
}

/* Download link on the single page and popup: the main call to action. */
.gs-single-container,
.gsb-author-single-container,
.gs_book_popup {

    .gsb-book-info .gsb-download-url {
        align-items: center;
    }

    .gsb-book-info .gsb-download-url .gsb-info-single-value a.gsb-download-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 20px;
        border-radius: 999px;
        background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
        box-shadow: 0 6px 16px rgba(109, 40, 217, 0.28);
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
        text-transform: none;
        text-decoration: none;
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;

        .gsb-download-link__icon {
            flex: 0 0 16px;
        }

        &:hover,
        &:focus {
            color: #ffffff;
            background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
            box-shadow: 0 8px 20px rgba(91, 33, 182, 0.34);
            transform: translateY(-1px);
        }

        &:focus-visible {
            outline: 2px solid #c4b5fd;
            outline-offset: 2px;
        }
    }
}

/*-- Section headings on the single page and popup (Store, Book Formats, Description,
     Reader's Review, Author Details, More Books By, Similar Category Books): one style,
     the same as the Description heading. !important beats older per-section and
     per-style heading rules. --*/
.gs-single-container,
.gs_book_popup {

    .gsb-sp-label h3,
    .gsb-author-details h2.book-label {
        font-family: var(--gsb-sp-info-font-family) !important;
        font-size: var(--gsb-sp-heading-size, 20px) !important;
        font-weight: 400 !important;
        font-style: normal !important;
        line-height: 1.3 !important;
        letter-spacing: 0 !important;
        color: #030D1E !important;
        text-transform: none !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
    }
}

.gs_book_popup {
    .gsb-sp-label h3 {
        font-size: calc(var(--gsb-sp-heading-size, 20px) - 2px) !important;
    }
}

@media (max-width: 479px) {
    .gs-single-container {
        .gsb-sp-label h3,
        .gsb-author-details h2.book-label {
            font-size: calc(var(--gsb-sp-heading-size, 20px) - 2px) !important;
        }
    }
}

/*-- Embeds (YouTube, video, images) in descriptions fit the screen --*/
.gs-single-container,
.gs_book_popup {

    .gsb-sp-details {

        iframe,
        embed,
        object,
        video,
        img {
            max-width: 100%;
        }

        iframe {
            height: auto;
            aspect-ratio: 16 / 9;
        }

        img,
        video {
            height: auto;
        }
    }
}

/*-- Book Formats: one card per format (name, price, Buy link) --*/
.gs-single-container,
.gs_book_popup {

    .gsb-book-formats {
        display: block;
        padding: 0;
        background: none;
        box-shadow: none;
        border: 0;
    }

    .gsb-formats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 14px;
    }

    .gsb-format-card {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 16px 18px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        color: #030D1E;
        text-decoration: none !important;
        box-shadow: none;
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;

        &.has-link:hover,
        &.has-link:focus-visible {
            border-color: var(--gsb-sp-scrollbar-color, var(--gsb-sp-link-color, #7948FF));
            box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
            transform: translateY(-2px);
            outline: none;
        }
    }

    // Format icon (Pro) above the format name, so long names get the full card width.
    .gsb-format-card__head {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        min-width: 0;
    }

    .gsb-format-card__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 15px;
        color: var(--gsb-sp-scrollbar-color, var(--gsb-sp-link-color, #7948FF));
        background: #f3f0ff;
        background: color-mix(in srgb, var(--gsb-sp-scrollbar-color, var(--gsb-sp-link-color, #7948FF)) 10%, #fff);
        transition: background-color .2s ease, color .2s ease;
    }

    .gsb-format-card.has-link:hover .gsb-format-card__icon {
        color: #fff;
        background: var(--gsb-sp-scrollbar-color, var(--gsb-sp-link-color, #7948FF));
    }

    .gsb-format-card__name {
        font-family: var(--gsb-sp-info-font-family);
        font-size: 14px;
        font-weight: 500;
        color: #6b7280;
        text-transform: capitalize;
    }

    .gsb-format-card__price {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 8px;
    }

    .gsb-format-card__current {
        font-family: var(--gsb-sp-info-font-family);
        font-size: 22px;
        font-weight: 600;
        line-height: 1.2;
        color: #030D1E;
    }

    .gsb-format-card.is-free .gsb-format-card__current {
        color: #137333;
    }

    .gsb-format-card__regular {
        font-size: 14px;
        color: #9ca3af;
    }

    .gsb-format-card__cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 4px;
        font-size: 13px;
        font-weight: 600;
        color: var(--gsb-sp-scrollbar-color, var(--gsb-sp-link-color, #7948FF));

        i {
            font-size: 11px;
            transition: transform .2s ease;
        }
    }

    .gsb-format-card.has-link:hover .gsb-format-card__cta i {
        transform: translateX(3px);
    }
}

/*-- More Books By and Similar Category Books: same covers, titles and hover --*/
.gs-single-container {

    .gsb-more-by-author-section .gsb-author-book,
    .gsb-similar-category-section .gs-related-books {
        display: block;
        text-decoration: none !important;
    }

    // Covers: book shape, rounded, gentle zoom on hover.
    .gsb-more-by-author-section .gsb-rb-cover,
    .gsb-similar-category-section .gsb-cover-wrapper {
        position: relative;
        aspect-ratio: 2 / 3;
        height: auto;
        overflow: hidden;
        border-radius: 8px;
        background: #f1f0fb;

        a {
            display: block;
            height: 100%;
        }

        img {
            display: block;
            width: 100%;
            height: 100%;
            margin: 0;
            object-fit: cover;
            border-radius: 0;
            transition: transform .35s ease;
        }
    }

    .gsb-more-by-author-section .gsb-author-book:hover .gsb-rb-cover img,
    .gsb-similar-category-section .gs-related-books:hover .gsb-cover-wrapper img {
        transform: scale(1.04);
    }

    // Titles: the theme's font, one size, two lines at most, color change on hover.
    .gsb-more-by-author-section .gsb-rb-title,
    .gsb-similar-category-section .gsb-title {
        margin: 12px 0 0;
        padding: 0;
        text-align: center;

        h3,
        h3 a {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin: 0 !important;
            padding: 0 !important;
            font-family: inherit !important; // the theme's font
            font-size: 16px !important;
            font-weight: 500 !important;
            line-height: 1.35 !important;
            color: #030D1E !important;
            text-decoration: none !important;
            text-transform: none !important;
            background: none !important;
            transition: color .2s ease;
        }
    }

    .gsb-more-by-author-section .gsb-author-book:hover .gsb-rb-title h3,
    .gsb-similar-category-section .gs-related-books:hover .gsb-title h3,
    .gsb-similar-category-section .gs-related-books:hover .gsb-title h3 a {
        color: var(--gsb-sp-link-color, #7948FF) !important;
    }

    // Few books: a simple grid with the same number per row.
    .gsb-more-by-author-section .gsb_author_books.gsb-rb-grid-cover {
        display: grid;
        grid-template-columns: repeat(var(--gsb-rb-cols, 4), minmax(0, 1fr));
        gap: 24px;

        .gsb-author-book {
            width: auto;
            max-width: none;
            min-width: 0;
        }
    }

    .gs-books-related-books-slider.gsb-rb-no-slide .swiper-nav-buttons {
        display: none;
    }

    @media (max-width: 1023px) {
        .gsb-more-by-author-section .gsb_author_books.gsb-rb-grid-cover {
            grid-template-columns: repeat(min(3, var(--gsb-rb-cols, 4)), minmax(0, 1fr));
        }
    }

    @media (max-width: 639px) {
        .gsb-more-by-author-section .gsb_author_books.gsb-rb-grid-cover {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
        }
    }
}

/*-- Single page sections as white cards with a light border, like the Book Formats cards --*/
.gs-single-container {

    .gsb-sp-section-space:has(*) {
        margin-top: 28px;
        padding: 28px 30px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: none;
    }

    // Similar Category Books is a grid row: drop its side margins and the inner column padding.
    .gs-roow.gsb-sp-section-space:has(*) {
        margin-left: 0;
        margin-right: 0;

        > [class*="gs-col-"] {
            padding-left: 0;
            padding-right: 0;
        }
    }

    // Cards replace the line between the two book sections.
    .gsb-more-by-author-section:has(+ .gsb-similar-category-section),
    .gsb-similar-category-section:has(+ .gsb-more-by-author-section) {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 28px;
    }

    // Inner boxes sit flat inside the card.
    .gsb-sp-section-space .gsb-book-formats,
    .gsb-sp-section-space .gsb-sp-section-style {
        background: none;
        box-shadow: none;
    }

    .gsb-sp-section-space .gsb-book-formats,
    .gsb-sp-section-space .gsb-sp-section-style {
        padding: 0;
        border: 0;
    }

    // Format cards get a soft fill so they stand out inside the white section.
    .gsb-sp-section-space .gsb-format-card {
        background: #fafafb;
    }

    .gsb-sp-section-space .gsb-format-card.has-link:hover {
        background: #fff;
    }

    @media (max-width: 767px) {
        .gsb-sp-section-space:has(*) {
            margin-top: 20px;
            padding: 20px 16px;
            border-radius: 10px;
        }
    }
}

/*-- Author photo: same rounded corners as the cover and gallery thumbnails --*/
.gs-single-container,
.gs_book_popup {

    .gsb-author-details .gs_book_author_img,
    .gsb-author-details .gs_book_author_img img,
    .gsb-author-details img.gs_book_author_img {
        border-radius: 8px !important;
    }

    .gsb-author-details .gs_book_author_img {
        overflow: hidden;
    }
}

/*-- Book title and comment headings use the theme's font, like the rest of the page --*/
.gs-single-container,
.gs_book_popup {

    .gsb-title h1,
    .gsb-title h2,
    .gsb-title h3,
    .comments-area .title-comments,
    .comments-area .comment-reply-title,
    .comments-area .comment-author,
    .comments-area .form-submit .submit {
        font-family: inherit !important;
    }
}

/*-- More Books By and Similar Category Books: one hover. Gentle cover zoom and the
     title in the link color; no dark overlay. --*/
.gs-single-container {

    .gsb-similar-category-section .gsb-cover-wrapper .gsbooks--book-thumb::before {
        display: none !important;
    }

    .gsb-similar-category-section .gsb-cover-wrapper .gsbooks--book-thumb {
        position: relative;
        height: 100%;
    }

    .gsb-more-by-author-section .gsb-rb-cover img,
    .gsb-similar-category-section .gsb-cover-wrapper img {
        transition: transform .35s ease !important;
    }

    .gsb-more-by-author-section .gsb-author-book:hover .gsb-rb-cover img,
    .gsb-similar-category-section .gs-related-books:hover .gsb-cover-wrapper img,
    .gsb-similar-category-section .gs-related-books .gsb-cover-wrapper a:hover .gsbooks--book-thumb img {
        transform: scale(1.04) !important;
    }
}

// Author page: books by this author use the same grid as More Books By on the book page
// (Books per Row from Preferences); with more books than that they become a slider.
.gsb-author-single-container .gsb-related-books {

    .gsb_author_books.gsb-rb-grid-cover {
        display: grid !important;
        grid-template-columns: repeat(var(--gsb-rb-cols, 4), minmax(0, 1fr));
        gap: 24px;

        .gsb-author-book {
            width: auto !important;
            max-width: none;
            min-width: 0;
        }
    }

    .gsb-author-book { min-width: 0; }
}

@media (max-width: 1023px) {
    .gsb-author-single-container .gsb-related-books .gsb_author_books.gsb-rb-grid-cover {
        grid-template-columns: repeat(min(3, var(--gsb-rb-cols, 4)), minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .gsb-author-single-container .gsb-related-books .gsb_author_books.gsb-rb-grid-cover {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

// Store links: Image (logo tiles), Button (buy buttons) and Both (logo card with the store name).
.gsb-retails ul.buy-store-link.gsb-stores {
    // Single Style 01 uses the Scroll Bar Color preference; other styles use the link color.
    --gsb-store-accent: var(--gsb-sp-scrollbar-color, var(--gsb-sp-link-color, #7948FF));
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;

    > li {
        display: flex !important;
        margin: 0 !important;
        padding: 0;
        list-style: none;

        &::before { display: none; }
    }

    a {
        display: flex;
        text-decoration: none !important;
        box-shadow: none;
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease, color .2s ease;

        &:focus-visible {
            outline: 2px solid var(--gsb-store-accent);
            outline-offset: 2px;
        }
    }

    .gsb-store-logo {
        display: flex;
        align-items: center;
        justify-content: center;

        img,
        img.store_img {
            display: block;
            width: 100% !important;
            height: 100% !important;
            max-width: none;
            margin: 0 !important;
            padding: 0 !important;
            border: 0 !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            background: transparent;
            object-fit: contain !important;
            object-position: center;
        }
    }

    .store-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0 !important;
        font-family: inherit;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.3;
        text-align: center;
        transition: inherit;

        i { font-size: 13px; }
    }

    // Image and Both: tiles in a grid that stretch to fill each row, so no empty space is left on the right.
    &.gsb-stores--image,
    &.gsb-stores--both {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

        > li {
            min-width: 0;
        }
    }

    // Image: equal logo tiles.
    &.gsb-stores--image a,
    &.gsb-stores--both a {
        flex-direction: column;
        width: 100%;
        overflow: hidden;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;

        &:hover {
            border-color: var(--gsb-store-accent);
            box-shadow: 0 8px 20px rgba(17, 24, 39, .08);
            transform: translateY(-2px);
        }
    }

    &.gsb-stores--image {
        a { height: 64px; }

        .gsb-store-logo {
            flex: 1;
            padding: 8px 14px;
        }

        // Uploaded logos usually have no white space of their own.
        .gsb-store-logo img:not(.gsb-store-logo--bundled) { padding: 4px 6px !important; }

        // No logo for this store: show its name in the same tile.
        .no-logo .store-btn {
            flex: 1;
            padding: 0 12px;
            color: #1f2937;
        }

        .no-logo a:hover .store-btn { color: var(--gsb-store-accent); }
    }

    // Button: buy buttons in the link color.
    &.gsb-stores--btn {
        gap: 10px;

        a {
            border-radius: 8px;

            &:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 18px rgba(17, 24, 39, .14);
            }
        }

        .store-btn {
            padding: 11px 20px;
            color: #fff !important;
            background: var(--gsb-store-accent) !important;
            border-radius: 8px;
        }

        a:hover .store-btn { filter: brightness(.92); }
    }

    // Both: logo on top, store name with an arrow below.
    &.gsb-stores--both {
        .gsb-store-logo {
            height: 64px;
            padding: 8px 14px;
        }

        .gsb-store-logo img:not(.gsb-store-logo--bundled) { padding: 4px 6px !important; }

        .store-btn {
            width: 100%;
            padding: 9px 12px;
            font-size: 14px;
            color: var(--gsb-store-accent) !important;
            background: #fafafb !important;
            border-top: 1px solid #eef0f3;
            border-radius: 0;

            i { font-size: 12px; transition: transform .2s ease; }
        }

        .has-logo .store-btn .gsb-store-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .no-logo .store-btn {
            flex: 1;
            border-top: 0;
            background: #fff !important;
        }

        a:hover .store-btn {
            color: #fff !important;
            background: var(--gsb-store-accent) !important;
            border-top-color: var(--gsb-store-accent);

            i { transform: translateX(3px); }
        }
    }
}

// Built-in logos (Pro) have white space of their own in the image.
.gsb-retails ul.buy-store-link.gsb-stores .gsb-store-logo:has(img.gsb-store-logo--bundled) {
    padding: 4px 10px;
}

// Phones: two tiles or cards per row.
@media (max-width: 479px) {
    .gsb-retails ul.buy-store-link.gsb-stores {
        &.gsb-stores--image,
        &.gsb-stores--both {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
    }
}

// Star rating on the single book page and popup: Star Rating Color from Preferences (default #FFC92E).
.gs-single-container,
.gs_book_popup {

    .gsbook--rating--wrapper .gsbook--rating {
        color: var(--gsb-star-rating, #ffc92e);
    }
}
