
/* TIP1X2_SINGLE_WRAPPER_V22 */

/*
 * Soccer Tips uses Home's exact outer container.
 * The .t1v3 width and padding come directly from home.css.
 */
body.t1-shared-soccer .tip1x2-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    background: #fff;
    box-sizing: border-box;
}

/* Do not constrain the single shared wrapper separately. */
body.t1-shared-soccer .t1v3.t1-shared-top {
    width: auto !important;
    max-width: 1320px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 24px 55px;
}

/*
 * Home's desktop grid uses:
 * - 285px sidebar
 * - 24px gap
 * - 26px top margin
 *
 * Soccer Tips keeps its sidebar on the LEFT.
 */
@media (min-width: 1101px) {
    body.t1-shared-soccer .t1-pred-layout.t1v3-columns {
        display: grid !important;
        grid-template-columns:
            285px minmax(0, 1fr) !important;
        gap: 24px !important;
        margin-top: 26px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        align-items: start !important;
    }
}

@media (min-width: 761px) and (max-width: 1100px) {
    body.t1-shared-soccer .t1-pred-layout.t1v3-columns {
        display: grid !important;
        grid-template-columns:
            245px minmax(0, 1fr) !important;
        gap: 24px !important;
        margin-top: 26px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        align-items: start !important;
    }
}

@media (min-width: 761px) {
    body.t1-shared-soccer
    .t1-pred-layout > .t1v3-sidebar {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    body.t1-shared-soccer
    .t1-pred-layout > .t1v3-primary {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    body.t1-shared-soccer
    .t1-pred-layout > .t1-pred-side:last-child {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* Match Home's mobile breakpoint. */
@media (max-width: 760px) {
    body.t1-shared-soccer .t1v3.t1-shared-top {
        padding: 0 12px 35px !important;
    }

    body.t1-shared-soccer .t1-pred-layout.t1v3-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        margin-top: 26px !important;
        padding: 0 !important;
    }

    body.t1-shared-soccer .t1-pred-layout > .t1v3-primary {
        order: 1;
        width: 100% !important;
        min-width: 0 !important;
    }

    body.t1-shared-soccer .t1-pred-layout > .t1v3-sidebar {
        order: 2;
        width: 100% !important;
        min-width: 0 !important;
    }

    body.t1-shared-soccer
    .t1-pred-layout > .t1-pred-side:last-child {
        order: 3;
        width: 100% !important;
        min-width: 0 !important;
    }
}
