/* Card theme – standalone stylesheet */

.smp-chat-button {
    position: fixed;
    bottom: var(--smp-bottom-offset, 20px);
    right: 20px;
    width: 60px;
    height: 60px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    z-index: 9999;
    opacity: 0;
    transform: translateY(calc(var(--smp-bottom-offset, 20px) + 100px));
    will-change: transform, opacity;
}

.smp-chat-button.smp-animate-in { opacity: 1; transform: translateY(0); }
.smp-chat-button img { width: 30px; height: 30px; transition: all 0.3s ease; position: absolute; }
.smp-chat-button .chat-icon { opacity: 1; visibility: visible; }
.smp-chat-button .close-icon { opacity: 0; visibility: hidden; }
.smp-chat-button.active { background: #ff4444; }
.smp-chat-button.active .chat-icon { opacity: 0; visibility: hidden; }
.smp-chat-button.active .close-icon { opacity: 1; visibility: visible; }

.smp-popup {
    display: none;
    position: fixed;
    bottom: calc(var(--smp-bottom-offset, 20px) + 70px);
    right: var(--smp-horizontal-offset, 15px);
    border-radius: 10px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) !important;
    will-change: transform, opacity;
}
.smp-popup.smp-open { opacity: 1; transform: translateY(0); }
.smp-popup.left { right: auto; left: var(--smp-horizontal-offset, 15px); }
.smp-popup.right { left: auto; right: var(--smp-horizontal-offset, 15px); }

.smp-popup-content {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    padding: 12px 14px;
    width: 210px;
    position: relative;
}

.smp-card-title {
    background: #f5f7fb;
    color: #333;
    font-size: 13px;
    border-radius: 12px;
    padding: 6px 10px;
    text-align: center;
    margin-bottom: 10px;
}

.smp-social-links { display: flex; flex-direction: column; gap: 0; }

.smp-social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1), transform 0.25s cubic-bezier(0.23, 1, 0.32, 1) !important;
    padding: 10px 4px;
    margin: 0;
    justify-content: space-between;
    flex-direction: row-reverse; /* icon on right */
    will-change: transform, opacity;
}

.smp-social-link.smp-link-visible { opacity: 1; transform: translateY(0); }
.smp-social-link + .smp-social-link { border-top: 1px solid #eef0f4; }

.smp-social-link img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.07);
    margin-inline-start: 8px;
}

.smp-label {
    position: static;
    background: transparent;
    color: #1f64d1; /* آبی لینک‌ها */
    font-size: 14px;
    line-height: 1;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    white-space: nowrap;
    pointer-events: none;
    transform: none;
}

.smp-popup.left .smp-social-links,
.smp-popup.right .smp-social-links { align-items: stretch; }

@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum).woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum).woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum).ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum)_Light.woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum)_Light.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap;}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum)_Medium.woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap;}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum)_Bold.woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap;}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf') format('truetype');font-weight:200;font-style:normal;font-display:swap;}
@font-face {font-family:'IRANSansWeb';src:url('../fonts/woff2/IRANSansWeb(FaNum)_Black.woff2') format('woff2'),url('../fonts/woff/IRANSansWeb(FaNum)_Black.woff') format('woff'),url('../fonts/ttf/IRANSansWeb(FaNum)_Black.ttf') format('truetype');font-weight:900;font-style:normal;font-display:swap;}
.smp-popup, .smp-popup *, .smp-chat-button, .smp-help-badge, .smp-help-bubble {font-family:'IRANSansWeb', sans-serif;}
