.ti-ticker {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  background: #0b5d3b;
  color: #fff;
  overflow: hidden;
}

.ti-ticker__label {
  flex: 0 0 auto;
  background: #1fa463;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 13px 18px;
  white-space: nowrap;
}

.ti-ticker__viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.ti-ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tiTickerScroll 35s linear infinite;
}

.ti-ticker__group {
  display: flex;
  flex-shrink: 0;
}

.ti-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 28px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.ti-ticker__item:hover {
  opacity: 0.9;
}

.ti-ticker:hover .ti-ticker__track,
.ti-ticker:focus-within .ti-ticker__track {
  animation-play-state: paused;
}

.ti-ticker__date {
  font-weight: 700;
  opacity: 0.95;
}

.ti-ticker__title {
  text-decoration: underline;
  font-weight: 600;
}

@keyframes tiTickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .ti-ticker__label {
    font-size: 12px;
    padding: 12px 14px;
  }

  .ti-ticker__item {
    gap: 8px;
    padding: 0 18px;
    font-size: 13px;
  }

  .ti-ticker__track {
    animation-duration: 28s;
  }
}

.theme-switcher-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 8px;
}

.theme-switcher-footer {
  margin: 0;
}

.theme-btn.theme-btn-single {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.theme-btn.theme-btn-single i {
  font-size: 18px;
  line-height: 1;
}

body.light .theme-btn.theme-btn-single {
  color: #111;
}

body.dark .theme-btn.theme-btn-single {
  color: #fff;
}
  
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;

  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top i {
  font-size: 28px;
  line-height: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body.light .back-to-top {
  background: #1f6f43;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

body.dark .back-to-top {
  background: #1f6f43;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.12);
}

.back-to-top:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .back-to-top i {
    font-size: 24px;
  }
}
/* =========================
   WEATHER WIDGET - BASE
   ========================= */

.ti-weather-section {
    padding-top: clamp(1rem, 2vw, 1.5rem);
    padding-bottom: clamp(1rem, 2vw, 2rem);
}

.ti-weather-widget {
    width: 100%;
}

/* Wspólna karta */
.ti-weather-widget #ti-modern-weather {
    --ti-card-bg: #ffffff;
    --ti-text-main: #111827;
    --ti-text-muted: #6b7280;
    --ti-border: #d1d5db;
    --ti-brand-color: #1F6F43;
    --ti-brand-hover: #165231;
    --ti-input-bg: #f3f4f6;
    --ti-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --ti-border-radius: 18px;

    width: 100%;
    background-color: var(--ti-card-bg);
    color: var(--ti-text-main);
    padding: 28px 24px;
    border-radius: var(--ti-border-radius);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0 auto;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    box-shadow: var(--ti-shadow);
}

/* Dark mode */
body.dark .ti-weather-widget #ti-modern-weather,
body[data-theme-mode="dark"] .ti-weather-widget #ti-modern-weather {
    --ti-card-bg: #1e293b;
    --ti-text-main: #f8fafc;
    --ti-text-muted: #94a3b8;
    --ti-border: #374151;
    --ti-input-bg: #0f172a;
    --ti-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* =========================
   WEATHER WIDGET - LAYOUTS
   ========================= */

/* TAG /tag/pogoda/ */
.ti-weather-widget--tag {
    max-width: 100%;
}

.ti-weather-widget--tag #ti-modern-weather {
    max-width: 980px;
}

/* HOME */
.ti-weather-widget--home {
    width: 100%;
}

.ti-weather-widget--home #ti-modern-weather {
    max-width: 100%;
}

/* Jeśli home ma sidebar / węższą kolumnę, ten wariant lepiej działa */
.ti-weather-widget--home {
    align-self: stretch;
}

/* =========================
   HEADER
   ========================= */

.ti-weather-widget .ti-header {
    margin: 0 0 20px 0;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
    color: var(--ti-text-main);
}

.ti-weather-widget .ti-header svg {
    flex: 0 0 auto;
}

