/* Gulf DropShip WhatsApp and native Tawk.to support controls. */

.gds-floating-support {
    position: fixed;
    right: var(--gds-support-desktop-side, 24px);
    bottom: var(--gds-support-desktop-bottom, 24px);
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 18px 0 14px;
    border: 0;
    border-radius: 999px;
    background: #16a34a;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.gds-floating-support.is-left {
    left: var(--gds-support-desktop-side, 24px);
    right: auto;
}

.gds-floating-support:hover,
.gds-floating-support:focus {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
}

.gds-floating-support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.gds-floating-support-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.gds-floating-support-label {
    white-space: nowrap;
}

/* Native Tawk.to companion label. This is not a second chat icon. */
#custom-tawk-title {
    position: fixed;
    right: calc(var(--gds-support-desktop-side, 24px) + 70px);
    bottom: calc(var(--gds-support-desktop-bottom, 24px) + 12px);
    z-index: 10699;
    padding: 11px 17px;
    border: 0;
    border-radius: 25px;
    background: #0b3ea8;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.20);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.gds-tawk-active #custom-tawk-title:hover {
    transform: translateY(-2px);
}

#custom-tawk-title::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 8px solid #0b3ea8;
}

#custom-tawk-title.is-left {
    left: calc(var(--gds-support-desktop-side, 24px) + 70px);
    right: auto;
}

#custom-tawk-title.is-left::after {
    left: -7px;
    right: auto;
    border-right: 8px solid #0b3ea8;
    border-left: 0;
}

body.gds-tawk-active #custom-tawk-title.tawk-title-hidden,
body.gds-whatsapp-active #custom-tawk-title {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Prevent a plugin-loaded Tawk widget flashing while WhatsApp mode is active. */
body.gds-whatsapp-active iframe[src*="tawk.to"],
body.gds-whatsapp-active iframe[title*="chat widget" i],
body.gds-whatsapp-active [class*="tawk-min-container"],
body.gds-whatsapp-active [id*="tawk"] iframe {
    visibility: hidden !important;
    pointer-events: none !important;
}

.gds-footer-support-contact {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.5;
}

.gds-footer-support-contact span {
    font-weight: 700;
}

.gds-footer-support-contact a {
    color: #fff !important;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.gds-footer-support-contact a:hover {
    text-decoration: underline;
}

/* Existing homepage support CTA switches visually in native Tawk mode. */
.gds-whatsapp-btn.gds-open-tawk-chat {
    background: #0b3ea8 !important;
    border-color: #0b3ea8 !important;
}

.gds-whatsapp-btn.gds-open-tawk-chat:hover,
.gds-whatsapp-btn.gds-open-tawk-chat:focus {
    background: #082f82 !important;
    border-color: #082f82 !important;
}

@media (max-width: 782px) {
    .gds-floating-support {
        right: var(--gds-support-mobile-side, 16px);
        bottom: var(--gds-support-mobile-bottom, 92px);
        width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 0;
        border-radius: 50%;
    }

    .gds-floating-support.is-left {
        left: var(--gds-support-mobile-side, 16px);
        right: auto;
    }

    .gds-floating-support-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .gds-floating-support-icon {
        width: 27px;
        height: 27px;
    }

    #custom-tawk-title {
        right: calc(var(--gds-support-mobile-side, 16px) + 65px);
        bottom: calc(var(--gds-support-mobile-bottom, 92px) + 10px);
        padding: 9px 13px;
        font-size: 12px;
    }

    #custom-tawk-title.is-left {
        left: calc(var(--gds-support-mobile-side, 16px) + 65px);
        right: auto;
    }
}
