/**
 * KAP Short Description Widget Styles
 */

.kap-sd {
    direction: rtl;
    width: 100%;
}

.kap-sd__content {
    line-height: 1.9;
    color: #374151;
}

.kap-sd__content p {
    margin-bottom: 12px;
}

.kap-sd__content p:last-child {
    margin-bottom: 0;
}

/* ─── Toggle Button ──────────────────────── */
.kap-sd__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    direction: rtl;
}

.kap-sd__btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.kap-sd__btn.is-open svg {
    transform: rotate(180deg);
}

/* ─── Mobile Bottom Sheet ────────────────── */
.kap-sd__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    animation: kap-sd-fade 0.25s ease;
}

.kap-sd__overlay.is-open {
    display: block;
}

.kap-sd__sheet {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 99999;
    background: #fff;
    padding: 24px 20px 40px;
    max-height: 80vh;
    overflow-y: auto;
    direction: rtl;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.kap-sd__sheet.is-open {
    transform: translateY(0);
}

.kap-sd__sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.kap-sd__sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.kap-sd__sheet-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.kap-sd__sheet-close:hover {
    background: #e5e7eb;
}

.kap-sd__sheet-close svg {
    width: 16px;
    height: 16px;
    stroke: #374151;
}

.kap-sd__sheet-body {
    font-size: 14px;
    line-height: 1.9;
    color: #374151;
}

.kap-sd__sheet-body p {
    margin-bottom: 12px;
}

/* ─── Animations ─────────────────────────── */
@keyframes kap-sd-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}