:root {
    --blue: #2271B1;
    --cancel-grey: #6e7881;
    --wpblue: rgb(0 124 186);
    /* non usato */
    --red: #b32d2e;
    /* non usato */
}

#wpcontent {
    padding-left: 0px !important;
}

.wrap {
    background: #fff;
    padding: 10px 20px;
    margin: 0;
}

.plgnr-header {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-bottom: 30px;
}

.plgnr-header img {
    height: 60px;
    margin-right: 15px;
}

.plgnr-go-premium {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 30px;
    width: 98%;
    padding: 30px 10px;
    box-shadow: 2px 2px 9px rgba(0, 0, 0, .2);
    margin: 40px auto;
}

.plgnr-go-premium h2 {
    font-size: 2rem;
    font-style: italic;
    text-align: center;
}

.plgnr-go-premium-link {
    text-decoration: none;
}

.plgnr-go-premium img {
    height: 150px;
    margin-right: 15px;
}

.plgnr-go-premium .plgnr-go {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #12A5D8;
    border-bottom: 1px solid #12A5D8;
    padding: 0 10px;
    padding-right: 60px;
}

.plgnr-go-premium .plgnr-go p {
    text-align: center;
}

.button-go-premium {
    padding: 16px 40px !important;
    font-size: 1.5rem !important;
    font-weight: bold;
    background: #12A5D8 !important;
    border-radius: 10px !important;
    border: 2px solid #0074AA !important;
}

.plgnr-notice-success {
    border-left-color: #46b450;
}

.premium-highlight>a {
    color: #d63638 !important;
    /* rosso WP, visibile */
}

#plugins-overlay {
    position: fixed;
    overflow-y: auto;
    width: 100%;
    height: 100vh;
}

#plugins2-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
}

.plgnr-page-overlay {
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .8);
    /* background: rgba(0, 0, 0, .2); */
    display: none;
    z-index: 9998;
    transition: all 0.6s ease;
}

.swal2-container {
    z-index: 9999 !important;
}

.plgnr-page-overlay #loader-container {
    top: 0;
    left: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99;
    transition: all 0.6s ease;
}

.plgnr-page-overlay p {
    margin-top: 20px;
    font-size: 16px;
    color: #000;
    text-align: center;
}

#plgnr-global-overlay {
    width: 100vw;
    height: 100vh;
    position: fixed;
}

#plgnr-global-overlay #loader-container {
    width: 100%;
    height: 100vh;
}

#plugins-overlay.plgnr-page-overlay #loader-container {
    width: 100vw;
    height: 100vh;
}

#plugins2-overlay.plgnr-page-overlay #loader-container {
    width: 100%;
    height: 100%;
}

