.jepa-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--jepa-topbar-bg, #DB6A29);
    color: #fff;
    z-index: 9999;
}

.jepa-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 10%;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-item-right {
    margin-left: auto;
}

.topbar-icon-info-trigger,
.topbar-call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.topbar-icon-info-trigger:focus-visible,
.topbar-call-icon:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.jepa-topbar-icon {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    filter: brightness(0) saturate(100%) invert(100%);
}

.topbar-icon-info-trigger {
    position: relative;
}

.topbar-icon-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 260px;
  max-width: min(420px, 80vw);
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  font-weight: normal;
  font-size: 14px;
  line-height: 1.3;
  color: #000;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10001;
}

.topbar-icon-info-trigger:hover .topbar-icon-tooltip,
.topbar-icon-info-trigger:focus-visible .topbar-icon-tooltip,
.topbar-icon-info-trigger.is-open .topbar-icon-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topbar-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.topbar-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.topbar-subtitle {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    margin: 2px 0 0;
}

.topbar-phone,
.topbar-phone:visited {
    color: #fff !important;
    text-decoration: none !important;
}

.topbar-phone:hover {
    text-decoration: underline !important;
}

:not(.mejs-button) > button:hover {
    background: none !important;
}

@media (max-width: 798px) {
    .jepa-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 14px;
        gap: 10px;
    }

    .topbar-item-right {
        margin-left: 0;
    }

    .topbar-title {
        font-size: 18px;
    }

    .topbar-subtitle {
        font-size: 14px;
    }

    .jepa-topbar-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .topbar-icon-tooltip {
        left: 0;
        max-width: min(320px, 88vw);
        min-width: 220px;
        font-size: 13px;
    }
}