/* =========================
   SEARCH
   ========================= */

.ti-weather-widget .ti-search-wrapper {
    position: relative;
    margin-bottom: 12px;
    width: 100%;
}

.ti-weather-widget .ti-search-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    background-color: var(--ti-input-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.ti-weather-widget .ti-search-bar:focus-within {
    border-color: var(--ti-brand-color);
}

.ti-weather-widget .ti-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 58px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--ti-text-main);
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.ti-weather-widget .ti-search-input::placeholder {
    color: var(--ti-text-muted);
}

.ti-weather-widget .ti-search-btn {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 0 24px;
    background-color: var(--ti-brand-color);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ti-weather-widget .ti-search-btn:hover {
    background-color: var(--ti-brand-hover);
}

/* =========================
   AUTOCOMPLETE
   ========================= */

.ti-weather-widget .ti-autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: var(--ti-card-bg);
    border: 1px solid var(--ti-border);
    border-radius: 12px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    text-align: left;
}

.ti-weather-widget .ti-autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--ti-text-main);
    border-bottom: 1px solid var(--ti-border);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ti-weather-widget .ti-autocomplete-item:last-child {
    border-bottom: none;
}

.ti-weather-widget .ti-autocomplete-item:hover {
    background-color: var(--ti-input-bg);
    color: var(--ti-brand-color);
}

.ti-weather-widget .ti-autocomplete-region {
    font-size: 0.78rem;
    color: var(--ti-text-muted);
    display: block;
    margin-top: 2px;
}

/* =========================
   LOCATION BUTTON
   ========================= */

.ti-weather-widget .ti-location-btn {
    width: min(280px, 100%);
    margin: 0 auto;
    min-height: 52px;
    padding: 10px 14px;
    background-color: transparent;
    color: var(--ti-text-muted);
    border: 1px dashed var(--ti-text-muted);
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.ti-weather-widget .ti-location-btn:hover {
    color: var(--ti-text-main);
    border-color: var(--ti-brand-color);
    background-color: rgba(31, 111, 67, 0.05);
}

/* =========================
   RESULTS
   ========================= */

.ti-weather-widget #ti-weather-result {
    margin-top: 24px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ti-text-main);
}

.ti-weather-widget .ti-city-name {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 700;
    margin: 0;
}

.ti-weather-widget .ti-weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.ti-weather-widget .ti-temp-value {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    color: var(--ti-brand-color);
    line-height: 1;
    letter-spacing: -1px;
}

.ti-weather-widget .ti-weather-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.ti-weather-widget .ti-description {
    text-transform: capitalize;
    font-weight: 500;
    color: var(--ti-text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.ti-weather-widget .ti-error {
    color: #ef4444;
    font-weight: 500;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px 12px;
    border-radius: 8px;
}

/* =========================
   FORECAST
   ========================= */

.ti-weather-widget .ti-forecast {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    padding-top: 16px;
    margin-top: 6px;
    border-top: 1px solid var(--ti-border);
}

.ti-weather-widget .ti-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
}

.ti-weather-widget .ti-forecast-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ti-text-muted);
    text-transform: uppercase;
    text-align: center;
}

.ti-weather-widget .ti-forecast-icon {
    width: 40px;
    height: 40px;
    margin: 4px 0;
}

.ti-weather-widget .ti-forecast-temp {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ti-text-main);
    text-align: center;
}

.ti-weather-widget .ti-forecast-temp-min {
    color: var(--ti-text-muted);
    font-weight: 500;
}

/* =========================
   HOME SPECIFIC
   ========================= */

.ti-weather-widget--home #ti-modern-weather {
    padding: 24px 20px;
}

.ti-weather-widget--home .ti-header {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 18px;
}

.ti-weather-widget--home .ti-search-input {
    height: 54px;
    font-size: 0.95rem;
}

.ti-weather-widget--home .ti-search-btn {
    min-width: 110px;
    padding: 0 20px;
}

