#rsmfcf7-settings-form-panel p.description small,
#rsmfcf7-settings-form-panel div.description small {
    display: block;
}
#rsmfcf7-settings-form-panel input[type='checkbox']{
    width: 18px;
    height: 18px;
}


#rsmfcf7-settings-form-panel p.description {
    margin-bottom: 10px;
}

#rsmfcf7-settings-form-panel p.description label {
    color:black;
    margin-bottom: 6px;
}

#rsmfcf7-settings-form-panel fieldset {
    border-bottom: 1px solid lightgrey;
}

#rsmfcf7-settings-form-panel > fieldset:first-of-type {
    margin-top: 8px;
    border-top: 1px solid lightgrey;
}

#rsmfcf7-settings-form-panel .preview {
    min-width:400px;
    max-width:400px;
    background: white;
    padding: 20px

}


#rsmfcf7-settings-form-panel .mfufcf7-upgrade-notice {
    background: white;
    border: 1px solid lightgrey;
    padding: 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding-left: 150px;
    padding-right: 150px;
}

@media (max-width: 1200px) {

    #rsmfcf7-settings-form-panel .mfufcf7-upgrade-notice {

        padding-left: 80px;
        padding-right: 80px;
    }
}
/* Testo */
#rsmfcf7-settings-form-panel .mfufcf7-upgrade-notice p {
    color: #333;
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Bottone Upgrade */
#rsmfcf7-settings-form-panel .mfufcf7-upgrade-button {
    display: inline-block;
    background-color: #15940d;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#rsmfcf7-settings-form-panel .mfufcf7-upgrade-button:hover {
    background-color: #15940d;
    color: white;
    transform: translateY(-2px);
}

#rsmfcf7-settings-form-panel span.disabled-description{
    font-size: 10px;
    display: inline;
}

#rsmfcf7-settings-form-panel a.badge-prod {
    color: #15940d;
    font-weight: bold;
    border: 1px solid lightgrey;
    padding: 0 4px;
    background: white;
    border-radius: 3px;
    text-decoration: unset !important;
    text-decoration-line: unset !important;
}

#rsmfcf7-settings-form-panel a.badge-prod:hover {
    color: green;
    cursor: pointer;
}

/************/
#rsmfcf7-settings-form-panel .rsmfcf7--file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    cursor: pointer;
    width: -webkit-fill-available;
    text-align: center;
    padding: 20px 20px 0 20px;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-upload:hover {
    border: 1px solid grey;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-list li {
    align-items: center;
    background: #f7f7f7;
    padding: 6px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-list li span.remove-file {
    color: #c00;
    cursor: pointer;
    font-weight: bold;
    float:right;
}

#rsmfcf7-settings-form-panel li.uploading progress {
    width: 100%;
    height: 20px;
}

#rsmfcf7-settings-form-panel .rsmfcf7--counter{
    display: block;
    padding: 0;
    margin: 0;
    text-align: right;
    color: #434343 !important;
}


#rsmfcf7-settings-form-panel svg{
    display: block;
    margin: 0 auto;
}


