/**
 * WCAG 2.1 Accessibility Styles
 * Bez zmian układu menu i bez globalnych nadpisań kolorów.
 */

/* Naprawa poziomego overflow (biała szczelina po prawej) */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.preloader {
    width: 100% !important;
}

/* Panel WCAG */
.wcag-accessibility-panel {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 100001;
    background: #110e3d;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcag-label {
    font-size: 12px;
    font-weight: 700;
}

.wcag-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wcag-btn {
    min-width: 30px;
    min-height: 30px;
    border: 1px solid #fff;
    background: #fff;
    color: #110e3d;
    border-radius: 4px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}

.wcag-btn[aria-pressed="true"] {
    background: #ffd700;
    border-color: #ffd700;
    color: #000;
}

@media (max-width: 767px) {
    .wcag-accessibility-panel {
        top: 8px;
        bottom: auto;
        right: 8px;
        border-radius: 6px;
    }

    .fluid_header.centered .navbar-header .navbar-toggle {
        margin-top: 72px !important;
        margin-right: 8px !important;
        margin-bottom: 10px !important;
    }

    .wcag-label {
        display: none;
    }
}

/* Skip link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 16px;
    background: #110e3d !important;
    color: #ffffff !important;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    z-index: 100000;
}

.skip-to-content:focus {
    top: 8px;
    outline: 3px solid #ffd700;
    outline-offset: 2px;
    color: #ffffff !important;
    background: #110e3d !important;
}

/* Widoczny fokus tylko przy nawigacji klawiaturą */
body.using-keyboard a:focus,
body.using-keyboard button:focus,
body.using-keyboard input:focus,
body.using-keyboard select:focus,
body.using-keyboard textarea:focus,
body.using-keyboard [tabindex]:focus,
body.using-keyboard .btn:focus {
    outline: 3px solid #ffd700 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25) !important;
}

/* Stopka: usuń szare tło Bootstrap na focus/hover dla kafli quick_contact */
footer .top_footer .quick_contact .nav > li > a,
footer .top_footer .quick_contact .nav > li > a:hover,
footer .top_footer .quick_contact .nav > li > a:focus,
footer .top_footer .quick_contact .nav > li.active > a,
footer .top_footer .quick_contact .nav > li.active > a:hover,
footer .top_footer .quick_contact .nav > li.active > a:focus {
    background: transparent !important;
    background-color: transparent !important;
}

/* Maksymalne powiększenie czcionki: zapobieganie ucinaniu treści */
html.wcag-font-max .serviceTab .service_tab_menu .nav li a {
    min-height: 96px !important;
    height: auto !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: break-word;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center !important;
}

html.wcag-font-max .price_plan.best_plan .inner .plan_intro,
html.wcag-font-max .price_plan.best_plan .inner .plan_intro.dom,
html.wcag-font-max .price_plan.best_plan .inner .plan_intro.tv,
html.wcag-font-max .price_plan.best_plan .inner .plan_intro.mobile,
html.wcag-font-max .price_plan.best_plan .inner .plan_intro .blok {
    height: auto !important;
    min-height: 420px !important;
    margin-bottom: 0 !important;
    padding-bottom: 28px !important;
}

html.wcag-font-max .price_plan.best_plan .inner .service_provide_row {
    padding-top: 18px !important;
}

html.wcag-font-max .price_plan.best_plan .inner .plan_intro .plan_subtitle h6 {
    margin-top: 20px !important;
    line-height: 1.35 !important;
}

/* Przyciski TV - automatyczna szerokość przy powiększeniu czcionki */
html.wcag-font-large .pricing_plan_table.tv .btn.btn-primary.tv,
html.wcag-font-xlarge .pricing_plan_table.tv .btn.btn-primary.tv,
html.wcag-font-max .pricing_plan_table.tv .btn.btn-primary.tv {
    width: auto !important;
    min-width: 280px !important;
    max-width: 100% !important;
    white-space: normal !important;
    height: auto !important;
    padding: 10px 15px !important;
    line-height: 1.3 !important;
}

/* Filtry kanałów Jambox - zawsze elastyczne i bez obcinania */
.jambox-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.jambox-filter-buttons > a {
    display: inline-flex;
}

.jambox-filter-buttons .btn.btn-primary {
    width: auto !important;
    min-width: 110px !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word;
    height: 40px !important;
    line-height: 40px !important;
}