.ti-weather-widget--home .ti-location-btn {
    width: min(260px, 100%);
}

.ti-weather-widget--home #ti-weather-result {
    min-height: 110px;
}

/* =========================
   TAG SPECIFIC
   ========================= */

.ti-weather-widget--tag #ti-modern-weather {
    padding: 28px 24px;
}

.ti-weather-widget--tag .ti-header {
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.ti-weather-widget--tag .ti-search-input {
    height: 60px;
}

.ti-weather-widget--tag .ti-search-btn {
    min-width: 130px;
    padding: 0 28px;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1024px) {
    .ti-weather-widget--tag #ti-modern-weather {
        max-width: 100%;
    }

    .ti-weather-widget .ti-forecast {
        gap: 6px;
    }

    .ti-weather-widget .ti-forecast-date {
        font-size: 0.75rem;
    }

    .ti-weather-widget .ti-forecast-temp {
        font-size: 0.9rem;
    }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 767px) {
    .ti-weather-section {
        padding-top: 0.75rem;
        padding-bottom: 1rem;
    }

    .ti-weather-widget #ti-modern-weather {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .ti-weather-widget .ti-header {
        font-size: 1.15rem;
        margin-bottom: 16px;
        gap: 6px;
    }

    .ti-weather-widget .ti-search-bar {
        flex-direction: column;
        background: transparent;
        border: 0;
        overflow: visible;
        gap: 10px;
    }

    .ti-weather-widget .ti-search-input {
        width: 100%;
        height: 52px;
        border-radius: 12px;
        background-color: var(--ti-input-bg);
        border: 1px solid transparent;
    }

    .ti-weather-widget .ti-search-input:focus {
        border-color: var(--ti-brand-color);
    }

    .ti-weather-widget .ti-search-btn {
        width: 100%;
        min-width: 0;
        height: 52px;
        border-radius: 12px;
        padding: 0 16px;
    }

    .ti-weather-widget .ti-location-btn {
        width: 100%;
        min-height: 50px;
        font-size: 0.92rem;
    }

    .ti-weather-widget #ti-weather-result {
        margin-top: 20px;
        min-height: 100px;
    }

    .ti-weather-widget .ti-weather-main {
        gap: 10px;
    }

    .ti-weather-widget .ti-weather-icon {
        width: 64px;
        height: 64px;
    }

    .ti-weather-widget .ti-temp-value {
        font-size: 2.4rem;
    }

    .ti-weather-widget .ti-description {
        font-size: 0.98rem;
        margin-bottom: 16px;
    }

    .ti-weather-widget .ti-forecast {
        gap: 2px;
        padding-top: 14px;
    }

    .ti-weather-widget .ti-forecast-icon {
        width: 34px;
        height: 34px;
    }

    .ti-weather-widget .ti-forecast-date {
        font-size: 0.72rem;
    }

    .ti-weather-widget .ti-forecast-temp {
        font-size: 0.82rem;
    }

    .ti-weather-widget .ti-autocomplete-list {
        top: calc(52px + 6px);
    }
}

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {
    .ti-weather-widget #ti-modern-weather {
        padding: 18px 14px;
    }

    .ti-weather-widget .ti-header {
        font-size: 1.05rem;
    }

    .ti-weather-widget .ti-search-input,
    .ti-weather-widget .ti-search-btn {
        font-size: 0.95rem;
    }

    .ti-weather-widget .ti-location-btn {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .ti-weather-widget .ti-city-name {
        font-size: 1.2rem;
    }

    .ti-weather-widget .ti-temp-value {
        font-size: 2.1rem;
    }

    .ti-weather-widget .ti-weather-icon {
        width: 56px;
        height: 56px;
    }

    .ti-weather-widget .ti-forecast {
        flex-wrap: nowrap;
    }

    .ti-weather-widget .ti-forecast-date {
        font-size: 0.68rem;
    }

    .ti-weather-widget .ti-forecast-temp {
        font-size: 0.76rem;
    }
}