.plgnr-page-overlay .plgsspinner {
    width: 56px;
    height: 56px;
    display: grid;
    border-radius: 50%;
    -webkit-mask: radial-gradient(farthest-side, #0000 40%, #4e4e4e 41%);
    mask: radial-gradient(farthest-side, #0000 40%, #4e4e4e 41%);
    background: linear-gradient(0deg, rgba(78, 78, 78, 0.5) 50%, rgba(78, 78, 78, 1) 0) center/4.5px 100%,
        linear-gradient(90deg, rgba(78, 78, 78, 0.25) 50%, rgba(78, 78, 78, 0.75) 0) center/100% 4.5px;
    background-repeat: no-repeat;
    animation: spinner-d3o0rx 1s infinite steps(12);
}

.plgnr-page-overlay .plgsspinner::before,
.plgnr-page-overlay .plgsspinner::after {
    content: "";
    grid-area: 1/1;
    border-radius: 50%;
    background: inherit;
    opacity: 0.915;
    transform: rotate(30deg);
}

.plgnr-page-overlay .plgsspinner::after {
    opacity: 0.83;
    transform: rotate(60deg);
}

@keyframes spinner-d3o0rx {
    100% {
        transform: rotate(1turn);
    }
}

.plgnr-page-overlay .process-feedback {
    position: relative;
    width: 70%;
    height: 70%;
    background: #eaeaea;
    border-radius: 10px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: stretch;
    padding: 2em;
    font-size: 1.3rem;
}

.plgnr-page-overlay .process-feedback {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 2px 16px 1px rgba(50, 50, 50, .3);
}

.plgnr-page-overlay .process-feedback-header {
    width: 100%;
    /* background-color: var(--blue); */
    padding: 4px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 20px;
}

.plgnr-page-overlay .process-feedback-header h2 {
    color: var(--blue);
}

.plgnr-page-overlay .process-feedback-footer {
    width: 100%;
    height: auto;
    margin-top: auto;
    padding: 2px;
    /* border: 1px solid #eee; */
}

.plgnr-page-overlay .plgnr-progressbar-wrapper {
    background-color: #eee;
    width: 100%;
    border: 1px solid #777;
    padding: 2px;
}

.plgnr-page-overlay .process-feedback-footer #plgnr-progress-bar {
    width: 0%;
    height: 10px !important;
    background-color: var(--blue);
    transition: width 0.5s ease-in-out;
    /* border: 1px solid #777; */
    /* padding: 2px; */
    /* Animazione fluida */
}

.plgnr-page-overlay .process-feedback-body {
    padding: 4px;
    width: 100%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 00px 0px 10px 1px rgba(0, 0, 0, .1);
    margin: 10px auto;
}

.plgnr-page-overlay .process-feedback p {
    font-size: 1.1rem;
}

.plgnr-page-overlay .process-feedback p#installing,
.plgnr-page-overlay .process-feedback p.installation-response {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding-bottom: 6px;
}

.plgnr-page-overlay .process-feedback-footer div.notice.error {
    background: #F9DADA;
    margin: 18px auto;
}

.plgnr-page-overlay .process-feedback-footer .plgnr-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plgnr-page-overlay .process-feedback-footer .plgnr-button {
    background-color: var(--blue);
    color: white;
    border: none;
    outline: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.plgnr-page-overlay .process-feedback-footer #plgnr-cancel-button {
    background-color: var(--cancel-grey);
}

.already-installed {
    /* background-color: #eefbf0; */
    color: #155724;
}

.installed-check {
    display: none;
}

.already-installed .installed-check {
    display: block;
}

.not-installed .installed-check {
    display: none;
}

.already-installed input[type="checkbox"] {
    display: none;
}

.not-installed input[type="checkbox"] {
    display: block;
}

svg.check-circle {
    color: #4caf50;
}

/* BELOW IS THE ESSENTIAL CODE FOR THE ANIMATION */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 50%;
    }

    100% {
        stroke-dashoffset: 0px;
    }
}

svg.check-circle polyline {
    animation: checkmark 0.5s cubic-bezier(0.55, 0.2, 0.71, -0.04) 0.7s backwards;
}

@keyframes grow-circle {
    0% {
        r: 0;
    }
}

@keyframes grow-circle-bigger {
    50% {
        opacity: 0.11;
    }

    100% {
        r: 100;
        opacity: 0;
    }
}

svg.check-circle circle.semi-transparent {
    animation: grow-circle 0.45s cubic-bezier(0.66, 0.23, 0.51, 1.23) backwards,
        grow-circle-bigger 0.9s linear 1.1s forwards;
}

svg.check-circle circle.colored {
    animation: grow-circle 0.5s cubic-bezier(0.66, 0.23, 0.51, 1.23) 0.25s backwards;
}

#installing {
    display: flex;
    align-items: center;
}

.ui-success,
.ui-error {
    display: flex;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.plgnr-spinner {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    border: 3px solid;
    border-color: #dbdcef;
    border-right-color: var(--blue);
    animation: spinner-d3wgkg 0.8s infinite linear;
}

@keyframes spinner-d3wgkg {
    to {
        transform: rotate(1turn);
    }
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--blue);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards
}

