/* JeFlip – Flipbook Styles */

.jeflip-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.jeflip-book {
    line-height: 0;
    margin: 0 auto 12px;
}

.jeflip-book .stf__parent {
    box-shadow: 0 4px 20px rgba(0,0,0,.15), 0 10px 44px rgba(0,0,0,.08) !important;
    border-radius: 4px;
    margin: 0 auto;
}

/* Controls */
.jeflip-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.jeflip-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    line-height: 1;
    padding: 0;
}

.jeflip-arrow:hover:not(:disabled) {
    border-color: #aaa;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.jeflip-arrow:disabled {
    opacity: .2;
    cursor: not-allowed;
}

.jeflip-pginfo {
    font-size: .88rem;
    color: #999;
    min-width: 100px;
    text-align: center;
}

.jeflip-pginfo b {
    color: #555;
}

/* Thumbnails */
.jeflip-thumbs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    max-width: 100%;
    padding: 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.jeflip-thumbs::-webkit-scrollbar { height: 4px; }
.jeflip-thumbs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.jeflip-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    opacity: .3;
    transition: all .2s;
    background: #f0ece4;
}

.jeflip-thumb:hover { opacity: .6; }
.jeflip-thumb.active { border-color: #888; opacity: 1; }
.jeflip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Loader */
.jeflip-loader {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: .9rem;
}

.jeflip-loader.hidden { display: none; }

.jeflip-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }

.jeflip-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    animation: jeflipPulse .9s ease-in-out infinite;
}

.jeflip-dots span:nth-child(2) { animation-delay: .15s; }
.jeflip-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes jeflipPulse {
    0%, 80%, 100% { transform: scale(.5); opacity: .3; }
    40% { transform: scale(1); opacity: 1; }
}

.jeflip-error {
    padding: 14px 20px;
    background: #fff5f5;
    border: 1px solid #ecc;
    border-radius: 8px;
    color: #a44;
    font-size: .88rem;
    text-align: center;
}

/* Mobile: smaller thumbs */
@media (max-width: 768px) {
    .jeflip-thumb { width: 36px; height: 50px; }
}
