.cc-flipbook {
    width: 100%;
    max-width: 1280px;
    margin: 28px auto;
    padding: 24px;
    overflow: hidden;
    box-sizing: border-box;
    background: #0d1d2a;
}

.cc-flipbook__status {
    padding: 48px 20px;
    color: #fff;
    text-align: center;
    font: 16px/1.5 Arial, sans-serif;
}

.cc-flipbook__book {
    width: 100%;
    margin: 0 auto;
}

.cc-flipbook__book--single {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1160px;
    perspective: 1800px;
}

.cc-flipbook__single-page {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
    transform-origin: center;
}

.cc-flipbook__book--next .cc-flipbook__single-page {
    animation: cc-page-next 420ms ease both;
}

.cc-flipbook__book--prev .cc-flipbook__single-page {
    animation: cc-page-prev 420ms ease both;
}

@keyframes cc-page-next {
    from { opacity: 0.55; transform: rotateY(-7deg) translateX(12px); }
    to { opacity: 1; transform: rotateY(0) translateX(0); }
}

@keyframes cc-page-prev {
    from { opacity: 0.55; transform: rotateY(7deg) translateX(-12px); }
    to { opacity: 1; transform: rotateY(0) translateX(0); }
}

.cc-flipbook__page {
    background: #fff;
    overflow: hidden;
}

.cc-flipbook__page canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.cc-flipbook__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    font-family: Arial, sans-serif;
}

.cc-flipbook__controls[hidden] {
    display: none;
}

.cc-flipbook__controls button,
.cc-flipbook__download {
    padding: 11px 15px;
    border: 1px solid #dfa11a;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.cc-flipbook__controls button:hover,
.cc-flipbook__download:hover {
    background: #dfa11a;
    color: #0d1d2a;
}

.cc-flipbook__controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

.cc-flipbook__counter {
    min-width: 120px;
    color: #fff;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 767px) {
    .cc-flipbook {
        margin: 15px auto;
        padding: 10px;
    }

    .cc-flipbook__controls {
        gap: 7px;
    }

    .cc-flipbook__counter {
        order: -1;
        width: 100%;
        padding-bottom: 2px;
    }

    .cc-flipbook__controls button,
    .cc-flipbook__download {
        padding: 9px;
        font-size: 10px;
    }

    .cc-flipbook__counter {
        min-width: 92px;
        font-size: 11px;
    }
}
