.banner-crop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    /* This color is not in the theme */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.banner-crop-modal {
    background: var(--background-floating);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    padding: 24px;
    box-shadow: var(--shadow-low);
    color: var(--text-primary);
}

.banner-crop-modal h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.banner-crop-container {
    position: relative;
    width: 100%;
    aspect-ratio: 350 / 150;
    background-color: var(--background-tertiary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.banner-crop-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain to see the whole image initially */
}

.banner-crop-overlay-rect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    /* This color is not in the theme */
    pointer-events: none;
    /* Width and height will be set by JS to match aspect ratio */
}


.banner-crop-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.banner-crop-controls .scale-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--background-accent);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.banner-crop-controls .scale-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--brand);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--background-floating);
}

.banner-crop-controls .scale-range::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: var(--brand);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--background-floating);
}

.banner-crop-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-crop-actions .right-actions {
    display: flex;
    gap: 12px;
}

.banner-crop-actions button {
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.banner-crop-actions .reset-btn,
.banner-crop-actions .cancel-btn {
    background-color: transparent;
    color: var(--text-normal);
}

.banner-crop-actions .reset-btn:hover,
.banner-crop-actions .cancel-btn:hover {
    background-color: var(--background-modifier-hover);
}

.banner-crop-actions .apply-btn {
    background-color: var(--brand);
    color: var(--header-primary);
}

.banner-crop-actions .apply-btn:hover {
    background-color: var(--brand-hover);
}