.jd-collapse-box {
    position: relative;
}

.jd-collapse-content {
    position: relative;
    overflow: hidden;
    transition: max-height .35s ease;
}

.jd-collapse-content.jd-is-collapsed {
    will-change: max-height;
}

.jd-collapse-content.jd-is-expanded {
    overflow: visible;
}

.jd-collapse-content.jd-is-collapsed::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 92px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 82%);
    z-index: 2;
}

.jd-theme-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

.jd-collapse-box.jd-is-collapsed .jd-theme-toggle-wrap {
    margin-top: -24px;
}

.jd-collapse-box.jd-is-expanded .jd-theme-toggle-wrap {
    margin-top: 14px;
}

button.jd-theme-desc-toggle,
    .woocommerce-product-details__short-description button#product-short-desc-toggle {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    box-shadow: none;
    font: inherit;
    line-height: 1;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

button.jd-theme-desc-toggle .outer,
    .woocommerce-product-details__short-description button#product-short-desc-toggle .outer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 7px;
    min-width: 132px;
    min-height: 34px;
    padding: 7px 18px;
    border: 0;
    border-radius: 999px;
    background: #f1f1f2;
    color: #5f6368;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
    box-shadow: none;
    transition: background-color .22s ease, color .22s ease, transform .22s ease;
}

button.jd-theme-desc-toggle .outer span,
    .woocommerce-product-details__short-description button#product-short-desc-toggle .outer span,
    button.jd-theme-desc-toggle .jd-theme-toggle-text {
    display: inline-flex;
    align-items: center;
    line-height: 1.7;
}

button.jd-theme-desc-toggle:hover .outer,
    .woocommerce-product-details__short-description button#product-short-desc-toggle:hover .outer {
    background: #e9e9ea;
    color: #444950;
}

button.jd-theme-desc-toggle:active .outer,
    .woocommerce-product-details__short-description button#product-short-desc-toggle:active .outer {
    transform: translateY(1px);
}

button.jd-theme-desc-toggle:focus,
    .woocommerce-product-details__short-description button#product-short-desc-toggle:focus {
    outline: none;
}

button.jd-theme-desc-toggle:focus-visible .outer,
    .woocommerce-product-details__short-description button#product-short-desc-toggle:focus-visible .outer {
    box-shadow: 0 0 0 3px rgba(120, 124, 130, .13);
}

button.jd-theme-desc-toggle i,
    .woocommerce-product-details__short-description button#product-short-desc-toggle i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    font-size: 13px;
    line-height: 1;
    color: inherit;
    position: relative;
    top: 0;
    margin-right: 1px;
    transform: translateY(2px) rotate(0deg);
    transform-origin: center center;
    transition: transform .25s ease;
}

.jd-collapse-box.jd-is-expanded button.jd-theme-desc-toggle i {
    transform: translateY(-1px) rotate(180deg);
}

.woocommerce-product-details__short-description.open button#product-short-desc-toggle i,
    .woocommerce-product-details__short-description.active button#product-short-desc-toggle i,
    .woocommerce-product-details__short-description.expanded button#product-short-desc-toggle i,
    .woocommerce-product-details__short-description.show button#product-short-desc-toggle i,
    .woocommerce-product-details__short-description button#product-short-desc-toggle[aria-expanded="true"] i {
    transform: translateY(-1px) rotate(180deg);
}

.negarshop-card.archive-page-description {
    position: relative;
    overflow: hidden;
}

.negarshop-card.archive-page-description .term-description.jd-collapse-content,
    .woocommerce-Tabs-panel--description .product-description-inner.jd-collapse-content,
    .product-section.product-excerpt .product-excerpt-content.jd-collapse-content {
    margin-bottom: 0;
}

.woocommerce-Tabs-panel--description.jd-collapse-box,
    .product-section.product-excerpt .woocommerce-product-details__short-description.jd-collapse-box {
    overflow: hidden;
}

.woocommerce-Tabs-panel--description.jd-is-expanded,
    .product-section.product-excerpt .woocommerce-product-details__short-description.jd-is-expanded {
    overflow: visible;
}

.product-section.product-excerpt .woocommerce-product-details__short-description {
    position: relative;
}

.product-section.product-excerpt .product-excerpt-content {
    position: relative;
}

@media (max-width: 768px) {
    .jd-collapse-content.jd-is-collapsed::after {
        height: 82px;
    }
    .jd-collapse-box.jd-is-collapsed .jd-theme-toggle-wrap {
        margin-top: -22px;
    }
    .jd-collapse-box.jd-is-expanded .jd-theme-toggle-wrap {
        margin-top: 13px;
    }
    button.jd-theme-desc-toggle .outer,
        .woocommerce-product-details__short-description button#product-short-desc-toggle .outer {
        min-width: 128px;
        min-height: 33px;
        padding: 7px 16px;
        font-size: 12.8px;
        line-height: 1.7;
    }
    button.jd-theme-desc-toggle i,
        .woocommerce-product-details__short-description button#product-short-desc-toggle i {
        width: 13px;
        height: 13px;
        flex: 0 0 13px;
        font-size: 12.5px;
        margin-right: 0;
        transform: translateY(2px) rotate(0deg);
    }
    .jd-collapse-box.jd-is-expanded button.jd-theme-desc-toggle i {
        transform: translateY(-1px) rotate(180deg);
    }
    .woocommerce-product-details__short-description.open button#product-short-desc-toggle i,
        .woocommerce-product-details__short-description.active button#product-short-desc-toggle i,
        .woocommerce-product-details__short-description.expanded button#product-short-desc-toggle i,
        .woocommerce-product-details__short-description.show button#product-short-desc-toggle i,
        .woocommerce-product-details__short-description button#product-short-desc-toggle[aria-expanded="true"] i {
        transform: translateY(-1px) rotate(180deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jd-collapse-content,
        button.jd-theme-desc-toggle .outer,
        button.jd-theme-desc-toggle i,
        .woocommerce-product-details__short-description button#product-short-desc-toggle .outer,
        .woocommerce-product-details__short-description button#product-short-desc-toggle i {
        transition: none;
    }
}
