/* 
Theme Name: ED Hello Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: ED Hello Child is a child theme of Hello Elementor
Author: Efestodev
Author URI: https://www.efestodev.it/
Template: hello-elementor
Version: 2.0.0
Text Domain: ed-hello-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/


/* =========================================================
   WPDM - LISTA DOCUMENTI
   ========================================================= */

/* LOGIN */
.wpdm-auth-page {
    min-height: 100vh;
    background: #E8F1FF;
}

/* PW RESET */
.w3eden .wpdm-auth-brand:not(:has(a)) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.03125rem;
    position: relative;
    z-index: 1;
}

.w3eden .wpdm-auth-brand:not(:has(a)) span {
    color: #fff !important;
}

/* LOGOUT FLOATING */
.ed-ar-floating-logout {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9998;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;

    min-height: 3.5rem;
    padding: 0 1.25rem;

    border-radius: 99rem;

    background: var(--color-danger);
    color: #fff !important;

    font-weight: 600;
    text-decoration: none !important;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.ed-ar-floating-logout svg {
    width: 1.375rem;
    height: 1.375rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ed-ar-floating-logout:hover {
    background: color-mix(in srgb, var(--color-danger) 85%, white);
    color: #fff !important;
    transform: scale(1.03);
}

/* TOLLBAR */
.wpdm_packages_shortcode .wpdm-shortcode-toolbar input[type="search"],
.wpdm_packages_shortcode .wpdm-shortcode-toolbar select,
.wpdm_packages_shortcode .btn,
.wpdm_packages_shortcode .wpdm-download-link {
    border-radius: 99rem !important;
}

/* SELECT */
.wpdm_packages_shortcode .wpdm-shortcode-toolbar select {
    width: 100% !important;
    padding-right: 1.875rem !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2329335C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.938rem center !important;
    background-size: .75rem auto !important;
}

/* CARD GRID */
.wpdm_packages_shortcode [id^="content_wpdm_package_"] > .row {
    display: grid !important;
    gap: 1.25rem;
    margin: 0 !important;
}

.wpdm_packages_shortcode [id^="content_wpdm_package_"] > .row > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    flex: none !important;
}

.wpdm_packages_shortcode .link-template-default {
    height: 100%;
    margin: 0 !important;
}

/* CARD */
.wpdm_packages_shortcode .package-title a {
    color: #29335C !important;
}

.wpdm_packages_shortcode .link-template-default .package-title,
.wpdm_packages_shortcode .link-template-default .package-title a {
    font-size: 1.125rem !important;
}

.wpdm_packages_shortcode .link-template-default .package-title {
    margin-bottom: 0.938rem !important;
}

.wpdm_packages_shortcode .link-template-default .media-body {
    min-width: 0;
}

.wpdm_packages_shortcode .link-template-default .text-muted {
    white-space: nowrap;
}

.wpdm_packages_shortcode .link-template-default .text-muted .fa-hdd {
    margin-left: 1.25rem !important;
}

.wpdm_packages_shortcode .link-template-default .ml-3 {
    flex-shrink: 0;
}


/* DESKTOP: 1201px+ */
@media (min-width: 1201px) {
    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 15rem 13rem 14rem;
    }

    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row > [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
    }

    .wpdm_packages_shortcode [id^="content_wpdm_package_"] > .row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* LAPTOP: 951px - 1200px */
@media (min-width: 951px) and (max-width: 1200px) {
    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        row-gap: 1.25rem;
    }

    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row > [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
    }

    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row > div:first-child,
    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row > div:last-child {
        grid-column: 1 / -1;
    }

    .wpdm_packages_shortcode [id^="content_wpdm_package_"] > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* TABLET: 701px - 950px */
@media (min-width: 701px) and (max-width: 950px) {
    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        row-gap: 1.25rem;
    }

    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row > [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
    }

    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row > div:first-child,
    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row > div:last-child {
        grid-column: 1 / -1;
    }

    .wpdm_packages_shortcode [id^="content_wpdm_package_"] > .row {
        grid-template-columns: 1fr;
    }
}


/* MOBILE: 0 - 700px */
@media (max-width: 700px) {
    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row {
        display: grid !important;
        grid-template-columns: 1fr;
        row-gap: 1.25rem;
    }

    .wpdm_packages_shortcode .wpdm-shortcode-toolbar .row > [class*="col-"] {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }

    .wpdm_packages_shortcode [id^="content_wpdm_package_"] > .row {
        grid-template-columns: 1fr;
    }

    .wpdm_packages_shortcode .link-template-default .media {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 1rem;
        row-gap: 1.25rem;
        align-items: center;
    }

    .wpdm_packages_shortcode .link-template-default .img-48 {
        grid-column: 1;
        grid-row: 1;
        margin: 0 !important;
    }

    .wpdm_packages_shortcode .link-template-default .media-body {
        grid-column: 2;
        grid-row: 1;
    }

    .wpdm_packages_shortcode .link-template-default .ml-3 {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0 !important;
    }

    .wpdm_packages_shortcode .link-template-default .wpdm-download-link {
        display: block;
        width: 100%;
        text-align: center;
    }
}


/* =========================================================
   WPDM - SINGOLO DOCUMENTO
   ========================================================= */

/* CANVAS NO HEADER/FOOTER */
.single-wpdmpro [data-elementor-type="header"],
.single-wpdmpro [data-elementor-type="footer"] {
    display: none !important;
}

/* MAIN DIV */
.single-wpdmpro .w3eden {
    --ed-ar-space-x: clamp(1.25rem, 0.7143rem + 2.6786vw, 3.125rem);

    width: min(
        90rem,
        calc(100% - var(--ed-ar-space-x) - var(--ed-ar-space-x))
    );

    margin: 0 auto;

    padding-top: clamp(4.375rem, 3.8393rem + 2.6786vw, 6.25rem);
    padding-bottom: clamp(4.375rem, 3.8393rem + 2.6786vw, 6.25rem);
}

/* CARD */
.single-wpdmpro .card,
.single-wpdmpro .list-group {
    border-radius: 1rem !important;
    overflow: hidden;
}

/* PULSANTI */
.single-wpdmpro .btn,
.single-wpdmpro .wpdm-download-link {
    border-radius: 99rem !important;
}

/* LISTING FILE */
.single-wpdmpro .wpdm-filelist-container {
    width: 100% !important;
    max-width: none !important;
    margin: 1.25rem 0 0 !important;
    padding: 0 !important;
}