.ebook-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ebook-modal {
    background: #faf7f2;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ebook-modal-close {
    position: absolute;
    top: 0px;
    right: 12px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    line-height: 18px;
}

.ebook-modal-content {
    width: 100%;
    overflow-y: auto;
}

.ebook-modal-left {
    width: 42%;
    float: left;
    padding: 40px;
    border-right: 1px solid #EAE7E2;
    padding-left: 20px;
}

.ebook-modal-right {
    width: 58%;
    float: right;
    padding: 40px;
    padding-right: 20px;
}
.ebook-modal-content {
    padding: 0 20px;
}

.ebook-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.ebook-tab {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #EAE7E2;
    background: transparent;
    cursor: pointer;
    color: #000;
    font-size: 15px;
}

.ebook-tab.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.ebook-tab-panel { display: none; }
.ebook-tab-panel[data-panel="chapters"] { display: block; }

.ebook-chapter-row {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #EAE7E2;
}

.ebook-chapter-row img {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.ebook-chapter-num {
    font-weight: bold;
    width: 20px;
}

.ebook-cta {
    display: block;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 20px;
}

.ebook-wishlist {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    margin-top: 12px;
    cursor: pointer;
}

.ebook-quote-box {
    background: #f2ede4;
    border-radius: 8px;
    padding: 0px;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    overflow: hidden;
}

.ebook-quote-box img {
    width: 100%;
    object-fit: cover;
}
.ebook-title {
    color: #000;
    font-weight: 600;
    font-size: 26px;
}
.ebook-subtitle {
    color: #000;
    font-size: 16px;
    padding: 0 0 10px;
}
.ebook-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #000;
    font-size: 16px;
    padding: 0 0 5px;
}
.ebook-price bdi {
    font-size: 24px;
}
.ebook-price {
    padding: 1px 0 7px;
}
.ebook-desc {
    color: #000;
    font-size: 16px;
    padding: 0 0 12px !important;
}
.ebook-meta-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: #000;
    font-weight: 600;
}
.ebook-meta-list {
    border-top: 1px solid #EAE7E2;
    padding: 16px 0 0 !important;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.ebook-modal-scroll h3 {
    font-size: 26px;
    color: #000;
    padding: 0 0 5px;
}
.ebook-modal-scroll p {
    color: #000;
    font-size: 16px;
}
.ebook-chapter-text {
    font-weight: 600;
    color: #000;
    font-size: 18px;
    width: 80%;
}
.ebook-chapter-row img {
    width: 90px;
    height: auto;
}
.ebook-chapter-text p {
    font-weight: 400;
}
.ebook-chapter-num {
    font-size: 26px;
    color: #000;
    font-weight: 400;
}
.ebook-modal-left .mark-for-me-btn {
    padding: 6px 8px;
    font-size: 14px;
    gap: 2px;
}
.ebook-modal-left .mark-as-gift-btn {
    padding: 6px 8px;
    font-size: 14px;
    gap: 2px;
}
.ebook-modal-left .btn-gifts {
    gap: 8px;
    padding: 15px 0 0;
}
.ebook-chapter-num {
    width: 26px;
}
.ebook-quote-author {
    width: 35%;
    display: flex;
}
.ebook-modal-right .wc-product-quote__mark {
    left: 11px;
    font-size: 60px;
    top: 26px;
}
.ebook-modal-right .ebook-quote-box {
    gap: 15px;
}
.ebook-modal-right .quote-info p {
    font-size: 15px;
}


/*** MEDIA ***/
@media only screen and (max-width: 991px) {
.ebook-modal {
    width: 95%;
}
}
@media only screen and (max-width: 767px) {
.ebook-modal-left {
    width: 100%;
    padding: 20px;
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
}
.ebook-modal-right {
    width: 100%;
    padding: 20px;
    padding-right: 0;
    padding-left: 0;
}
.ebook-modal-close {
    top: 0px;
    right: 6px;
    font-size: 30px;
}
.ebook-chapter-row img {
    width: 70px;
    height: 70px;
}
}