html.cc--ti-light #cc-main {
    --cc-bg: #ffffff;
    --cc-primary-color: #111827;
    --cc-secondary-color: #4b5563;

    --cc-btn-primary-bg: #1F6F43;
    --cc-btn-primary-border-color: #1F6F43;
    --cc-btn-primary-color: #ffffff;
    --cc-btn-primary-hover-bg: #185c37;
    --cc-btn-primary-hover-border-color: #185c37;
    --cc-btn-primary-hover-color: #ffffff;

    --cc-btn-secondary-bg: #f3f4f6;
    --cc-btn-secondary-border-color: #e5e7eb;
    --cc-btn-secondary-color: #111827;
    --cc-btn-secondary-hover-bg: #e5e7eb;
    --cc-btn-secondary-hover-border-color: #d1d5db;
    --cc-btn-secondary-hover-color: #111827;

    --cc-cookie-category-block-bg: #f9fafb;
    --cc-cookie-category-block-border: #e5e7eb;
    --cc-cookie-category-block-hover-bg: #f3f4f6;
    --cc-cookie-category-block-hover-border: #d1d5db;
    --cc-cookie-category-expanded-block-bg: #ffffff;
    --cc-cookie-category-expanded-block-hover-bg: #f9fafb;

    --cc-overlay-bg: rgba(17, 24, 39, 0.35);

    --cc-toggle-on-bg: #1F6F43;
    --cc-toggle-on-knob-bg: #ffffff;
    --cc-toggle-off-bg: #cbd5e1;
    --cc-toggle-readonly-bg: #9ca3af;
    --cc-toggle-readonly-knob-bg: #ffffff;

    --cc-separator-border-color: #e5e7eb;
    --cc-footer-border-color: #e5e7eb;
    --cc-footer-bg: #ffffff;

    --cc-btn-border-radius: 999px;
    --cc-modal-border-radius: 18px;
    --cc-pm-toggle-border-radius: 999px;
}

html.cc--ti-dark.cc--darkmode #cc-main {
    --cc-bg: #0f141a;
    --cc-primary-color: #f9fafb;
    --cc-secondary-color: #b8c0cc;

    --cc-btn-primary-bg: #1F6F43;
    --cc-btn-primary-border-color: #1F6F43;
    --cc-btn-primary-color: #ffffff;
    --cc-btn-primary-hover-bg: #278a54;
    --cc-btn-primary-hover-border-color: #278a54;
    --cc-btn-primary-hover-color: #ffffff;

    --cc-btn-secondary-bg: #1b222b;
    --cc-btn-secondary-border-color: #2c3744;
    --cc-btn-secondary-color: #f9fafb;
    --cc-btn-secondary-hover-bg: #26303b;
    --cc-btn-secondary-hover-border-color: #334155;
    --cc-btn-secondary-hover-color: #ffffff;

    --cc-cookie-category-block-bg: #151b23;
    --cc-cookie-category-block-border: #26303b;
    --cc-cookie-category-block-hover-bg: #1b2430;
    --cc-cookie-category-block-hover-border: #334155;
    --cc-cookie-category-expanded-block-bg: #151b23;
    --cc-cookie-category-expanded-block-hover-bg: #1b2430;

    --cc-overlay-bg: rgba(0, 0, 0, 0.55);

    --cc-toggle-on-bg: #1F6F43;
    --cc-toggle-on-knob-bg: #ffffff;
    --cc-toggle-off-bg: #334155;
    --cc-toggle-readonly-bg: #4b5563;
    --cc-toggle-readonly-knob-bg: #ffffff;

    --cc-separator-border-color: #26303b;
    --cc-footer-border-color: #26303b;
    --cc-footer-bg: #0f141a;

    --cc-btn-border-radius: 999px;
    --cc-modal-border-radius: 18px;
    --cc-pm-toggle-border-radius: 999px;
}


