/* ==========================================================================
 * Submit Testimoni Styles & Cropper Modal
 *
 * @package CredibleCompany
 * ========================================================================== */

.cc-cropper-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
}

.cc-cropper-modal.active {
    display: flex;
}

.cc-cropper-modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.cc-cropper-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-cropper-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.cc-cropper-close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.cc-cropper-close-btn:hover {
    color: #64748b;
}

.cc-cropper-modal-body {
    padding: 15px;
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    max-height: 50vh;
    overflow: hidden;
}

.cc-cropper-img-container {
    width: 100%;
    max-height: 100%;
}

.cc-cropper-img-container img {
    max-width: 100%;
    max-height: 45vh;
    display: block;
}

.cc-cropper-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #fff;
}

.cc-cropper-modal-footer button {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-secondary-app {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-secondary-app:hover {
    background-color: #e2e8f0;
}

.custom-file-upload.has-file {
    border-style: solid;
}
