
.mdp-book-customizer-mobile-wrapper {
    display: none;
}

@media (max-width: 768px) {
    .mdp-book-customizer-mobile-wrapper {
        background: #EAEBEB;
    }

    .mdp-book-title-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        align-self: stretch;
        padding: 16px 24px;
        margin-top: -5px;
        background: var(--White, #FFF);
        box-shadow: 2px 3px 7px 0px rgba(166, 171, 189, 0.40);
    }

    .mdp-book-title-wrapper h1 {
        color: var(--Black, #48464D);
        text-align: center;
        font-family: "DM Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        letter-spacing: -0.08px;
        margin-bottom: 0px;
    }

    .mdp-book-title-wrapper h1 span {
        overflow: hidden;
        color: #F5B335;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: "DM Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: -0.08px;
    }

    .mdp-text-wrapper {
        display: flex;
        align-items: center;
        padding: 8px 12px;
    }

    .mdp-text-wrapper p {
        color: #54565A;
        justify-content: center;
        text-align: center;
        font-family: "DM Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin: 0px;
    }

    .mdp-infosign {
        display: none;
        width: 56.74px;
        height: 30px;
        margin-left: 8px;
    }

    .mdp-custom-book-table-header {
        display: flex;
        align-items: center;
        border-radius: 3px 3px 0px 0px !important;
        background: #F5B335;
        margin: 0px 8px !important;
        padding: 12px 8px 12px 16px !important;
    }

    .mdp-custom-book-table-header p {
        color: #FFF;
        font-family: "DM Sans";
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin-bottom: 0px !important;
    }

    .mdp-custom-book-ch-name {
        width: 60%;
        display: flex;
        align-items: center;
    }

    .mdp-custom-book-ch-name p {
        margin-left: 8px;
    }

    .mdp-custom-book-ch-pages {
        display: flex;
        align-items: center;
    }

    .mdp-custom-book-ch-pages p {
        padding-right: 18px;
    }

    .mdp-custom-book-ch-pages p:last-child {
        padding-right: 10.5px;
    }

    .mdp-custom-book-ch-pages svg {
        justify-content: flex-end;
    }

    .mdp-custom-book-table-body {
        padding: 0px 8px;
        max-height: 318px;
        overflow-y: scroll;
    }

    .mdp-custom-book-table-item {
        display: flex;
        align-items: center;
        border: none !important;
        border-radius: 3px !important;
        background: #FFF !important;
        padding: 12px 45px 12px 16px !important;
        margin: 4px 0px;
    }

    .mdp-custom-book-table-item p {
        margin-bottom: 0px !important;
        overflow: hidden;
        color: var(--Grey-1, #54565A);
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: "DM Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        padding-bottom: 0px !important;
    }

    .mdp-custom-book-table-item-name {
        width: 65%;
    }

    .mdp-custom-book-table-item-pages {
        width: 35%;
        display: flex;
        align-items: center;
    }

    .mdp-custom-book-table-item-pages p {
        width: 35%;
        text-align: center;
    }

    .mdp-custom-book-table-item-pages svg {
        margin: 0px auto;
    }

    .mdp-optional-chapter {
        margin-top: 12px;
    }

    .mdp-custom-optional-chapter-item {
        padding: 12px 16px 12px 16px !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .mdp-custom-optional-chapter-item p {
        font-weight: 700 !important;
        line-height: 15.62px !important;
        text-align: left;
        color: #48464D;
    }

    .mdp-custom-optional-chapter-item svg path {
        transition: fill 0.3s ease;
    }

    .mdp-optional-chapter-topics {
        display: none;
    }

    .mdp-optional-chapter-topic-panel.active {
        border-radius: 5px;
        border: 2px solid #D1BCFF;
        margin-top: 10px;
        background: #F5F7FD !important;
    }

    .mdp-optional-chapter-topic {
        background-color: #F5F7FD !important;
        padding: 12px 45px 12px 16px !important;
    }

    .mdp-optional-chapter-topic-panel.active hr,
    .mdp-optional-chapter-topic-panel.active .mdp-optional-chapter-details {
        display: block;
    }

    .mdp-optional-chapter-topic-panel hr,
    .mdp-optional-chapter-topic-panel .mdp-optional-chapter-details {
        display: none;
    }

    .mdp-optional-chapter-topic-panel hr {
        border: none;
        background: #D1BCFF;
        margin: 0px 16px;
        height: 0.75px;
    }

    .mdp-optional-chapter-topic-panel .mdp-optional-chapter-details {
        padding: 11px 16px 12px;
    }

    .mdp-optional-chapter-desc p {
        color: #48464D;
        font-family: "DM Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin-bottom: 0px;
    }

    .mdp-optional-chapter-details-actions {
        display: flex;
        justify-content: space-between;
        padding-top: 11px;
    }

    .mdp-optional-chapter-details-actions p {
        margin-bottom: 0px;
        color: #48464D;
        font-family: "DM Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    .mdp-optional-chapter-details-actions .mdp-preview-chapter {
        display: flex;
        height: 37px;
        padding: 13.5px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 25px;
        border: none;
        background: #FFF;
        box-shadow: 2px 3px 7px -1px rgba(166, 171, 189, 0.40);
        color: #54565A;
        text-align: center;
        font-family: "DM Sans";
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    .mdp-optional-chapter-details-actions .mdp-preview-chapter:hover {
        background: #D1BCFF;
        transition: fill 0.3s ease;
    }

    .mdp-optional-chapter-images {
        display: none;
    }

    .mdp-optional-chapter-images .mdp-optional-chapter-carousel {
        width: 100% !important;
        padding-left: 0px !important;
        gap: 8px;
        height: 400px !important;
        background-repeat: no-repeat;
    }

    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .mobile_frame {
        width: 206px !important;
        height: 400px !important;
        top: unset !important;
        left: 50% !important;
        transform: translateX(-50%);
    }

    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-inner img, 
    .mdp-optional-chapter-images #customizedBookPreviewCarousel .carousel-inner img {
        width: 200px !important;
        height: 400px !important;
        padding: 50px 12px 50px 13px !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control.right {
        right: 30px !important;
        margin-right: -8px;
        background-image: none;
    }

    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control .glyphicon-chevron-right {
        margin-right: 0px !important;
    }

    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control.left {
        left: 30px !important;
        margin-left: -8px;
        background-image: none;
    }

    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control .glyphicon-chevron-left {
        left: 13.5px !important;
        margin-left: 13.5px !important;
    }

    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control .glyphicon-chevron-left:before {
        content: " ";
        border-radius: 12px !important;
        display: flex;
        padding: 5px 6px 5px 4px;
        align-items: center;
        gap: 10px;
        background-color: #C2C3C5 !important;
        display: block;
        background: url(../../foxx/image/Arrow-Left.svg) center no-repeat;
        width: 26px;
        height: 26px;
    }

    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control .glyphicon-chevron-right:before {
        content: " ";
        border-radius: 12px !important;
        display: flex;
        padding: 5px 6px 5px 4px;
        align-items: center;
        gap: 10px;
        background-color: #C2C3C5 !important;
        display: block;
        background: url(../../foxx/image/Arrow-Right.svg) center no-repeat;
        width: 26px;
        height: 26px;        
    }

    .mdp-book-customizer-mobile-actions {
        display: flex;
        padding: 4px 36px;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
        border-radius: 5px;
        background: #FFF;
        margin: 12px 31px 0px 18px;
    }

    .mdp-book-customizer-action-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4px 7px;
        border-radius: 5px;
        background:#FFF;
    }

    .mdp-book-customizer-action-item svg {
        width: 20px;
        height: 20px;
    }

    .mdp-book-customizer-action-item p {
        color: #54565A;
        text-align: center;
        font-family: "DM Sans";
        font-size: 10px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin-bottom: 0px !important;
    }

    .mdp-book-customizer-mobile-price {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 24px;
        margin-top: 8px;
        background: #FFF;
        box-shadow: 2px 3px 7px 0px rgba(166, 171, 189, 0.40);
    }

    .mdp-book-customizer-total-price {
        display: flex;
        align-items: center;
    }

    .mdp-book-customizer-total-price p {
        color: #48464D;
        text-align: center;
        font-family: "DM Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin-bottom: 0px !important;
        margin-right: 16px;
    }

    .mdp-book-customizer-total-price p:last-child {
        margin-right: 0px;
    }

    .mdp-book-customizer-total-price p span {
        margin-left: 10px;
    }

    .mdp-book-customizer-ebook-btn .switch {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 78px !important;
        padding: 6px 8px;
        border-radius: 50px;
        background: #D1BCFF;
        top: 0px !important;
        margin-right: 0px !important;
    }

    .mdp-book-customizer-ebook-btn .switch .labels::after {
        text-shadow: none !important;
    }
}

@media (max-width: 414px) {
    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control.left {
        left: 20px !important;
        margin-left: -8px;
    }
    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control.right {
        right: 20px !important;
        margin-right: -8px;
    }
}

@media (max-width: 390px) {
    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control.left {
        left: 10px !important;
    }
    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control.right {
        right: 10px !important;
    }
}

@media (max-width: 375px) {
    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control.left {
        left: 0px !important;
    }
    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control.right {
        right: 0px !important;
    }
}

@media (max-width: 320px) {
    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control.left {
        margin-left: -32px;
    }
    .mdp-optional-chapter-images .mdp-optional-chapter-carousel .carousel-control.right {
        margin-right: -32px;
    }
}