/* ===== WIDGET CONTAINER ===== */
.premium-side-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* ===== BUTTON BASE STYLE ===== */
.psw-item {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    text-decoration: none;

    /* Dimensions & Shape */
    width: 55px;
    /* Icon size */
    height: 55px;
    border-radius: 30px 0 0 30px;
    overflow: hidden;

    /* Animation */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.2);

    /* Font */
    white-space: nowrap;
    position: relative;
}

/* ===== HOVER ACTION (DEFAULT / EMAIL) ===== */
.psw-item:hover {
    width: 270px;
    /* Email ke liye ye width sahi hai */
    padding-right: 5px;
}

/* ===== SPECIFIC HOVER FOR PHONE ONLY (NEW CHANGE) ===== */
.phone-style:hover {
    width: 220px;
    /* Phone ke liye width kam kar di gayi hai */
}

/* ===== ICON STYLE ===== */
.psw-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
    z-index: 2;
}

/* ===== TEXT STYLE ===== */
.psw-text {
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    padding-left: 20px;
    padding-right: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease 0.1s;
}

.psw-item:hover .psw-text {
    opacity: 1;
    transform: translateX(0);
}

/* ===== COLORS & GRADIENTS ===== */
.phone-style {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.phone-style .psw-text {
    color: #fff;
}

.phone-style:hover {
    background: linear-gradient(135deg, #20bd5a 0%, #0e6e63 100%);
}

.email-style {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
}

.email-style .psw-text,
.email-style .psw-icon {
    color: #0f2b5a;
}

.email-style:hover {
    background: linear-gradient(135deg, #ffb300 0%, #f57c00 100%);
}

/* ===== MOBILE RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .premium-side-widget {
        top: auto;
        bottom: 30px;
        right: 20px;
        gap: 15px;
    }

    .psw-item {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    /* Mobile pe hover width expand nahi honi chahiye */
    .psw-item:hover,
    .phone-style:hover {
        width: 55px;
    }

    .psw-text {
        display: none;
    }
}

/* ===== RTL / ARABIC SUPPORT (Flip to Left Side) ===== */
/* ===== RTL / ARABIC SUPPORT (Flip to Left Side) ===== */
html.translated-rtl .premium-side-widget {
    right: auto !important;
    left: 0 !important;
    /* align-items: flex-end is default, which translates to LEFT in RTL, so we stick with that/inherit or explicitly set if needed. 
       Actually, let's trust flex-end = Left in RTL context. */
}

html.translated-rtl .psw-item {
    border-radius: 0 30px 30px 0 !important;
    /* flex-direction: row-reverse (default) in RTL context acts as L-to-R (Icon Left, Text Right), which is CORRECT for Left side. 
       So we remove the override. */
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2) !important;
}

html.translated-rtl .psw-text {
    /* Padding flip not strictly necessary if order is Icon-Text, but let's ensure spacing is good. */
    padding-left: 10px !important;
    padding-right: 20px !important;

    /* Slide effect: Start from Left (-20px) so it emerges from Icon. */
    transform: translateX(-20px) !important;
}

html.translated-rtl .psw-item:hover {
    padding-right: 0 !important;
    padding-left: 5px !important;
}

html.translated-rtl .psw-item:hover .psw-text {
    transform: translateX(0) !important;
}