html.wcag-font-max .jambox-filter-buttons .btn.btn-primary {
    height: auto !important;
    line-height: 1.3 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Filtry kategorii TV (Wszystkie/Film/...) - bez ucinania przy powiększeniu WCAG */
html.wcag-font-large .pricing_plan_table.tv .btn.btn-primary,
html.wcag-font-xlarge .pricing_plan_table.tv .btn.btn-primary,
html.wcag-font-max .pricing_plan_table.tv .btn.btn-primary {
    width: auto !important;
    min-width: 110px !important;
    max-width: 100% !important;
    white-space: normal !important;
    height: auto !important;
    line-height: 1.3 !important;
}

/* Zmiana wielkości liter/cyfr realizowana przez JS (html style font-size) */

/* Wysoki kontrast (wyraźna zmiana kolorystyki po kliknięciu) */
html.wcag-contrast-high body {
    background: #ffffff !important;
    color: #111111 !important;
}

html.wcag-contrast-high h1,
html.wcag-contrast-high h2,
html.wcag-contrast-high h3,
html.wcag-contrast-high h4,
html.wcag-contrast-high h5,
html.wcag-contrast-high h6,
html.wcag-contrast-high p,
html.wcag-contrast-high li,
html.wcag-contrast-high td,
html.wcag-contrast-high th,
html.wcag-contrast-high label {
    color: #111111 !important;
}

html.wcag-contrast-high a {
    color: #003399 !important;
    text-decoration: underline !important;
}

html.wcag-contrast-high .skip-to-content,
html.wcag-contrast-high .skip-to-content:focus,
html.wcag-contrast-high .skip-to-content:hover {
    color: #ffffff !important;
    background: #110e3d !important;
    text-decoration: none !important;
}

html.wcag-contrast-high .top_header,
html.wcag-contrast-high .navbar-default,
html.wcag-contrast-high .service_tab_menu,
html.wcag-contrast-high footer,
html.wcag-contrast-high .copyright_line {
    background: #000000 !important;
}

html.wcag-contrast-high .top_header .nav li a,
html.wcag-contrast-high .navbar-nav > li > a,
html.wcag-contrast-high footer a,
html.wcag-contrast-high footer p,
html.wcag-contrast-high footer li,
html.wcag-contrast-high .copyright_line {
    color: #ffffff !important;
}

html.wcag-contrast-high .fluid_header .navbar-header .navbar-brand img {
    filter: brightness(0) invert(1);
}

html.wcag-contrast-high footer h1,
html.wcag-contrast-high footer h2,
html.wcag-contrast-high footer h3,
html.wcag-contrast-high footer h4,
html.wcag-contrast-high footer h5,
html.wcag-contrast-high footer h6,
html.wcag-contrast-high footer .footer-links h4,
html.wcag-contrast-high footer .top_footer .footer-links h4,
html.wcag-contrast-high footer .top_footer .footer-links p,
html.wcag-contrast-high footer .top_footer .quick_contact .nav li a,
html.wcag-contrast-high footer .top_footer .quick_contact .nav li a i {
    color: #ffffff !important;
}

html.wcag-contrast-high footer .top_footer .quick_contact .nav > li > a,
html.wcag-contrast-high footer .top_footer .quick_contact .nav > li > a:hover,
html.wcag-contrast-high footer .top_footer .quick_contact .nav > li > a:focus,
html.wcag-contrast-high footer .top_footer .quick_contact .nav > li.active > a,
html.wcag-contrast-high footer .top_footer .quick_contact .nav > li.active > a:hover,
html.wcag-contrast-high footer .top_footer .quick_contact .nav > li.active > a:focus {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    text-decoration: underline !important;
}

html.wcag-contrast-high footer .top_footer .quick_contact .nav > li > a:focus,
html.wcag-contrast-high footer .top_footer .quick_contact .nav > li.active > a:focus {
    outline: 2px solid #ffff00 !important;
    outline-offset: 2px !important;
}

html.wcag-contrast-high .nav > li > a:focus,
html.wcag-contrast-high .nav > li > a:hover {
    background-color: transparent !important;
}

/* Wysoki kontrast: hover myszy z taką samą żółtą ramką jak przy tabulacji */
html.wcag-contrast-high a:hover,
html.wcag-contrast-high button:hover,
html.wcag-contrast-high .btn:hover,
html.wcag-contrast-high input:hover,
html.wcag-contrast-high select:hover,
html.wcag-contrast-high textarea:hover,
html.wcag-contrast-high [role="button"]:hover,
html.wcag-contrast-high [tabindex]:hover {
    outline: 2px solid #ffff00 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.25) !important;
}

html.wcag-contrast-high footer .top_footer .quick_contact,
html.wcag-contrast-high footer .top_footer,
html.wcag-contrast-high footer .top_footer .footer-links,
html.wcag-contrast-high footer .copyright_line {
    background: #000000 !important;
}

html.wcag-contrast-high footer .top_footer .quick_contact .nav li + li {
    border-left-color: #ffffff !important;
}

html.wcag-contrast-high footer .top_footer .footer-links .nav li a,
html.wcag-contrast-high footer .top_footer .footer-links .nav li a:hover,
html.wcag-contrast-high footer .top_footer .footer-links .nav li a:focus {
    color: #ffffff !important;
    background: transparent !important;
    text-decoration: underline !important;
}

html.wcag-contrast-high footer .top_footer .footer-links .nav li a:hover,
html.wcag-contrast-high footer .top_footer .footer-links .nav li a:focus {
    color: #ffff00 !important;
}

html.wcag-contrast-high footer .top_footer .footer-links .nav li a:before,
html.wcag-contrast-high footer .top_footer .footer-links .nav li a:hover:before,
html.wcag-contrast-high footer .top_footer .footer-links .nav li a:focus:before {
    content: '' !important;
    float: left !important;
    width: 8px !important;
    height: 8px !important;
    margin: 9px 14px 0 0 !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 50% !important;
}

html.wcag-contrast-high .top_header .nav li a {
    background: transparent !important;
    border: 1px solid #ffffff !important;
}

html.wcag-contrast-high .top_header .nav li a i,
html.wcag-contrast-high .navbar-nav > li > a i {
    color: #ffffff !important;
}

html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown .dropdown-menu,
html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown.mega-drop .mega-menu,
html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown.mega-drop .mega-menu li,
html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown.mega-drop .mega-menu li.service_list {
    background: #000000 !important;
    border-color: #ffffff !important;
}

html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown .dropdown-menu li a,
html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown.mega-drop .mega-menu li.service_list .service .media .media-body a,
html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown.mega-drop .mega-menu li.service_list .service .media .media-body p {
    color: #ffffff !important;
    background: transparent !important;
}

html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown .dropdown-menu li a:hover,
html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown .dropdown-menu li a:focus,
html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown.mega-drop .mega-menu li.service_list .service .media .media-body a:hover,
html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown.mega-drop .mega-menu li.service_list .service .media .media-body a:focus {
    color: #ffff00 !important;
    background: transparent !important;
}

html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown.mega-drop .mega-menu li.service_list .service,
html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown.mega-drop .mega-menu li.service_list .service:nth-child(even) {
    border-top-color: #ffffff !important;
    border-left-color: #ffffff !important;
}

html.wcag-contrast-high .fluid_header .navbar-nav.navbar-right li.dropdown.mega-drop .mega-menu li.service_list .service .media .media-left img {
    filter: brightness(0) invert(1);
}

html.wcag-contrast-high .price_plan .inner .plan_intro .plan_subtitle h6,
html.wcag-contrast-high .price_plan.best_plan .inner .plan_intro .plan_subtitle h6,
html.wcag-contrast-high .price_plan.best_plan .inner .plan_intro.dom .plan_subtitle h6,
html.wcag-contrast-high .price_plan.best_plan .inner .plan_intro.tv .plan_subtitle h6,
html.wcag-contrast-high .price_plan.best_plan .inner .plan_intro.mobile .plan_subtitle h6 {
    color: #000000 !important;
    font-weight: 700 !important;
}

html.wcag-contrast-high .ofertabox_area .inner {
    background: #000000 !important;
    border-bottom-color: #ffff00 !important;
}

html.wcag-contrast-high .ofertabox_area .inner h4,
html.wcag-contrast-high .ofertabox_area .inner h6,
html.wcag-contrast-high .ofertabox_area .inner p,
html.wcag-contrast-high .ofertabox_area .inner p.nState,
html.wcag-contrast-high .ofertabox_area .inner p.hState,
html.wcag-contrast-high .ofertabox_area .inner a {
    color: #ffffff !important;
}

html.wcag-contrast-high .ofertabox_area .inner .image {
    border-color: #ffff00 !important;
}

html.wcag-contrast-high .ofertabox_area .inner:hover {
    background: #000000 !important;
}

html.wcag-contrast-high .ofertabox_area .inner:focus-within {
    background: #000000 !important;
    outline: 2px solid #ffff00 !important;
    outline-offset: 2px !important;
}

html.wcag-contrast-high .ofertabox_area .inner:hover h4,
html.wcag-contrast-high .ofertabox_area .inner:hover h6,
html.wcag-contrast-high .ofertabox_area .inner:hover p,
html.wcag-contrast-high .ofertabox_area .inner:hover p.hState,
html.wcag-contrast-high .ofertabox_area .inner:hover a {
    color: #ffffff !important;
}

html.wcag-contrast-high .ofertabox_area .inner:focus-within h4,
html.wcag-contrast-high .ofertabox_area .inner:focus-within h6,
html.wcag-contrast-high .ofertabox_area .inner:focus-within p,
html.wcag-contrast-high .ofertabox_area .inner:focus-within p.hState,
html.wcag-contrast-high .ofertabox_area .inner:focus-within a {
    color: #ffffff !important;
}

html.wcag-contrast-high .ofertabox_area p.hState .btn,
html.wcag-contrast-high .ofertabox_area p.hState .btn:hover,
html.wcag-contrast-high .ofertabox_area p.hState .btn:focus {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
    text-decoration: none !important;
}

html.wcag-contrast-high .page_header,
html.wcag-contrast-high .page_header:before {
    background: #000000 !important;
}

html.wcag-contrast-high .page_header h3,
html.wcag-contrast-high .page_header .breadcrumb li,
html.wcag-contrast-high .page_header .breadcrumb li a,
html.wcag-contrast-high .page_header .breadcrumb li.active,
html.wcag-contrast-high .page_header .breadcrumb li + li:before {
    color: #ffffff !important;
}

html.wcag-contrast-high .serviceTab .service_tab_menu .nav li a,
html.wcag-contrast-high .nav-tabs > li > a {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

html.wcag-contrast-high .serviceTab .service_tab_menu .nav li a *,
html.wcag-contrast-high .nav-tabs > li > a * {
    color: inherit !important;
}

html.wcag-contrast-high .serviceTab .service_tab_menu .nav li.active a,
html.wcag-contrast-high .nav-tabs > li.active > a {
    background: #ffff00 !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

html.wcag-contrast-high .pricing_plan_cell,
html.wcag-contrast-high .pricing_plan_cell .price,
html.wcag-contrast-high .pricing_plan_cell .plan_type {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #000000 !important;
}

html.wcag-contrast-high .pricing_plan_cell .price h2,
html.wcag-contrast-high .pricing_plan_cell .price h3,
html.wcag-contrast-high .pricing_plan_cell .price p,
html.wcag-contrast-high .pricing_plan_cell .plan_type p,
html.wcag-contrast-high .pricing_plan_cell .plan_type li,
html.wcag-contrast-high .pricing_plan_cell .plan_type span {
    color: #111111 !important;
}

html.wcag-contrast-high .price_plan,
html.wcag-contrast-high .price_plan .inner,
html.wcag-contrast-high .price_plan .inner .plan_intro,
html.wcag-contrast-high .price_plan .inner .plan_intro .price,
html.wcag-contrast-high .price_plan .inner .plan_intro .planType,
html.wcag-contrast-high .price_plan .inner .plan_intro .plan_subtitle,
html.wcag-contrast-high .price_plan .inner .plan_text {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #000000 !important;
}

html.wcag-contrast-high .price_plan .inner .plan_intro .price,
html.wcag-contrast-high .price_plan .inner .plan_intro .price .amount,
html.wcag-contrast-high .price_plan .inner .plan_intro .price .currencyType,
html.wcag-contrast-high .price_plan .inner .plan_intro .price small,
html.wcag-contrast-high .price_plan .inner .plan_intro .planType h4,
html.wcag-contrast-high .price_plan .inner .plan_intro .plan_subtitle h6,
html.wcag-contrast-high .price_plan .inner .plan_text p,
html.wcag-contrast-high .price_plan .inner .plan_text li,
html.wcag-contrast-high .price_plan .inner .plan_text span {
    color: #111111 !important;
}

html.wcag-contrast-high .price_plan .inner .plan_intro:after {
    display: none !important;
}

html.wcag-contrast-high .btn,
html.wcag-contrast-high button {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
}

html.wcag-contrast-high .btn *,
html.wcag-contrast-high button *,
html.wcag-contrast-high a.btn *,
html.wcag-contrast-high .btn-block * {
    color: #ffffff !important;
}

html.wcag-contrast-high .btn.btn-primary,
html.wcag-contrast-high a.btn.btn-primary,
html.wcag-contrast-high .btn.btn-primary.btn-block,
html.wcag-contrast-high a.btn.btn-primary.btn-block {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

html.wcag-contrast-high .form-control,
html.wcag-contrast-high input,
html.wcag-contrast-high select,
html.wcag-contrast-high textarea {
    background: #ffffff !important;
    color: #111111 !important;
    border: 2px solid #000000 !important;
}

/* Żółte teksty - domyślnie żółte, w trybie kontrastu czarne */
.wcag-yellow-text,
.plan_subtitle .wcag-yellow-text,
.price_plan .inner .plan_intro .plan_subtitle .wcag-yellow-text {
    color: yellow !important;
    font-size: 15px;
}

html.wcag-contrast-high .wcag-yellow-text,
html.wcag-contrast-high .plan_subtitle .wcag-yellow-text,
html.wcag-contrast-high .price_plan .inner .plan_intro .plan_subtitle .wcag-yellow-text {
    color: #000000 !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
