/* POPUP */


#cic-open-popup {
    display: none !important;
}


.cic-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
}

.cic-popup-content {
    background: white;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cic-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 32px;
    cursor: pointer;
	color: black;
}

/* LAYOUT ÉDITEUR */

.cic-container {
    display: flex;
    gap: 20px;
    height: 100%;
    font-family: "Inter", sans-serif;
}

.cic-sidebar {
    width: 280px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cic-sidebar h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
}

.cic-upload-block {
    margin-bottom: 20px;
}

/* Restaure complètement le style natif du bouton "Choisir un fichier" */
.cic-upload-block input[type="file"] {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    border-radius: initial !important;
    padding: initial !important;
    border: initial !important;
    background: initial !important;
    font: initial !important;
    color: initial !important;
    line-height: normal !important;
}

/* Bouton custom : couleur toujours identique */
#cic-file-btn,
#cic-file-btn:focus,
#cic-file-btn:active {
    background: #000 !important;   /* couleur d'origine */
    color: #fff !important;
    border: none !important;
    outline: none !important;
}

/* Hover normal */
#cic-file-btn:hover {
    background: #717171 !important;
}


.cic-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.cic-upload-block input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #f5f5f7;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.cic-actions {
    margin-top: 30px;
}

.cic-hidden-file {
    display: none !important;
}

/* Bouton principal */

.cic-btn-primary {
    padding: 12px 20px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.cic-btn-primary:hover {
    background: #717171;
}

/* Bouton secondaire (Facebook) */

.cic-btn-secondary {
    width: 100%;
    padding: 12px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.cic-btn-secondary:hover {
    background: #717171;
}

.cic-canvas-wrapper {
    flex: 1;
    background: #717171;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

#cic-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    background: white;
    pointer-events: auto;
}

/* Bouton ajouté dans les vignettes Google Drive */

.cic-drive-edit-btn {
    display: inline-block;
    margin-top: 5px;
    padding: 6px 10px;
    background: #000000;
    color: #fff;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.cic-drive-edit-btn:hover {
    background: #717171;
}

/* Bouton global (shortcode) */

.cic-global-open {
    margin: 20px 0;
    width: auto;
}

.cic-file-wrapper input[type="file"] {
    display: none;
}

/* Cache le texte natif "Aucun fichier n’a été sélectionné" */
.cic-file-input::-webkit-file-upload-text {
    visibility: hidden;
}

.cic-file-input::file-selector-button {
    visibility: visible;
}

/* Style natif restauré */
.cic-file-input {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

/* Texte personnalisé sous le bouton */
.cic-file-info {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
	align-items: center;
}