.checkmark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px var(--blue);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none
    }

    50% {
        transform: scale3d(1.1, 1.1, 1)
    }
}

@keyframes fill {
    100% {
        /* box-shadow: inset 0px 0px 0px 30px #7ac142 */
        box-shadow: inset 0px 0px 0px 30px var(--blue)
    }
}

.installation-response {
    display: flex;
    align-items: center;
}

.plgnr-overlay-visible {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#pluginer-options {
    display: flex;
    /* background: #fff; */
    /* padding: 10px; */
    /* margin: 30px 30px 0 10px; */
    /* min-height: 100vh; */
    /* don't force the metabox to take the full viewport height; use auto so WP layout keeps boxes in place */
    /* min-height: auto;
    max-width: 100%;
    box-sizing: border-box; */
    flex-direction: column;
}

#plgnr-content-wrapper {
    /* border: 1px solid #ccc;
    padding: 20px; */
    width: 100%;
}

.plgnr-button-wrapper {
    margin: 30px 0 10px 0;
}

#pluginer-options .plgnrsection {
    margin: 20px auto;
    padding: 10px;
}

/*TABLE DIVS*/

#pluginer-options #plugins-list-table {
    display: block;
    /* background: #eee; */
    width: 100%;
    padding: 4px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

#pluginer-options .table-footer,
#pluginer-options .table-head {
    display: block;
    width: 100%;
    background: #ddd;
    font-weight: bold;
}

#pluginer-options .table-head .table-row,
#pluginer-options .table-footer .table-row {
    width: calc(100% - 1.2em);
}

#pluginer-options .table-row {
    display: block;
    margin-bottom: 2px;
    border-bottom: 1px solid #eee;
}

#pluginer-options .table-footer .table-column,
#pluginer-options .table-head .table-column {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

#pluginer-options .table-body .table-column,
#pluginer-options .table-footer .table-column,
#pluginer-options .table-head .table-column {
    display: inline-flex;
    vertical-align: middle;
    padding: 4px;
    border-left: 1px solid #eee;
    justify-content: start;
    align-items: center;
}

#pluginer-options .table-body .table-row.highlight {
    background-color: rgba(255, 255, 0, 0.5); /* giallo semi-trasparente */
    transition: background-color 0.5s ease;
}

#pluginer-options .table-body .table-column:first-child,
#pluginer-options .table-footer .table-column:first-child,
#pluginer-options .table-head .table-column:first-child {
    width: 4%;
}

#pluginer-options .table-body .table-column:nth-child(2),
#pluginer-options .table-footer .table-column:nth-child(2),
#pluginer-options .table-head .table-column:nth-child(2) {
    width: 6%;
}

#pluginer-options .table-body .table-column:nth-child(3),
#pluginer-options .table-footer .table-column:nth-child(3),
#pluginer-options .table-head .table-column:nth-child(3) {
    width: 8%;
}

#pluginer-options .table-body .table-column:nth-child(2) img {
    width: 32px;
    height: 32px;
}

#pluginer-options .table-body .table-column:nth-child(3) img {
    width: 24px;
    height: 24px;
}

p.note {
    font-size: .9em;
    font-style: italic;
}

p.warning {
    color: #FEB82F;
    font-weight: bold;
}

p.aram {
    color: #39BE0A;
}

/* 4 * 12 = 16 + 6 = 22 + 64 = 88 a 100 12 */

#pluginer-options .table-body .table-column:nth-child(4),
#pluginer-options .table-footer .table-column:nth-child(4),
#pluginer-options .table-head .table-column:nth-child(4),
#pluginer-options .table-body .table-column:nth-child(5),
#pluginer-options .table-footer .table-column:nth-child(5),
#pluginer-options .table-head .table-column:nth-child(5) {
    width: 33%;
}

#pluginer-options .table-body .table-column:nth-child(6),
#pluginer-options .table-footer .table-column:nth-child(6),
#pluginer-options .table-head .table-column:nth-child(6) {
    width: 6%;
}