/** FILE PREVIEW GRID */
#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list.file-grid {
    display: grid;
    grid-template-columns: repeat(3, 33.33333333%);
    padding: 5px;
    margin: 0;
    list-style: none;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list.file-grid.grid-2 {
    grid-template-columns: repeat(2, 50%);
}
#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list.file-grid.grid-4 {
    grid-template-columns: repeat(4, 25%);
}
#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list.file-grid.grid-5 {
    grid-template-columns: repeat(5, 20%);
}
#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list.file-grid.grid-6 {
    grid-template-columns: repeat(6, 16.66%);
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list.file-grid li.file-thumb {
    position: relative;
    width: auto;
    height: 110px;
    border: 1px solid #ddd;
    margin: 6px;
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list.file-grid li.file-thumb img {
    width: auto;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list.file-grid li.file-thumb .thumb-link {
    display: block;
    text-align: center;
    width: auto;
    height: 100%;
    box-sizing: border-box;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list li.file-thumb span.remove-file {
    position: absolute;
    top: 2px;
    right: 4px;
    cursor: pointer;
    color: red;
    font-size: 14px;
    font-weight: bold;
    background: rgba(255,255,255,0.7);
    padding: 0 3px;
    border-radius: 2px;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list.file-grid li.file-thumb .thumb-link div.file-label {
    font-weight: bold;
    font-size: 16px;
    padding-top: 24px;
    text-transform: uppercase;
    text-align: center;
    color: #333;
}



#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper ul.rsmfcf7--file-list.file-grid li.file-thumb .thumb-link div.file-label span.file-label--name {
    display: block;
    font-size: x-small;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper.link-items ul.rsmfcf7--file-list img:hover{
    cursor: pointer;
}

#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper.link-items ul.rsmfcf7--file-list li span.filename{
    cursor: pointer;
    color: #5a7aae;
    text-decoration: underline;
}


#rsmfcf7-settings-form-panel .rsmfcf7--file-upload-wrapper.link-items .drag-over {
    border-color: #0073aa !important;
    background: #eef7ff !important;
    border: 2px dashed #003a57  !important;
}
/** END FILE PREVIEW GRID */

/*ENV CHECK*/
#rsmfcf7-settings-form-panel .env-check-fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
    margin-top: 10px;
}

#rsmfcf7-settings-form-panel .env-check-fieldset .env-summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
}

#rsmfcf7-settings-form-panel .env-check-fieldset .icon-ok {
    color: #46b450;
    margin-right: 5px;
}

#rsmfcf7-settings-form-panel .env-check-fieldset .icon-err{
    color: #dc3232;
    margin-right: 5px;
}

#rsmfcf7-settings-form-panel .env-summary .toggle-text {
    font-weight: normal;
    font-size: 0.9em;
    color: #555;
    margin-left: 10px;
}

#rsmfcf7-settings-form-panel .env-check-fieldset .env-list {
    list-style:none;
    padding-left:0;
    margin:0;
}

#rsmfcf7-settings-form-panel .env-check-fieldset .env-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

#rsmfcf7-settings-form-panel .env-check-fieldset .env-list li.ok {
    color: #46b450;
}

#rsmfcf7-settings-form-panel .env-check-fieldset .env-list li.err {
    color: #dc3232;
}
/*END ENV CHECK*/

#rsmfcf7-settings-form-panel .scrollable-box {
    max-height: 100px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    line-height: 1.4;
    width: 400px;
}

#rsmfcf7-settings-form-panel div.description{
    margin-bottom:12px;
}

#rsmfcf7-settings-form-panel div.description h4{
    margin-bottom: 8px;
}

#rsmfcf7-settings-form-panel .cf7-tab-fieldset > .description,
#rsmfcf7-settings-form-panel .cf7-tab-fieldset > .preview,
#rsmfcf7-settings-form-panel .cf7-tab-fieldset > .env-list{
    margin-left: 10px;
    display:none;
}

#rsmfcf7-settings-form-panel .cf7-tab-fieldset.active > .description,
#rsmfcf7-settings-form-panel .cf7-tab-fieldset.active > .preview,
#rsmfcf7-settings-form-panel .cf7-tab-fieldset.active > .env-list{
    display: block;
}

#rsmfcf7-settings-form-panel .cf7-tab-fieldset > h3 {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

#rsmfcf7-settings-form-panel .cf7-tab-fieldset > h3::after {
    content: "▼";
    position: absolute;
    right: 0;
    transition: transform 0.2s ease;
}

#rsmfcf7-settings-form-panel .cf7-tab-fieldset.active > h3::after {
    transform: rotate(-180deg);
}

#rsmfcf7-settings-form-panel .cf7-tab-fieldset{
    margin-top:7px;
    border: 1px solid lightgrey;
    padding: 4px 14px 4px 14px;
    border-radius: 5px;
    background: #f9f9f9;
}
