/*
 * ParsKala product tab content
 * Normalizes imported descriptions and WooCommerce native attributes.
 */

#tab_description .prk-product-description-content {
    color: #3f4064;
    font-family: var(--prk-font-family, "prk-font", Tahoma, Arial, sans-serif);
    font-size: 14px;
    line-height: 2 !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

#tab_description .prk-product-description-content,
#tab_description .prk-product-description-content * {
    box-sizing: border-box;
    font-family: inherit !important;
}

#tab_description .prk-product-description-content > :first-child,
#tab_description .prk-product-description-content .prk-pi-imported-description-intro > :first-child,
#tab_description .prk-product-description-content .prk-pi-review-section-text > :first-child {
    margin-top: 0;
}

#tab_description .prk-product-description-content > :last-child,
#tab_description .prk-product-description-content .prk-pi-imported-description-intro > :last-child,
#tab_description .prk-product-description-content .prk-pi-review-section-text > :last-child {
    margin-bottom: 0;
}

#tab_description .prk-product-description-content p {
    margin: 0 0 16px;
    line-height: 2 !important;
    text-align: start;
}

#tab_description .prk-product-description-content h2,
#tab_description .prk-product-description-content h3,
#tab_description .prk-product-description-content h4,
#tab_description .prk-product-description-content h5,
#tab_description .prk-product-description-content h6 {
    margin: 26px 0 10px;
    color: #23254e;
    font-weight: 700 !important;
    line-height: 1.9 !important;
    text-align: start;
}

#tab_description .prk-product-description-content h2 { font-size: 17px; }
#tab_description .prk-product-description-content h3 { font-size: 16px; }
#tab_description .prk-product-description-content h4,
#tab_description .prk-product-description-content h5,
#tab_description .prk-product-description-content h6 { font-size: 15px; }

#tab_description .prk-product-description-content ul,
#tab_description .prk-product-description-content ol {
    margin: 12px 0 18px;
    padding-inline-start: 24px;
    line-height: 2 !important;
}

#tab_description .prk-product-description-content ul { list-style: disc; }
#tab_description .prk-product-description-content ol { list-style: decimal; }

#tab_description .prk-product-description-content li {
    margin: 4px 0;
    padding-inline-start: 3px;
    line-height: 2 !important;
}

#tab_description .prk-product-description-content a {
    color: var(--prk-color-primary, var(--prk-primary-color, #19bfd3));
    text-decoration: none;
}

#tab_description .prk-product-description-content a:hover {
    text-decoration: underline;
}

#tab_description .prk-product-description-content blockquote {
    margin: 18px 0;
    padding: 12px 16px;
    border-inline-start: 3px solid var(--prk-color-primary, var(--prk-primary-color, #19bfd3));
    border-radius: 8px;
    background: #f7f7f8;
    color: #4f5156;
}

#tab_description .prk-product-description-content figure {
    margin: 20px 0;
}

#tab_description .prk-product-description-content img,
#tab_description .prk-product-description-content video,
#tab_description .prk-product-description-content iframe {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: 12px;
}

#tab_description .prk-product-description-content table {
    width: 100%;
    margin: 18px 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #e0e0e2;
    border-radius: 10px;
}

#tab_description .prk-product-description-content th,
#tab_description .prk-product-description-content td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f1;
    text-align: start;
    vertical-align: top;
}

#tab_description .prk-product-description-content tr:last-child th,
#tab_description .prk-product-description-content tr:last-child td {
    border-bottom: 0;
}

/* Digikala content may already be stored with inline alignment/line-height. */
#tab_description .prk-product-description-content .prk-pi-imported-description-intro,
#tab_description .prk-product-description-content .prk-pi-imported-description-intro *,
#tab_description .prk-product-description-content .prk-pi-imported-review-sections,
#tab_description .prk-product-description-content .prk-pi-imported-review-sections * {
    line-height: 2 !important;
    text-align: start !important;
}

#tab_description .prk-product-description-content .prk-pi-imported-description-intro br {
    display: block;
    content: "";
    margin-bottom: 5px;
}

#tab_description .prk-product-description-content .prk-pi-review-section {
    margin-top: 28px;
}

#tab_description .prk-product-description-content .prk-pi-review-section:first-child {
    margin-top: 0;
}

#tab_description .prk-product-description-content .prk-pi-review-section-image {
    margin: 16px 0 22px;
}

/* Same imported content inside the mobile information modal. */
.prk-mobile-info-tabs-modal .prk-mobile-info-tabs__desc .prk-pi-imported-description-intro,
.prk-mobile-info-tabs-modal .prk-mobile-info-tabs__desc .prk-pi-imported-description-intro *,
.prk-mobile-info-tabs-modal .prk-mobile-info-tabs__desc .prk-pi-imported-review-sections,
.prk-mobile-info-tabs-modal .prk-mobile-info-tabs__desc .prk-pi-imported-review-sections * {
    line-height: 2 !important;
    text-align: start !important;
}

.prk-mobile-info-tabs-modal .prk-mobile-info-tabs__desc .prk-pi-imported-description-intro br {
    display: block;
    content: "";
    margin-bottom: 4px;
}

