/* =====================================
   ATRA SMART CONTACT WIDGET
   PREMIUM RTL DESIGN
===================================== */


/* FONT */

@font-face {

    font-family:'IRANSans';

    src:url('https://atrasmart.ir/wp-content/uploads/2025/10/IRANSansWebFaNum.woff') format('woff');

    font-weight:400;

    font-display:swap;

}


@font-face {

    font-family:'IRANSans';

    src:url('https://atrasmart.ir/wp-content/uploads/2025/10/IRANSansWebFaNum_Bold.woff') format('woff');

    font-weight:700;

    font-display:swap;

}



.atra-contact-widget {

    direction:rtl;

    font-family:'IRANSans',Tahoma,sans-serif;

}



/* =====================================
   FLOAT BUTTON
===================================== */


.atra-contact-button {

    position:fixed;

    right:30px;

    bottom:30px;

    width:62px;

    height:62px;

    border:none;

    border-radius:50%;

    background:#00B4D8;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    z-index:99999;

    box-shadow:0 12px 35px rgba(0,180,216,.35);

    transition:.35s ease;

}



.atra-contact-button:hover {

    transform:translateY(-5px);

}



.atra-contact-button svg {

    width:30px;

    height:30px;

    fill:#fff;

}





/* =====================================
   PANEL
===================================== */


.atra-contact-panel {

    position:fixed;

    right:30px;

    bottom:105px;

    width:360px;

    background:#fff;

    border-radius:22px;

    padding:25px;

    box-shadow:0 25px 70px rgba(0,0,0,.22);

    opacity:0;

    visibility:hidden;

    transform:translateY(25px);

    transition:.35s ease;

    z-index:99998;

}



.atra-contact-panel.active {

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}





/* =====================================
   HEADER
===================================== */


.atra-contact-header {

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    margin-bottom:20px;

}



.atra-contact-header h4 {

    margin:0 0 8px;

    font-size:20px;

    color:#0B132B;

    font-weight:700;

}



.atra-contact-close {

    width:34px;

    height:34px;

    border-radius:50%;

    border:none;

    background:#f1f5f9;

    color:#475569;

    font-size:22px;

    cursor:pointer;

}





/* =====================================
   STATUS
===================================== */


.atra-online {

    display:flex;

    align-items:center;

    gap:7px;

    font-size:12px;

    color:#16a34a;

}



.atra-online span {

    width:9px;

    height:9px;

    background:#16a34a;

    border-radius:50%;

}





/* =====================================
   MESSAGE
===================================== */


.atra-contact-message {

    background:#f7fcfe;

    border:1px solid #e3f1f6;

    padding:15px;

    border-radius:15px;

    margin-bottom:18px;

    color:#334155;

    font-size:13px;

    line-height:2;

}





/* =====================================
   ITEMS
===================================== */


.atra-contact-items {

    display:flex;

    flex-direction:column;

    gap:14px;

}





.atra-contact-item {

    display:flex;

    align-items:center;

    gap:14px;

    padding:12px;

    background:#f8fafc;

    border:1px solid #edf2f7;

    border-radius:16px;

    text-decoration:none;

    color:#0B132B;

    transition:.3s ease;

    position:relative;

}



.atra-contact-item:hover {

    background:#eefbff;

    transform:translateX(-5px);

}





.atra-contact-item:not(:last-child)::after {

    content:"";

    position:absolute;

    bottom:-7px;

    right:25px;

    left:25px;

    height:1px;

    background:#e6edf3;

}





/* =====================================
   ICONS
===================================== */


.atra-contact-item > span {

    width:44px;

    height:44px;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

    background:transparent;

}



.atra-contact-item img {

    width:32px;

    height:32px;

    object-fit:contain;

}



/* WhatsApp */

.whatsapp img {

    width:42px;

    height:42px;

}





/* =====================================
   BRAND BACKGROUND
===================================== */


.whatsapp {

    background:#f7fcf8;

}



.telegram {

    background:#f3faff;

}



.bale {

    background:#f7faff;

}



.eitaa {

    background:#fff8f2;

}





/* =====================================
   CALL ICON
===================================== */


.call span {

    width:40px;

    height:40px;

    border-radius:50%;

    background:#0B132B;

}



.call svg {

    width:17px;

    height:17px;

    fill:#fff;

}





/* =====================================
   TEXT
===================================== */


.atra-contact-item strong {

    display:block;

    font-size:14px;

    font-weight:700;

    color:#0B132B;

}



.atra-contact-item small {

    display:block;

    margin-top:5px;

    font-size:12px;

    color:#64748b;

}





/* =====================================
   MOBILE
===================================== */


@media(max-width:600px){


.atra-contact-button {

    width:56px;

    height:56px;

    right:20px;

    bottom:25px;

}



.atra-contact-panel {

    right:15px;

    left:15px;

    width:auto;

    bottom:90px;

    padding:20px;

}


}