/* Manager Styles */
.cbs-manager {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 800px;
    margin: 20px auto;
}

.cbs-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cbs-form-group {
    display: flex;
    flex-direction: column;
}

.cbs-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.cbs-images ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cbs-image-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cbs-image-previews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Flattened Rules from .cbs-image-previews nesting */
.cbs-current {
    font-weight: 500;
    color: #fff;
    font-size: 14px;
}

.cbs-total {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.cbs-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin: 0 4px;
}

.cbs-play-pause {
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    opacity: 0.8;
    transition: opacity 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Play/Pause Icons */
.cbs-icon-pause {
    display: block;
    width: 10px;
    height: 12px;
    border-left: 3px solid #fff;
    border-right: 3px solid #fff;
    box-sizing: content-box;
}

.cbs-icon-play {
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #fff;
    margin-left: 2px;
    /* Visual center adjustment */
}


.cbs-preview-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cbs-preview-box label {
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.cbs-image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #eee;
}

.cbs-no-image {
    height: 120px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    border-radius: 2px;
    border: 1px dashed #ccc;
}

.cbs-set-mobile-btn {
    margin-top: 5px !important;
}

.cbs-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.cbs-link-input {
    flex-grow: 1;
    margin-bottom: 0 !important;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.cbs-remove-btn {
    width: auto !important;
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 3px;
}

.cbs-remove-btn:hover {
    background: #c82333;
}

.cbs-save-section {
    text-align: right;
    margin-top: 20px;
}

.button-success {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

/* Display Styles */
.cbs-banner-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.cbs-banner-container img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-pagination {
    bottom: 10px !important;
}

/* Style 1: Dots (Default Swiper) */

/* Style 2: Lines */
.cbs-indicator-style-2 .swiper-pagination-bullet {
    border-radius: 0;
}

/* Style 3: Numbers */
.cbs-indicator-style-3 .swiper-pagination-bullet {
    width: auto;
    height: auto;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Style 5 & 6: Premium Custom */
.cbs-indicator-style-5 .swiper-pagination,
.cbs-indicator-style-6 .swiper-pagination {
    display: block !important;
    position: absolute !important;
    bottom: 50px !important;
    left: 175px !important;
    width: auto !important;
    text-align: left !important;
    z-index: 9999 !important;
    pointer-events: auto;
}

.cbs-custom-controls {
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-family: sans-serif;
    color: #fff !important;
    font-size: 14px;
    background: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cbs-control-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    line-height: 1;
}

/* Arrows */
.cbs-arrow-left,
.cbs-arrow-right {
    cursor: pointer;
    width: 20px;
    height: 20px;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.cbs-arrow-left::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
    position: absolute;
    top: 6px;
    right: 4px;
}

.cbs-arrow-right::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    position: absolute;
    top: 6px;
    left: 2px;
}

.cbs-arrow-left:hover,
.cbs-arrow-right:hover {
    opacity: 1;
}

/* Style 4: Progress Bar (Custom) */
.cbs-indicator-style-4 .swiper-pagination {
    position: absolute;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
}

.cbs-indicator-style-4 .swiper-pagination-bullet {
    flex-grow: 1;
    border-radius: 0;
    margin: 0 !important;
    height: 100%;
    background: transparent;
    position: relative;
}

.cbs-indicator-style-4 .swiper-pagination-bullet-active {
    background: var(--swiper-theme-color);
}

.cbs-indicator-style-5 .swiper-pagination-fraction {
    white-space: nowrap;
}

/* Arrow Adjustments */
.cbs-banner-container .swiper-button-prev {
    left: 10px;
    right: auto;
}

.cbs-banner-container .swiper-button-next {
    right: 10px;
    left: auto;
}

.cbs-no-arrows .swiper-button-next,
.cbs-no-arrows .swiper-button-prev {
    display: none;
}