/*
 * Club Telegram CTA.
 * Desktop: sticky sidebar slot.
 * Mobile: normal-flow control in the club details column.
 */

.club-telegram-cta {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    min-height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #1b8ec4;
    border-radius: 12px;
    background: #229ED9;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-underline-offset: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
    -webkit-transition: background-color 180ms ease, border-color 180ms ease, -webkit-transform 180ms ease, -webkit-box-shadow 180ms ease;
    -moz-transition: background-color 180ms ease, border-color 180ms ease, -moz-transform 180ms ease, box-shadow 180ms ease;
    -o-transition: background-color 180ms ease, border-color 180ms ease, -o-transform 180ms ease, box-shadow 180ms ease;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.club-telegram-cta:hover,
.club-telegram-cta:focus {
    color: #ffffff;
    text-decoration: none;
}

.club-telegram-cta:hover {
    background: #1b8ec4;
    border-color: #187eae;
    -webkit-box-shadow: 0 6px 16px rgba(34, 158, 217, 0.35);
    -moz-box-shadow: 0 6px 16px rgba(34, 158, 217, 0.35);
    box-shadow: 0 6px 16px rgba(34, 158, 217, 0.35);
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.club-telegram-cta:active {
    background: #187eae;
    border-color: #146892;
    color: #ffffff;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.club-telegram-cta:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    -webkit-box-shadow: 0 0 0 4px rgba(34, 158, 217, 0.45);
    -moz-box-shadow: 0 0 0 4px rgba(34, 158, 217, 0.45);
    box-shadow: 0 0 0 4px rgba(34, 158, 217, 0.45);
}

.club-telegram-cta__icon {
    display: block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    fill: currentColor;
}

.club-telegram-cta__label {
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.club-telegram-cta--sidebar {
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-top: var(--space-4);
}

.club-telegram-cta--flow {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
}

@media (min-width: 901px) {
    .club-telegram-cta--hide-desktop,
    .club-telegram-cta--flow {
        display: none;
    }

    .site-sidebar--club .club-telegram-cta--sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: var(--space-4);
        right: auto;
        bottom: auto;
    }
}

@media (max-width: 900px) {
    .club-telegram-cta--flow {
        position: static;
        width: 100%;
        max-width: 100%;
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .club-telegram-cta {
        -webkit-transition: none;
        -moz-transition: none;
        -o-transition: none;
        transition: none;
    }

    .club-telegram-cta:hover,
    .club-telegram-cta:active {
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        transform: none;
    }
}
