/* ═══════════════════════════════════════════════════════════════
   Mobile Enhancements — TenderGlobal
   1. Hide breadcrumbs / user pathway on mobile
   2. Hide floating communication icons on mobile
   3. App Download Smart Banner (one-time dismissible popup)
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Hide breadcrumbs / pathway on mobile ────────────────── */
@media (max-width: 768px) {
    .breadcrumbs,
    .breadcrumbs.pull-right,
    .sl-breadcrumb,
    .sd-breadcrumb,
    .ts-hero-breadcrumb,
    .page-title-container .breadcrumbs,
    nav[aria-label="breadcrumb"] {
        display: none !important;
    }
}

/* ── 2. Hide floating icons on mobile ───────────────────────── */
@media (max-width: 768px) {
    /* Support widget (headset FAB) */
    .support-widget {
        display: none !important;
    }

    /* UserWay accessibility widget */
    .userway_p1,
    .userway_p2,
    .userway_p3,
    .userway_p4,
    .userway_p5,
    .userway_p6,
    #userwayAccessibilityIcon,
    [data-userway],
    .uwy {
        display: none !important;
    }
}


/* ── 3. App Download Banner ─────────────────────────────────── */
.tg-app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999990;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.tg-app-banner.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.tg-app-banner__inner {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08), 0 -1px 6px rgba(0, 0, 0, 0.04);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

/* App icon */
.tg-app-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2e8795 0%, #1a5f6a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(46, 135, 149, 0.3);
}

.tg-app-banner__icon img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.tg-app-banner__icon i {
    font-size: 22px;
    color: #fff;
}

/* Text block */
.tg-app-banner__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tg-app-banner__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-app-banner__subtitle {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tg-app-banner__stars {
    color: #f59e0b;
    font-size: 10px;
    letter-spacing: -1px;
}

/* CTA button */
.tg-app-banner__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2e8795 0%, #237a87 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(46, 135, 149, 0.3);
    white-space: nowrap;
}

.tg-app-banner__cta:hover,
.tg-app-banner__cta:focus {
    background: linear-gradient(135deg, #237a87 0%, #1a5f6a 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(46, 135, 149, 0.4);
    transform: translateY(-1px);
}

.tg-app-banner__cta i {
    font-size: 14px;
}

/* Close button */
.tg-app-banner__close {
    position: absolute;
    top: -10px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

[dir="rtl"] .tg-app-banner__close {
    right: auto;
    left: 12px;
}

.tg-app-banner__close:hover {
    background: #f3f4f6;
    color: #111827;
    transform: scale(1.1);
}

/* Hide on desktop — only show on mobile */
@media (min-width: 769px) {
    .tg-app-banner {
        display: none !important;
    }
}

/* Safe area padding for iOS notch */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .tg-app-banner__inner {
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }
}
