.photoez-cover-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.photoez-cover-crop-modal.is-open {
    display: flex;
}

.photoez-cover-crop-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.photoez-cover-crop-dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.photoez-cover-crop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.photoez-cover-crop-header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.photoez-cover-crop-header p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #64748b;
}

.photoez-cover-crop-body {
    padding: 16px 20px;
    overflow: auto;
    background: #0f172a;
}

.photoez-cover-crop-stage {
    max-height: min(75vh, 780px);
    overflow: hidden;
}

.photoez-cover-crop-stage img {
    display: block;
    max-width: 100%;
}

.photoez-cover-crop-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.photoez-cover-crop-status {
    margin-right: auto;
    font-size: 12px;
    color: #64748b;
}

.photoez-cover-crop-status.is-error {
    color: #b91c1c;
}

.photoez-cover-preview-note {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #64748b;
}

.photoez-cover-preview-note.is-cropped {
    color: #15803d;
}