/* Native WooCommerce attributes when grouped attributes are disabled. */
.specifications-content table.prk-native-attributes-table {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.specifications-content table.prk-native-attributes-table tbody {
    display: grid;
    gap: 8px;
    width: 100%;
}

.specifications-content table.prk-native-attributes-table tr {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    width: 100%;
    overflow: hidden;
    border: 1px solid #ececed;
    border-radius: 10px;
    background: #f7f7f8;
}

.specifications-content table.prk-native-attributes-table th,
.specifications-content table.prk-native-attributes-table td {
    display: block;
    width: auto !important;
    min-width: 0;
    margin: 0;
    padding: 11px 14px;
    border: 0 !important;
    background: transparent !important;
    line-height: 1.9 !important;
    text-align: start;
    vertical-align: top;
    overflow-wrap: anywhere;
     font-family: 'prk-font'
}

.specifications-content table.prk-native-attributes-table th {
    color: #424750;
    font-weight: 600 !important;
}

.specifications-content table.prk-native-attributes-table td {
    color: #3f4064;
    font-weight: 400 !important;
}

.specifications-content table.prk-native-attributes-table td p {
    margin: 0;
    line-height: inherit !important;
}

.prk-native-attributes-toggle svg {
    transition: transform .2s ease-in-out;
    transform: rotate(-90deg);
}

.prk-native-attributes-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

@media (min-width: 1024px) {
    .specifications-content table.prk-native-attributes-preview:not(.is-expanded) tr.prk-native-attribute-row--initially-hidden {
        display: none;
    }
}

@media (max-width: 1023px) {
    .specifications-content table.prk-native-attributes-preview:not(.is-expanded) tr.prk-native-attribute-row--initially-hidden {
        display: none;
    }

    .specifications-content table.prk-native-attributes-table tbody {
        gap: 0;
    }

    .specifications-content table.prk-native-attributes-table tr {
        display: block;
        padding: 12px 0;
        overflow: visible;
        border: 0;
        border-bottom: 1px solid #f0f0f1;
        border-radius: 0;
        background: #fff;
    }

    .specifications-content table.prk-native-attributes-table tr:first-child {
        padding-top: 0;
    }

    .specifications-content table.prk-native-attributes-table th,
    .specifications-content table.prk-native-attributes-table td {
        padding: 0;
    }

    .specifications-content table.prk-native-attributes-table th {
        margin-bottom: 4px;
        color: #81858b;
        font-size: 11px;
        font-weight: 500 !important;
        line-height: 1.75 !important;
    }

    .specifications-content table.prk-native-attributes-table td {
        color: #424750;
        font-size: 13px;
        font-weight: 400 !important;
        line-height: 1.9 !important;
    }
}

/* Native attributes inside the combined mobile information modal. */
.prk-mobile-info-tabs-modal table.prk-mobile-native-attributes-table {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.prk-mobile-info-tabs-modal table.prk-mobile-native-attributes-table tbody {
    display: block;
    width: 100%;
}

.prk-mobile-info-tabs-modal table.prk-mobile-native-attributes-table tr {
    display: block;
    width: 100%;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid #f0f0f1;
    background: #fff;
}

.prk-mobile-info-tabs-modal table.prk-mobile-native-attributes-table tr:first-child {
    padding-top: 0;
}

.prk-mobile-info-tabs-modal table.prk-mobile-native-attributes-table tr:last-child {
    border-bottom: 0;
}

.prk-mobile-info-tabs-modal table.prk-mobile-native-attributes-table th,
.prk-mobile-info-tabs-modal table.prk-mobile-native-attributes-table td {
    display: block;
    width: 100% !important;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    text-align: start;
    overflow-wrap: anywhere;
}

.prk-mobile-info-tabs-modal table.prk-mobile-native-attributes-table th {
    margin-bottom: 5px;
    color: #81858b;
    font-size: 11px;
    font-weight: 500 !important;
    line-height: 1.75 !important;
}

.prk-mobile-info-tabs-modal table.prk-mobile-native-attributes-table td {
    color: #424750;
    font-size: 13px;
    font-weight: 400 !important;
    line-height: 1.9 !important;
}

.prk-mobile-info-tabs-modal table.prk-mobile-native-attributes-table td p {
    margin: 0 !important;
    color: inherit;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* Theme default; Elementor's wrapper selectors can still override it. */
.listis-btn-more {
    color: var(--prk-color-primary, var(--prk-primary-color, #19bfd3));
}

.listis-btn-more:hover {
    color: var(--prk-color-primary-hover, var(--prk-color-primary, var(--prk-primary-color, #19bfd3)));
}

@media (max-width: 767px) {
    #tab_description .prk-product-description-content {
        font-size: 13px;
    }

    #tab_description .prk-product-description-content p {
        margin-bottom: 12px;
    }
}

#tab_description .prk-product-description-content + .prk-product-description-content {
    margin-top: 18px;
}

#tab_description .prk-product-description-content hr {
    height: 1px;
    margin: 24px 0;
    border: 0;
    background: #ececed;
}

#tab_description .prk-product-description-content dl {
    margin: 14px 0 18px;
}

#tab_description .prk-product-description-content dt {
    margin-top: 10px;
    color: #424750;
    font-weight: 700 !important;
}

#tab_description .prk-product-description-content dd {
    margin: 4px 0 0;
    color: #62666d;
}

#tab_description .prk-product-description-content pre {
    max-width: 100%;
    margin: 18px 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid #e0e0e2;
    border-radius: 10px;
    background: #f7f7f8;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
}

#tab_description .prk-product-description-content code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #f0f0f1;
    font-family: monospace !important;
    font-size: .92em;
}
