/* Temporary Salesforce outage banner. Styles mirror the Xappex design system
   (Tag M / Button filled-black L) so the banner matches the site without
   pulling in the design-system bundle. */

.xob {
    display: none;
    padding: 24px 16px;
    background: #FFFFFF;
    justify-content: center;
}

.xob.is-visible {
    display: flex;
}

.xob__inner {
    width: 100%;
    max-width: 1504px;
    box-sizing: border-box;
    background: rgba(255, 95, 74, .07);
    border: 1px solid rgba(255, 95, 74, .28);
    border-radius: 24px;
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Status marker: Salesforce logo + pulsing dot + tag */
.xob__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

.xob__dot {
    position: relative;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.xob__dot-ping,
.xob__dot-core {
    width: 12px;
    height: 12px;
    border-radius: 100px;
    background: #FF5F4A;
}

.xob__dot-ping {
    position: absolute;
    animation: xob-pulse 1.8s ease-out infinite;
}

.xob__dot-core {
    position: relative;
}

@keyframes xob-pulse {
    0% {
        transform: scale(1);
        opacity: .55;
    }

    70% {
        transform: scale(2.6);
        opacity: 0;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xob__dot-ping {
        animation: none;
        opacity: .35;
    }
}

.xob__logo {
    height: 22px;
    width: auto;
    display: block;
}

/* Design system: Tag, size M, color white */
.xob__tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 6px;
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #1D1D1D;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.xob__text {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xob__title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: #1D1D1D;
    text-wrap: pretty;
}

.xob__desc {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1.45;
    color: rgba(68, 84, 103, .9);
    text-wrap: pretty;
}

.xob__desc a {
    color: #139AB1;
    text-decoration: none;
}

.xob__desc a:hover {
    color: #42AEC1;
}

.xob__actions {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Design system: Button, type filled-black, size L */
.xob__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 100px;
    background: #1D1D1D;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease-in;
}

.xob__btn:hover,
.xob__btn:focus {
    background: #343434;
    color: #FFFFFF;
    text-decoration: none;
}

.xob__close {
    width: 40px;
    height: 40px;
    flex: none;
    padding: 0;
    border: 1px solid rgba(29, 29, 29, .1);
    background: transparent;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s ease-in;
}

.xob__close:hover {
    border-color: #1D1D1D;
}

.xob__close svg {
    width: 16px;
    height: 16px;
    display: block;
}

@media (max-width: 1023px) {
    .xob__inner {
        gap: 16px;
    }

    .xob__actions {
        margin-left: 0;
        width: 100%;
    }

    .xob__btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 640px) {
    .xob {
        padding: 16px 12px;
    }

    .xob__inner {
        padding: 16px;
        border-radius: 16px;
    }

    .xob__meta {
        gap: 10px;
        flex-wrap: wrap;
    }

    .xob__title {
        font-size: 18px;
    }

    .xob__desc {
        font-size: 15px;
    }
}
