/*
 * ACE TENNIS — CATEGORY THIRD LEVEL V1
 *
 * Complemento isolado do menu V51.
 * Não altera a janela deslizante das categorias principais.
 */

.ace-global-header-scope
.ace-h11-mega-child-link.has-third-level {
    position: relative;
}

.ace-global-header-scope
.ace-h11-mega-child-link.has-third-level
> span {
    margin-left: auto;
    padding-left: 12px;

    font-size: 18px;
    line-height: 1;
}

.ace-global-header-scope
.ace-h11-mega-child-link.is-active {
    background: rgba(213, 254, 0, .20) !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;

    border-radius: 10px !important;
}

.ace-global-header-scope
.ace-h11-mega-detail {
    position: relative;

    min-width: 0;
    min-height: 0;

    align-self: stretch;
}

.ace-global-header-scope
.ace-h11-mega-detail
> .ace-h11-mega-media {
    position: relative;
    z-index: 1;

    display: block;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.ace-global-header-scope
.ace-h11-mega-detail.is-third-open
> .ace-h11-mega-media {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ace-global-header-scope
.ace-h11-third-panel {
    position: absolute;
    z-index: 2;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    box-sizing: border-box;

    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;

    padding: 24px;

    overflow: hidden;

    background: #ffffff;
    color: #111111;
    -webkit-text-fill-color: #111111;

    border-radius: inherit;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(8px);

    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        transform 180ms ease;
}

.ace-global-header-scope
.ace-h11-third-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
}

.ace-global-header-scope
.ace-h11-third-title {
    display: block;

    margin: 0 0 16px;
    padding: 0;

    color: #111111;
    -webkit-text-fill-color: #111111;

    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.ace-global-header-scope
.ace-h11-third-links {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 7px 12px;

    min-height: 0;
    padding-right: 4px;

    overflow-y: auto;
    overscroll-behavior: contain;
}

.ace-global-header-scope
.ace-h11-third-links
> a,
.ace-global-header-scope
.ace-h11-third-all {
    display: flex;
    align-items: center;

    box-sizing: border-box;

    min-width: 0;
    min-height: 38px;

    margin: 0;
    padding: 8px 10px;

    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none !important;

    transition:
        background 150ms ease,
        color 150ms ease;
}

.ace-global-header-scope
.ace-h11-third-links
> a:hover,
.ace-global-header-scope
.ace-h11-third-links
> a:focus-visible,
.ace-global-header-scope
.ace-h11-third-all:hover,
.ace-global-header-scope
.ace-h11-third-all:focus-visible {
    background: rgba(213, 254, 0, .20) !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;

    outline: none;
}

.ace-global-header-scope
.ace-h11-third-all {
    flex: 0 0 auto;

    margin-top: auto;
    padding-top: 10px;

    font-weight: 800;
}

@media (max-width: 1199px) {
    .ace-global-header-scope
    .ace-h11-mega-detail {
        width: 100%;
    }

    .ace-global-header-scope
    .ace-h11-third-panel {
        padding: 18px;
    }

    .ace-global-header-scope
    .ace-h11-third-links {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ace-global-header-scope
    .ace-h11-mega-detail
    > .ace-h11-mega-media,
    .ace-global-header-scope
    .ace-h11-third-panel {
        transition: none;
    }
}
