/* Digikala-style footer text block */
.wm-footer-text-box {
    --wm-ftb-line-height: 2;
    direction: rtl;
    text-align: right;
    max-width: 100%;
    font-family: inherit;
}

.wm-footer-text-box__title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    color: #3f4064;
}

.wm-footer-text-box__desc-wrap {
    position: relative;
    margin: 0 0 4px;
}

.wm-footer-text-box:not(.is-expanded) .wm-footer-text-box__content {
    max-height: calc(var(--wm-ftb-lines, 3) * var(--wm-ftb-line-height) * 1em);
    overflow: hidden;
}

.wm-footer-text-box__desc-wrap.is-fade::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: calc(var(--wm-ftb-line-height) * 1.2em);
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        #f0f0f0 78%
    );
}

.wm-footer-text-box.is-expanded .wm-footer-text-box__content {
    max-height: none;
    overflow: visible;
}

.wm-footer-text-box.is-expanded .wm-footer-text-box__desc-wrap.is-fade::after {
    opacity: 0;
    visibility: hidden;
}

/* Rich text body */
.wm-footer-text-box__content {
    font-size: 12px;
    line-height: var(--wm-ftb-line-height);
    color: #81858b;
    word-break: break-word;
}

.wm-footer-text-box__content > :first-child {
    margin-top: 0 !important;
}

.wm-footer-text-box__content > :last-child {
    margin-bottom: 0 !important;
}

.wm-footer-text-box__content p {
    margin: 0 0 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-align: right;
}

.wm-footer-text-box__content h1,
.wm-footer-text-box__content h2,
.wm-footer-text-box__content h3,
.wm-footer-text-box__content h4,
.wm-footer-text-box__content h5,
.wm-footer-text-box__content h6 {
    margin: 0 0 8px;
    font-weight: 700;
    color: #3f4064;
    line-height: 1.6;
}

.wm-footer-text-box__content h2 { font-size: 1.15em; }
.wm-footer-text-box__content h3 { font-size: 1.08em; }
.wm-footer-text-box__content h4 { font-size: 1em; }

.wm-footer-text-box__content ul,
.wm-footer-text-box__content ol {
    margin: 0 0 8px;
    padding-inline-start: 18px;
}

.wm-footer-text-box__content li {
    margin-bottom: 4px;
    line-height: inherit;
}

.wm-footer-text-box__content a {
    color: #a100f2;
    text-decoration: none;
}

.wm-footer-text-box__content a:hover {
    text-decoration: underline;
}

.wm-footer-text-box__content strong,
.wm-footer-text-box__content b {
    font-weight: 700;
    color: #3f4064;
}

.wm-footer-text-box__content img {
    max-width: 100%;
    height: auto;
}

/* «مشاهده بیشتر» — لینک متنی مثل دیجی‌کالا */
.wm-footer-text-box__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #a100f2;
    -webkit-appearance: none;
    appearance: none;
    transition: color 0.15s ease;
}

.wm-footer-text-box__more:hover {
    color: #a100f2;
}

.wm-footer-text-box__more:focus {
    outline: none;
}

.wm-footer-text-box__more:focus-visible {
    outline: 2px solid #a100f2;
    outline-offset: 2px;
    border-radius: 2px;
}

.wm-footer-text-box__more[hidden] {
    display: none !important;
}

.wm-footer-text-box__more-label {
    display: inline-block;
}

.wm-footer-text-box__more-icon {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-top: 1px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(135deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.wm-footer-text-box.is-expanded .wm-footer-text-box__more-icon {
    transform: rotate(-45deg);
    margin-top: 3px;
}
.elementor-49051 .elementor-element.elementor-element-c567c8e .wm-footer-text-box__more {
    color: #a100f2 !important;
}