/* kupon.css - kupon rankingowy FQC (zamiast Planera, 26.10.2026).
   Komputer: pasek / okno w prawym dolnym rogu. Telefon: pasek nad dolnym menu, otwarty kupon na caly ekran. */

.kp[hidden], .kp-okno[hidden], .kp [hidden] { display: none !important; }
.kp { position: fixed; right: 18px; bottom: 18px; z-index: 980; width: 380px; max-width: calc(100vw - 24px);
      font-size: 14px; color: var(--tekst, #1a1f24); }

/* zwiniety pasek */
.kp-pasek { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; min-height: 58px;
            border: 0; border-radius: 16px; background: #0f1d33; color: #fff; font: inherit; cursor: pointer; text-align: left;
            box-shadow: 0 10px 28px rgba(15, 30, 50, .35); }
.kp--otwarty .kp-pasek { display: none; }
.kp-pasek__tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kp-pasek__mecze { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-pasek__typ { font-size: 12.5px; color: #b9d3ef; font-weight: 600; }
.kp-pasek__kurs { flex: none; min-width: 64px; padding: 8px 12px; border-radius: 12px; background: #1e78d4; color: #fff;
                  font-size: 19px; font-weight: 800; text-align: center; }
.kp--mig .kp-pasek { animation: kp-mig .5s ease-out; }
@keyframes kp-mig { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* okno kuponu */
.kp-okno { display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 110px)); background: var(--tlo-karta, #fff);
           border: 1px solid var(--granica, #e3e7eb); border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(15, 30, 50, .28); }
.kp-glowa { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #0f1d33; color: #fff; }
.kp-zamknij { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; border-radius: 10px; cursor: pointer;
              display: flex; align-items: center; justify-content: center; }
.kp-zamknij:hover { background: rgba(255, 255, 255, .12); }
.kp-tytul { flex: 1; margin: 0; font-size: 17px; font-weight: 800; }
.kp-tytul__typ { font-size: 13px; font-weight: 600; color: #b9d3ef; margin-left: 4px; }
.kp-wyczysc { border: 1px solid #2c4a6b; background: transparent; color: #d6e4f5; border-radius: 8px; padding: 7px 10px;
              font: inherit; font-size: 13px; cursor: pointer; min-height: 36px; }
.kp-wyczysc:hover { border-color: #e0303f; color: #fff; }
.kp-tresc { flex: 1; overflow-y: auto; padding: 10px 12px; background: var(--tlo, #eaf1fb); }
.kp-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kp-z { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; background: #fff;
        border: 1px solid var(--granica, #e3e7eb); border-radius: 12px; padding: 10px 40px 10px 12px; }
.kp-z__mecz { grid-column: 1 / span 2; font-size: 12.5px; color: var(--tekst-przygaszony, #5d6773); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-z__typ { display: flex; flex-direction: column; min-width: 0; }
.kp-z__typ b { font-size: 15px; }
.kp-z__typ span { font-size: 12.5px; color: var(--tekst-przygaszony, #5d6773); }
.kp-z__kurs { align-self: end; font-size: 18px; color: #155ea8; }
.kp-z__usun { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px;
              font-size: 22px; line-height: 1; color: var(--tekst-przygaszony, #5d6773); cursor: pointer; }
.kp-z__usun:hover { background: #fde8ea; color: #9e2430; }
.kp-pusto { margin: 6px 2px; color: var(--tekst-przygaszony, #5d6773); line-height: 1.5; }
.kp-problemy p { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff2f3; border: 1px solid #f2c4c8; color: #9e2430; font-size: 13px; line-height: 1.4; }
.kp-gotowe { padding: 6px 2px; line-height: 1.5; }
.kp-gotowe__ok { font-size: 16px; font-weight: 800; color: #17663b; margin: 4px 0 8px; }
.kp-gotowe__linki { display: flex; flex-direction: column; gap: 8px; }
.kp-gotowe__linki a { display: block; padding: 11px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--granica, #e3e7eb);
                      color: var(--akcent, #1e78d4); font-weight: 700; text-decoration: none; }

.kp-stopka { padding: 10px 12px 12px; border-top: 1px solid var(--granica, #e3e7eb); display: flex; flex-direction: column; gap: 8px; background: #fff; }
.kp-etykieta { font-size: 12.5px; color: var(--tekst-przygaszony, #5d6773); font-weight: 600; }
.kp-stawka__rzad { display: flex; gap: 6px; margin-top: 4px; }
.kp-szybkie { display: flex; gap: 6px; }
.kp-szybka { min-width: 52px; height: 42px; border: 1px solid var(--granica, #cfd7e0); border-radius: 10px; background: #f4f6f8;
             font: inherit; font-weight: 700; cursor: pointer; }
.kp-szybka.aktywna { background: #1e78d4; border-color: #1e78d4; color: #fff; }
#kp-stawka { flex: 1; min-width: 0; height: 42px; box-sizing: border-box; border: 1px solid var(--granica, #cfd7e0); border-radius: 10px;
             padding: 0 10px; font: inherit; font-size: 16px; font-weight: 700; text-align: right; }
.kp-liczby { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kp-liczby div { background: #f4f8fc; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.kp-liczby span { font-size: 12px; color: var(--tekst-przygaszony, #5d6773); }
.kp-liczby b { font-size: 19px; }
.kp-kurs { color: #155ea8; }
.kp-portfel { margin: 0; font-size: 12.5px; color: var(--tekst-przygaszony, #5d6773); }
.kp-uzas summary { cursor: pointer; font-size: 13px; color: var(--akcent, #1e78d4); font-weight: 600; padding: 4px 0; }
.kp-uzas textarea { width: 100%; box-sizing: border-box; margin-top: 6px; border: 1px solid var(--granica, #cfd7e0); border-radius: 10px;
                    padding: 8px 10px; font: inherit; resize: vertical; }
.kp-ukryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kp-zasady { font-size: 12.5px; line-height: 1.45; display: flex; gap: 8px; align-items: flex-start; }
.kp-zasady input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.kp-wyslij { min-height: 50px; border: 0; border-radius: 12px; background: #1e78d4; color: #fff; font: inherit; font-size: 16px;
             font-weight: 800; cursor: pointer; }
.kp-wyslij:hover:not(:disabled) { background: #155ea8; }
.kp-wyslij:disabled { background: #b9d3ef; cursor: default; }
.kp-logowanie { margin: 0; padding: 10px; border-radius: 10px; background: #f2f8fe; font-size: 13.5px; line-height: 1.45; }
.kp-drobne { margin: 0; font-size: 11.5px; color: var(--tekst-przygaszony, #5d6773); }

/* wybrany kurs na stronie meczu */
.kurs-btn.kurs-wybrany { background: #1e78d4 !important; border-color: #1e78d4 !important; color: #fff !important; }
.kurs-btn.kurs-wybrany .kursy-wybor-nazwa, .kurs-btn.kurs-wybrany .kursy-wybor-kurs { color: #fff !important; }

/* telefon: pasek nad dolnym menu, otwarty kupon na caly ekran */
@media (max-width: 760px) {
    .kp { left: 8px; right: 8px; width: auto; max-width: none; bottom: calc(68px + env(safe-area-inset-bottom)); }
    .kp-pasek { min-height: 56px; border-radius: 14px; }
    body.kp-pelny { overflow: hidden; }
    body.kp-pelny .kp { inset: 0; z-index: 1000; }
    body.kp-pelny .kp-okno { position: fixed; inset: 0; max-height: none; border-radius: 0; border: 0;
                             padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    .kp-glowa { min-height: 56px; }
    .q-dymki { bottom: calc(136px + env(safe-area-inset-bottom)); }
}
