/* =========================================================
   ZIZIGOLO PRODUCT SPECIFICATIONS
========================================================= */

.zzg-specs {
    width: 100%;
    max-width: 100%;

    margin: 35px 0 0;
    padding: 0;

    direction: rtl;
    text-align: right;

    color: #333;

    font-family: inherit;

    box-sizing: border-box;
}

.zzg-specs *,
.zzg-specs *::before,
.zzg-specs *::after {
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.zzg-specs-header {
    margin: 0 0 22px;
}

.zzg-specs-header h2 {
    margin: 0 0 8px;

    color: #173b7a;

    font-size: 22px;
    font-weight: 800;

    line-height: 1.7;
}

.zzg-specs-header p {
    margin: 0;

    color: #687386;

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   SPEC GROUP
========================================================= */

.zzg-spec-group {
    position: relative;

    width: 100%;

    margin: 0 0 16px;

    border: 1px solid #e3e8f0;
    border-radius: 12px;

    background: #fff;

    overflow: visible;

    box-shadow:
        0 3px 12px rgba(0,0,0,.04);
}


/* =========================================================
   GROUP TITLE
========================================================= */

.zzg-spec-group-title {
    position: relative;

    min-height: 52px;

    padding: 11px 15px;

    display: flex;

    align-items: center;

    gap: 8px;

    background: #f4f8ff;

    color: #173b7a;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.6;

    border-bottom: 1px solid #e2e8f0;

    border-radius: 12px 12px 0 0;
}

.zzg-spec-group-icon {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #0d6efd;

    box-shadow:
        5px 0 0 -1px #e31b23;
}


/* =========================================================
   GROUP HELP POSITION
========================================================= */

.zzg-spec-group-title .zzg-spec-help {
    margin-right: auto;
    margin-left: 0;
}


/* =========================================================
   TABLE
========================================================= */

.zzg-spec-table {
    width: 100%;

    margin: 0;
    padding: 0;

    border-collapse: collapse;
    border-spacing: 0;

    table-layout: fixed;

    direction: rtl;

    font-family: inherit;
}


/* =========================================================
   TABLE ROW
========================================================= */

.zzg-spec-table tr {
    border-bottom: 1px solid #edf0f5;
}

.zzg-spec-table tr:last-child {
    border-bottom: 0;
}


/* =========================================================
   FEATURE NAME
========================================================= */

.zzg-spec-table th {
    position: relative;

    width: 32%;

    padding: 12px 15px;

    background: #fafbfd;

    color: #4b5563;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.8;

    text-align: right;

    vertical-align: middle;

    border-left: 1px solid #edf0f5;
}


/* =========================================================
   FEATURE VALUE
========================================================= */

.zzg-spec-table td {
    width: 68%;

    padding:
        12px
        15px
        12px
        35px !important;

    background: #fff;

    color: #222;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.9;

    text-align: right !important;

    vertical-align: middle;
}


/* =========================================================
   MULTI VALUE
========================================================= */

.zzg-spec-multi-value {
    padding-top: 7px !important;
    padding-right: 35px !important;
    padding-bottom: 7px !important;
    padding-left: 15px !important;
}

.zzg-spec-multi-value > div {
    margin: 0;
    padding: 5px 0;
}

.zzg-spec-multi-value > div + div {
    border-top: 1px dashed #e7ebf2;
}


/* =========================================================
   HELP BUTTON
========================================================= */

.zzg-spec-help {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    vertical-align: middle;

    flex: 0 0 auto;

    width: 20px;
    height: 20px;

    min-width: 20px;
    min-height: 20px;

    margin: 0 0 0 6px;
    padding: 0;

    border: 1px solid #9bbcf0;
    border-radius: 50%;

    background: #edf5ff;

    color: #0d6efd;

    font-family: Arial, sans-serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;

    appearance: none;
    -webkit-appearance: none;

    z-index: 15;
}

.zzg-spec-help:hover {
    background: #0d6efd;

    border-color: #0d6efd;

    color: #fff;

    transform: scale(1.05);
}

.zzg-spec-help.is-open {
    background: #0d6efd;

    border-color: #0d6efd;

    color: #fff;

    transform: scale(1.05);
}

.zzg-spec-help:focus-visible {
    outline: 2px solid rgba(13,110,253,.25);

    outline-offset: 2px;
}


/* =========================================================
   TOOLTIP
========================================================= */

.zzg-spec-help-text {
    position: fixed !important;

    display: block;

    width: 270px;
    max-width: calc(100vw - 24px);

    margin: 0;
    padding: 12px 14px;

    border: 1px solid #d9e2f0;
    border-radius: 10px;

    background: #fff;

    color: #4b5563;

    font-family: inherit;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.9;

    text-align: right;

    white-space: normal;

    box-shadow:
        0 10px 28px rgba(0,0,0,.16);

    /*
       مهم:
       کادر و محتوای داخل آن قابل کلیک است
    */
    pointer-events: auto !important;

    z-index: 999999;
}

/* =========================================================
   TOOLTIP ARROW
========================================================= */

.zzg-spec-help-text::after {
    content: "";

    position: absolute;

    bottom: -6px;
    left: 50%;

    width: 10px;
    height: 10px;

    transform:
        translateX(-50%)
        rotate(45deg);

    background: #fff;

    border-right: 1px solid #d9e2f0;
    border-bottom: 1px solid #d9e2f0;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .zzg-specs {
        margin-top: 25px;
    }


    .zzg-specs-header {
        margin-bottom: 17px;
    }


    .zzg-specs-header h2 {
        font-size: 20px;
    }


    .zzg-specs-header p {
        font-size: 13px;

        line-height: 1.9;
    }


    .zzg-spec-group {
        margin-bottom: 13px;

        border-radius: 10px;
    }


    .zzg-spec-group-title {
        min-height: 49px;

        padding: 10px 12px;

        font-size: 15px;

        border-radius: 10px 10px 0 0;
    }


    .zzg-spec-table th {
        width: 38%;

        padding: 11px 10px;

        font-size: 13px;
    }


     .zzg-spec-table td {
        width: 62%;

        padding:
            11px
            10px
            11px
            24px !important;

        text-align: right !important;
    }

    .zzg-spec-multi-value {
        padding-right: 24px !important;
        padding-left: 10px !important;
    }

}

    .zzg-spec-help {
        width: 19px;
        height: 19px;

        min-width: 19px;
        min-height: 19px;

        margin-left: 4px;

        font-size: 11px;
    }


    .zzg-spec-help-text {
        width: 240px;

        max-width: calc(100vw - 24px);

        padding: 10px 12px;

        font-size: 11px;

        line-height: 1.85;
    }


    .zzg-spec-multi-value {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }


    .zzg-spec-multi-value > div {
        padding: 4px 0;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .zzg-spec-group-title {
        min-height: 47px;

        padding: 9px 10px;

        font-size: 14px;
    }


    .zzg-spec-table th {
        width: 40%;

        padding: 10px 9px;

        font-size: 12px;
    }


     .zzg-spec-table td {
        width: 60%;

        padding:
            10px
            9px
            10px
            20px !important;

        text-align: right !important;
    }

    .zzg-spec-multi-value {
        padding-right: 20px !important;
        padding-left: 9px !important;
    }

    .zzg-spec-help {
        width: 18px;
        height: 18px;

        min-width: 18px;
        min-height: 18px;

        font-size: 10px;
    }


    .zzg-spec-help-text {
        width: 210px;

        max-width: calc(100vw - 20px);

        padding: 10px;

        font-size: 11px;
    }

}