/* Shared styles for /ai/connectors/ and /ai/integrations/ */
html {
    scroll-behavior: smooth;
}

.accordion-sections .tab-content {
    padding-left: 0;
}
.tab-content {
    padding-top: 15px;
}

span.universal-total:empty{
    min-width: 32px;
    opacity: 0;
}

span.universal-total {
    display: inline-block;
    font-size: var(--label-s);
    background: var(--gray-4);
    padding: 4px 8px;
    border-radius: 999px;
    line-height: 1.2;
    color: var(--gray-11);
    opacity: 1;
    min-width: 32px;
    transition: opacity 0.2s ease-in-out;
}

.cloud-connections .source {
    height: 175px;
}

.dropFilters {
    width: 100%;
    margin-bottom: 10px;
}
.dropFilters #filters-select {
    width: 100%;
    border-color: var(--surface-fill-3);
    font-size: var(--body-s);
    padding: 6px;
    background-color: var(--surface-fill-1);
}
#filters-select:focus,
#filters-select:active {
    border-color: var(--text-fill-1);
}
.product-item-subfilter-wrapper {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}
.product-item-subfilter-wrapper.vertical {
    flex-flow: column;
    align-items: flex-start;
}
.subfilter.vertical {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}
.subfilter.vertical li {
    float: none;
}
.subfilter.nav-pills > li + li {
    margin: 0;
}
/* rails stay in view until the end of their grid (below the fixed header + sub nav) */
@media (min-width: 992px) {
    .cloud-connections .cols-3-lg > .product-item-subfilter-wrapper {
        position: sticky;
        top: 160px;
    }
}
.filter-count {
    float: right;
    font-size: 12px;
    opacity: .75;
}

/* Universal MCP hover details */
.mcp-source:hover,
.mcp-source.tip-open,
.mcp-source:focus-within {
    z-index: 20;
}
.mcp-source .server-tile {
    cursor: default;
}
.mcp-tip {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    max-width: calc(100vw - 40px);
    padding-top: 8px;
    z-index: 30;
}
.mcp-source:hover .mcp-tip,
.mcp-source:focus-within .mcp-tip,
.mcp-source.tip-open .mcp-tip {
    display: block;
}
.mcp-tip-inner {
    background-color: var(--surface-fill-3);
    border: 1px solid var(--text-fill-1);
    box-shadow: 0 4px 16px rgba(21, 21, 28, .12);
    padding: var(--space-16);
    text-align: left;
}
.mcp-tip-name {
    display: block;
    font-weight: 500;
    font-size: var(--body-m);
    line-height: 1.3;
}
.mcp-tip-cat {
    display: block;
    color: var(--text-fill-2);
    font-family: var(--font-eyebrow);
    font-size: var(--label-s);
}
.mcp-tip-inner p {
    margin: 8px 0;
    color: var(--text-fill-2);
    font-size: var(--body-s);
}
.mcp-tip-link {
    font-weight: 500;
    font-size: var(--label-s)
}

.hero-search {
    position: relative;
    max-width: 640px;
    margin: 24px auto 16px;
}
.hero-search input {
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    padding: 0 48px 0 50px;
    font-size: 16px;
    color: var(--text-fill-1);
    background-color: var(--surface-fill-1);
    border: 1px solid var(--surface-fill-3);
    border-radius: 2px;
    outline: none;
}
.hero-search input::placeholder {
    color: var(--text-fill-1);
}
.hero-search input:focus {
    border-color: var(--text-fill-1);
}
.hero-search .search-icon {
    position: absolute;
    left: 18px;
    top: 19px;
    pointer-events: none;
    color: var(--text-fill-2);
}
.hero-search .reset {
    display: none;
    position: absolute;
    right: 10px;
    top: 12px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-fill-3);
    cursor: pointer;
}
.hero-search.has-value .reset {
    display: flex;
}

@media (min-width: 768px) and (max-width: 992px) {
    .product-item-subfilter-wrapper {
        align-items: flex-start;
        justify-content: space-between;
    }
    .subfilter {
        flex: 0 0 auto;
        max-width: 70%;
    }
}
@media (max-width: 767px) {
    .subfilter {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(180deg, var(--surface-fill-1) 0%, var(--surface-fill-3) 100%);
    color: var(--text-fill-3);
    font-family: var(--font-eyebrow);
    font-size: 14px;
    font-weight: 500;
}

.search-reset-btn {
    background: var(--surface-fill-3);
    outline: none;
    border: none;
    font-size: var(--label-s);
    padding: var(--space-4) var(--space-12);
    line-height: 1.5;
    color: var(--text-fill-2);
    border-radius: 999px;
    display: inline-flex;
    gap: var(--space-4);
    align-items: center;
}