#pluginer-options .table-body {
    max-height: 400px;
    overflow-y: scroll;
}

/* END TABLE DIVS*/

#pluginer-options .new_plugin_fields {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    width: 40%;

    .field {
        margin: 4px 0;
        display: flex;
        justify-content: space-between;
        flex-direction: column;

        /* input {
            min-width: 400px;
        } */

    }

    .inline-buttons {
        justify-content: space-evenly;
    }
}

#pluginer-options .inline-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    padding-bottom: 4px;
}

#pluginer-options .inline-buttons * {
    margin-left: 10px !important;
}

#pluginer-options #form_wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

#pluginer-options #main_form_wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#pluginer-options #plugins_result_list {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 58%;
    max-width: 58%;
    height: 400px;
    max-height: 400px;
    overflow: auto;
    border: 1px solid #ccc;
    padding: 10px;
}

#pluginer-options #plugins_result_list div.plugin_found_data {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 10px;
}

#pluginer-options #plugins_result_list div img {
    width: 60px;
    height: 60px;
}

#pluginer-options #plugins_result_list div * {
    margin-right: 20px;
}

#pluginer-options .plugin_found_data {
    position: relative;
    background-color: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
}

#pluginer-options .plugin_found_data.installed {
    cursor: default;
}

#pluginer-options .plugin_found_data.installed::after {
    content: 'ACTIVE';
    display: inline-flex;
    position: absolute;
    font-size: 10px;
    color: var(--blue);
    background: transparent;
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    border: 1px solid var(--blue);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}


#pluginer-options button,
#pluginer-options input[type="button"],
#pluginer-options input[type="submit"] {
    width: fit-content;
}

#pluginer-options div.import-section {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    border: 1px solid #ccc;
    padding: 30px 10px 10px 10px;
    margin-bottom: 30px;
}

#pluginer-options div.import-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-top: 30px;
}

#pluginer-options input[type=”file”] {
    width: 0.1px !important;
    height: 0.1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    z-index: -1 !important;
}

#pluginer-options label[for="import_list"] {
    color: #fff;
    background-color: var(--blue);
    display: inline-block;
    cursor: pointer;
    padding: 6px 10px !important;
    width: fit-content;
    text-align: center;
    border-radius: 3px;
    vertical-align: baseline;
}

#pluginer-options span#import_list_filename {
    width: auto;
    margin: 0 10px;
}

.sweet-yes {
    background-color: var(--blue) !important;
}

.sweet-no {
    background-color: #ccc !important;
}

div:where(.swal2-container) h2:where(.swal2-title) {
    line-height: 1.2 !important;
}

.swal2-styled.swal2-confirm {
    background: var(--blue) !important;
}


#pluginer-options #plgnr_plugin_list_notes {
    height: 320px;
}

#pluginer-options #plgnr_plugin_list_notes_textarea {
    height: 200px !important;
    width: 100%;
}

#notes_wrapper {
    display: flex;
    flex-direction: column;
}

.features-container {
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    gap: 1rem;
}

.feature {
    display: flex;
    flex-wrap: wrap;
    /* gap: 1rem; */
    align-items: center;
    justify-content: space-around;
    width: 48%;
    border: 1px solid #eee;
}

.feature p,
.feature li {
    font-size: 14px;
    line-height: 2;
}

.feature-text {
    flex: 0 0 40%;
}

.video-thumb {
    flex: 0 0 40%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    align-items: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 400px;
}

.video-thumb video {
    width: 100%;
    display: block;
}

.video-thumb:hover {
    transform: scale(1.03);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 80%;
    max-height: 80vh;
    aspect-ratio: 16/9;
}

.modal-content video {
    width: 100%;
    height: 100%;
}

.close {
    position: absolute;
    top: -10px;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-x {
    display: block;
    font-size: 16px;
    line-height: 1;
}