.image-label-btn {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 20;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    padding: 0;
    line-height: 1;
}
.image-upload-area.has-image > .image-label-btn {
    display: inline-flex !important;
}
.image-label-btn i {
    font-size: 11px;
    pointer-events: none;
}
.image-label-btn.has-label {
    background: #2563eb;
}
.image-label-btn:hover,
.image-label-btn:focus {
    background: #1d4ed8;
    color: #fff;
    outline: none;
}

.image-order-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 50px;
}

.picture-label-badge {
    position: absolute;
    left: 50%;
    bottom: 12px;
    top: auto;
    right: auto;
    transform: translateX(-50%);
    z-index: 3;
    max-width: calc(100% - 24px);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.3);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.45);
}

.properties-img {
    position: relative;
}

.feature-cinematic-lb .fc-stage,
.feature-cinematic-lb-unit .fc-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: min(96vw, 1100px);
    max-height: 88vh;
}
.feature-cinematic-lb .fc-caption,
.feature-cinematic-lb-unit .fc-caption {
    display: none;
    margin-top: 12px;
    max-width: min(92vw, 720px);
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.feature-cinematic-lb .fc-caption:not(:empty),
.feature-cinematic-lb-unit .fc-caption:not(:empty) {
    display: block;
}

#pictureLabelModal .picture-label-optional {
    font-size: 0.72em;
    font-weight: 400;
    color: #64748b;
    margin-left: 0.15em;
    vertical-align: middle;
}
#pictureLabelModal .picture-label-counter {
    font-size: 12px;
    color: #64748b;
}

html[data-eb-theme="dark"] #pictureLabelModal .picture-label-optional,
html[data-eb-theme="dark"] #pictureLabelModal .picture-label-counter {
    color: #94a3b8;
}

html[data-eb-theme="dark"] .picture-label-badge {
    background: rgba(15, 23, 42, 0.3);
    color: #fff;
    border-radius: 999px;
    text-shadow: none;
}

html[data-eb-theme="dark"] .image-label-btn {
    background: rgba(15, 23, 42, 0.88);
}
html[data-eb-theme="dark"] .image-label-btn.has-label,
html[data-eb-theme="dark"] .image-label-btn:hover,
html[data-eb-theme="dark"] .image-label-btn:focus {
    background: #3b82f6;
}

.image-label-hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 10px;
    vertical-align: middle;
    margin: 0 3px;
    line-height: 1;
}
.image-label-hint-icon i {
    font-size: 10px;
}

html[data-eb-theme="dark"] .image-label-hint-icon {
    background: rgba(15, 23, 42, 0.88);
}
