/*
Theme Name: izeetak-child
Theme URI: https://taniekonta.com
Description: Child theme for customization with Clean Architecture & MVVM
Author: TanieKonta.com
Author URI: https://taniekonta.com
Template: izeetak
Version: 2.1.0
Text Domain: izeetak-child

Changelog v2.1.0 (Quick Wins):
- Extracted inline JavaScript → assets/js/product-accessibility.js
- Zunifikowane design tokens z tk-shared (szary #4a4e54)
- Type hints w helper functions (PHP 7.4+)
- CSP compliance + performance improvements
*/

/* =========================
   BUILD & STRUCTURE
   =========================
   Clean Architecture: assets/css/components/ + assets/css/pages/
   MVVM JavaScript: assets/js/services/ + assets/js/viewmodels/
   Design System: CSS custom properties + BEM methodology
   ========================= */

/* =========================
   TK UTILITY CLASSES
   ========================= */

.tk-hidden {
    display: none !important;
}

.tk-custom-text {
    margin-top: 20px;
}

.tk-custom-text h2,
.tk-custom-text h3 {
    font-size: clamp(18px, 2.7vw, 26px);
}

.tk-image-center {
    text-align: center;
}

.tk-responsive-image {
    max-width: 40%;
    height: auto;
    /* Prevent layout shift */
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
}

/* Responsive image containers */
.tk-image-center picture,
.tk-image-center img {
    display: block;
    margin: 0 auto;
}

/* WebP support styles */
.webp .tk-responsive-image {
    /* Enhanced styles for WebP-capable browsers */
}

.no-webp .tk-responsive-image {
    /* Fallback styles for non-WebP browsers */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .tk-responsive-image {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .tk-responsive-image {
        max-width: 100%;
    }
}

/* Quick Add (cart only) */
.tk-quick-add { --gap: 12px; }
.tk-quick-add-title { margin: 0 0 10px; font-weight: 800; font-size: 18px; }
.tk-quick-add-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tk-quick-add-item { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.04); display: grid; grid-template-rows: auto auto 1fr auto; }
.tk-quick-add-image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
.tk-quick-add-details h4 { margin: 8px 0 4px; font-size: 14px; font-weight: 700; }
.tk-quick-add-price { color: #475569; font-size: 13px; margin-bottom: 8px; }
.tk-quick-add-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 10px 12px; border-radius: 10px; background: #0ea5e9; color: #fff; border: 0; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.tk-quick-add-btn:hover { background: #0284c7; transform: translateY(-1px); }
.tk-quick-add-btn.is-disabled, .tk-quick-add-btn[disabled] { background: #94a3b8; cursor: not-allowed; }
.tk-quick-add-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }

@media (max-width: 1023px) {
  .tk-quick-add-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tk-quick-add-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: var(--gap); }
  .tk-quick-add-item { scroll-snap-align: start; }
}

/* Cart counter accessibility */
.tk-cart-count {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tk-cart-count:focus-visible {
    outline: 2px solid #94c6ff;
    outline-offset: 2px;
}

/* Focus management for keyboard users */
.user-is-tabbing *:focus {
  outline: 2px solid #94c6ff !important;
  outline-offset: 2px;
}

/* ================= TK HEADER STYLES ================= */
.tk-header {
  position: relative;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}


.tk-header__bar {
  position: relative;
  z-index: 1001;
}

.tk-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Cart badge baseline alignment to prevent shift when count updates */
.tk-cart__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1;
  background: #0ea5e9;
  color: #fff;
  margin-left: 6px;
}

.tk-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.tk-header__logo:hover {
  opacity: 0.8;
}

.tk-header__logo img {
  height: 40px;
  width: auto;
}

.tk-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Ensure header stack stays above Elementor canvases */
.tk-header,
.tk-header * {
  box-sizing: border-box;
}

body.admin-bar .tk-header__bar {
  margin-top: 32px;
}

.tk-nav__link {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
  position: relative;
}

.tk-nav__link:hover {
  color: #3b82f6;
}

.tk-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.tk-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.tk-btn--primary {
  background: #3b82f6;
  color: white;
}

.tk-btn--primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.tk-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tk-cart:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.tk-cart__icon {
  color: #6b7280;
}

.tk-cart__label {
  font-weight: 600;
  font-size: 14px;
}

.tk-cart__count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.tk-cart__count.show {
  opacity: 1;
  transform: scale(1);
}

.tk-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
  z-index: 1002;
  position: relative;
  flex-shrink: 0;
}

.tk-burger:hover {
  background: #f3f4f6;
}

.tk-burger span {
  width: 24px;
  height: 3px;
  background: #1f2937;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.tk-burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.tk-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.tk-burger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.tk-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tk-mobile.tk--open {
  opacity: 1;
  visibility: visible;
}

.tk-mobile__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.tk-mobile__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 20px;
  overflow-y: auto;
  z-index: 10000;
}

.tk-mobile.tk--open .tk-mobile__panel {
  transform: translateX(0);
}

.tk-mobile__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
  z-index: 10001;
}

.tk-mobile__close:hover {
  background: #f3f4f6;
}

.tk-mobile__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 60px;
}

.tk-mobile__link {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  transition: color 0.2s ease;
  display: block;
}

.tk-mobile__link:hover {
  color: #3b82f6;
}

/* Body scroll lock when mobile menu is open */
body.tk-noscroll {
  overflow: hidden;
}

/* Focus states for accessibility - CONTRAST ≥4.5:1 */
.tk-header__logo:focus-visible,
.tk-nav__link:focus-visible,
.tk-btn:focus-visible,
.tk-cart:focus-visible,
.tk-burger:focus-visible,
.tk-mobile__close:focus-visible,
.tk-mobile__link:focus-visible {
  outline: 2px solid #1d4ed8; /* High contrast blue */
  outline-offset: 2px;
}

/* Responsive - poprawki dla telefonów */
@media (max-width: 768px) {
  .tk-nav {
    display: none;
  }
  
  .tk-burger {
    display: flex;
  }
  
  .tk-actions {
    gap: 8px;
    flex-wrap: nowrap;
  }
  
  .tk-cart__label {
    display: none;
  }
  
  .tk-cart {
    padding: 8px;
    min-width: auto;
  }
  
  .tk-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .tk-header__container {
    padding: 0 16px;
    height: 60px;
  }
  
  .tk-header__logo img {
    height: 35px;
  }
}

@media (max-width: 480px) {
  .tk-header__container {
    padding: 0 12px;
  }
  
  .tk-mobile__panel {
    width: 100%;
  }
  
  .tk-actions {
    gap: 6px;
  }
  
  .tk-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .tk-cart {
    padding: 6px;
  }
}

/* ================= TK HERO SECTION STYLES ================= */
.tk-hero-section {
  --tkpB7-bg: #0b1220; --tkpB7-bg2: #0e1727; --tkpB7-fg: #f4f8ff; --tkpB7-muted: #c2cfe3;
  --tkpB7-brand: #2c6bff; --tkpB7-brand2: #00c2ff; --tkpB7-card: #0e1726; --tkpB7-stroke: #1b2b46;
  --tkpB7-shadow: 0 16px 48px rgba(0, 0, 0, .34);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: var(--tkpB7-fg);
  background:
    radial-gradient(920px 520px at 85% 12%, #10213a 0%, rgba(16, 33, 58, 0) 70%),
    linear-gradient(180deg, var(--tkpB7-bg), var(--tkpB7-bg2));
  border-bottom: 1px solid var(--tkpB7-stroke);
  overflow: hidden; isolation: isolate;
  contain: layout style paint;
}

.tk-hero-section .tkpB7-wrap {
  max-width: 1260px; margin: 0 auto; padding: 68px 20px 48px;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}

.tk-hero-section .tkpB7-eyebrow {
  letter-spacing: .12em; text-transform: uppercase; color: #cfe3ff; opacity: .9;
  font-weight: 700; font-size: .78rem;
}

.tk-hero-section h1 {
  margin: 12px 0 14px; line-height: 1.06; font-weight: 900;
  font-size: clamp(2.2rem, 4.9vw, 3.7rem); color: #fff;
}

.tk-hero-section h1 .tkpB7-grad {
  background: linear-gradient(90deg, var(--tkpB7-brand), var(--tkpB7-brand2), #44ffd8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tk-hero-section .tkpB7-lead {
  max-width: 66ch; margin: 0 0 24px; color: var(--tkpB7-fg); opacity: .95;
  font-size: clamp(1rem, 1.45vw, 1.15rem); line-height: 1.6;
}

/* Hero animations */
@keyframes tkpB7-fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tk-hero-section .tkpB7-animated {
  animation: tkpB7-fade-in-up 0.6s ease-out forwards;
  opacity: 0;
  will-change: opacity, transform;
  animation-play-state: paused;
}

.tk-hero-section .tkpB7-animated.animation-complete {
  will-change: auto;
}

.tk-hero-section h1 { animation-delay: 0.1s; }
.tk-hero-section .tkpB7-lead { animation-delay: 0.2s; }
.tk-hero-section .tkpB7-cta { animation-delay: 0.3s; }

/* Hero CTA buttons */
.tk-hero-section .tkpB7-cta { 
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center; 
}

.tk-hero-section .tkpB7-btn {
  position: relative; overflow: hidden; appearance: none; border: 0; 
  border-radius: 24px; padding: 15px 24px; font-weight: 700; 
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}

.tk-hero-section .tkpB7-btnPrimary {
  background: linear-gradient(135deg, var(--tkpB7-brand), var(--tkpB7-brand2)); 
  color: #fff;
  box-shadow: 0 12px 26px rgba(44, 107, 255, .28), 0 0 0 0 rgba(44, 107, 255, 0.7);
}

.tk-hero-section .tkpB7-btnGhost {
  background: transparent; color: #cfe6ff; border: 1px solid #2a3b59;
}

.tk-hero-section .tkpB7-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .3); 
  filter: saturate(1.1) brightness(1.1);
}

.tk-hero-section .tkpB7-btn:focus-visible { 
  outline: 2px solid #1d4ed8; outline-offset: 3px; 
}

/* Hero benefits cards */
.tk-hero-section .tkpB7-benefits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap: 16px; margin: 20px 0 6px;
}

.tk-hero-section .tkpB7-card {
  background: var(--tkpB7-card); border: 1px solid var(--tkpB7-stroke); 
  border-radius: 24px; padding: 20px; box-shadow: var(--tkpB7-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.tk-hero-section .tkpB7-card:hover { 
  transform: translateY(-6px) scale(1.02); 
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); 
  border-color: #3a5078; background: #0f1b2c; 
}

.tk-hero-section .tkpB7-card:focus-visible { 
  outline: 2px solid #1d4ed8; outline-offset: 3px; 
}

.tk-hero-section .tkpB7-card h3 { 
  font-size: 1.06rem; margin: 12px 0 6px; color: #fff; 
}

.tk-hero-section .tkpB7-card p { 
  margin: 0; color: #c1cee0; font-size: .95rem; line-height: 1.6; 
}

/* Hero responsive */
@media (min-width: 980px) { 
  .tk-hero-section .tkpB7-wrap { grid-template-columns: 1.08fr .92fr; } 
}

@media (max-width: 960px) {
  .tk-hero-section .tkpB7-wrap { gap: 32px; padding: 56px 16px 36px; }
  .tk-hero-section .tkpB7-benefits { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { 
  .tk-hero-section *, .tk-hero-section *::before, .tk-hero-section *::after { 
    animation: none !important; transition: none !important; scroll-behavior: auto; 
  } 
}

/* ================= TK SEO SECTION STYLES ================= */
.tk-seo-section {
  --u-bg:#0b121d; --u-bg2:#0e1726; --u-surface:#0f1828; --u-surface2:#101d31;
  --u-fg:#eef4ff; --u-muted:#c2cee1; --u-quiet:#9fb0c9;
  --u-brand:#2c6bff; --u-brand2:#00c2ff; --u-gold:#ffd166;
  --u-stroke:#1b2b46; --u-shadow:0 18px 44px rgba(0,0,0,.28);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  color:var(--u-fg); background:linear-gradient(180deg,var(--u-bg),var(--u-bg2));
  border-top:1px solid var(--u-stroke); overflow:hidden; isolation:isolate;
}

.tk-seo-section .u-wrap{max-width:1180px;margin-inline:auto;padding:48px 18px 64px}

.tk-seo-section h2{
  position:relative; margin:2px 0 12px; font-weight:900; line-height:1.1;
  font-size:clamp(1.9rem,3.3vw,2.6rem); letter-spacing:.2px; color:#fff;
}

.tk-seo-section .u-card{background:var(--u-surface);border:1px solid var(--u-stroke);border-radius:18px;padding:18px;box-shadow:var(--u-shadow)}

.tk-seo-section .reveal{opacity:0;transform:translateY(12px);transition:opacity .45s ease, transform .45s ease}
.tk-seo-section .reveal.is-in{opacity:1;transform:none}

/* Focus states for SEO section */
.tk-seo-section a:focus-visible,
.tk-seo-section button:focus-visible,
.tk-seo-section [tabindex]:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ================= TK PRODUCTS SECTION STYLES ================= */
.tk-products-section{
  font:400 15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color-scheme:dark;
  margin-bottom:44px;
}

.tk-products-container{max-width:1200px;margin:0 auto;padding:0 16px}
.tk-products-grid{display:grid;gap:32px;grid-template-columns:repeat(3,1fr)}

.tk-product-card{
  background:linear-gradient(180deg,#18181b,#27272a);
  border:1px solid rgba(255,255,255,.08); border-radius:14px;
  box-shadow:0 8px 30px rgba(0,0,0,.35);
  overflow:hidden; display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .2s ease;
}

.tk-product-card:hover{transform:translateY(-5px);box-shadow:0 12px 40px rgba(0,0,0,.5)}

.tk-product-hero{aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;padding:10px;background:#0f172a}
.tk-product-hero img{width:100%;height:100%;object-fit:contain;display:block}

.tk-product-info{padding:12px 14px 6px;text-align:center}
.tk-product-title{margin:0 0 4px;font-weight:900;font-size:18px;color:#f1f5f9}
.tk-product-sub{margin:0;color:#a1a1aa;font-weight:600;font-size:13px}

.tk-product-cta-wrap{padding:8px 12px 14px;display:flex;flex-direction:column;gap:8px;margin-top:auto}
.tk-product-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;
  padding:12px 14px;border-radius:12px;color:#fff;text-decoration:none;font-weight:800;
  background:linear-gradient(135deg,#004AAD,#0284C7);
  transition:transform .12s ease, background .25s ease, box-shadow .2s ease;
  box-shadow:0 10px 22px rgba(11,99,182,.18); text-shadow:0 1px 2px rgba(0,0,0,.2);
}

.tk-product-cta:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.25)}
.tk-product-cta:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}

.tk-product-price{font-weight:900;color:#fffde6}

/* Product responsive */
@media (max-width:900px){.tk-products-grid{grid-template-columns:repeat(2,1fr);gap:28px}}
@media (max-width:560px){
  .tk-products-grid{grid-template-columns:1fr;gap:22px}
  .tk-product-title{font-size:17px}
  .tk-product-cta{padding:11px 12px}
}

/* =========================
   DESIGN TOKENS & ZMIENNE
   ========================= */
:root{
  /* Colors */
  --tk-color-primary: #0070ba;
  --tk-color-accent: #005a99;
  --tk-color-danger: #dc3545;
  --tk-color-success: #28a745;
  --tk-color-warning: #ffc107;
  
  /* Legacy colors (maintained for compatibility) */
  --tk-blue: var(--tk-color-primary);
  --tk-blue-2: var(--tk-color-accent);
  --tk-gray: #888;
  --tk-border: #e0e0e0;
  
  /* Spacing */
  --tk-gap: 1rem;
  --tk-gap-sm: 0.5rem;
  --tk-gap-lg: 1.5rem;
  --tk-gap-xl: 2rem;
  
  /* Typography */
  --tk-font-size-base: 16px;
  --tk-line-height: 1.5;
  --tk-font-weight-normal: 400;
  --tk-font-weight-medium: 500;
  --tk-font-weight-bold: 700;
  
  /* Components */
  --tk-radius: 8px;
  --tk-radius-sm: 4px;
  --tk-radius-lg: 12px;
  --tk-shadow: 0 2px 10px rgba(0,0,0,0.1);
  --tk-shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --tk-shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
  
  /* Interactive */
  --tk-btn-height: 44px;
  --tk-focus: 2px solid var(--tk-color-primary);
  --tk-focus-offset: 2px;
  
  /* Animations */
  --tk-transition: 150ms ease-in-out;
  --tk-transition-fast: 100ms ease-in-out;
  --tk-transition-slow: 200ms ease-in-out;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --tk-color-primary: #4a9eff;
    --tk-color-accent: #66b3ff;
    --tk-color-danger: #ff6b6b;
    --tk-color-success: #51cf66;
    --tk-color-warning: #ffd43b;
    --tk-bg-primary: #1a1a1a;
    --tk-bg-secondary: #2d2d2d;
    --tk-bg-tertiary: #3d3d3d;
    --tk-text-primary: #ffffff;
    --tk-text-secondary: #cccccc;
    --tk-text-muted: #999999;
    --tk-border: #404040;
  }
}

/* =========================
   WOOCOMMERCE STYLES
   ========================= */
/* Link "Przejdź do sklepu" na produktach */
.tk-shop-link {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 16px;
    background-color: var(--tk-color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--tk-radius);
    font-weight: var(--tk-font-weight-medium);
    transition: var(--tk-transition);
}

.tk-shop-link:hover {
    background-color: var(--tk-color-accent);
    color: white;
    text-decoration: none;
}

.tk-shop-link--fallback {
    display: none;
}

/* Custom header na archiwum sklepu */
.custom-header {
    font-size: clamp(22px, 3.5vw, 42px);
    line-height: 1.15;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--tk-color-primary);
}

/* Custom text na archiwum sklepu */
.custom-text h2,
.custom-text h3 {
    font-size: clamp(18px, 2.7vw, 26px);
}

/* =========================
   UTILITY CLASSES
   ========================= */
/* Spacing utilities */
.tk-m-0 { margin: 0; }
.tk-m-1 { margin: var(--tk-gap-sm); }
.tk-m-2 { margin: var(--tk-gap); }
.tk-m-3 { margin: var(--tk-gap-lg); }
.tk-m-4 { margin: var(--tk-gap-xl); }
.tk-mt-0 { margin-top: 0; }
.tk-mt-1 { margin-top: var(--tk-gap-sm); }
.tk-mt-2 { margin-top: var(--tk-gap); }
.tk-mt-3 { margin-top: var(--tk-gap-lg); }
.tk-mt-4 { margin-top: var(--tk-gap-xl); }
.tk-mb-0 { margin-bottom: 0; }
.tk-mb-1 { margin-bottom: var(--tk-gap-sm); }
.tk-mb-2 { margin-bottom: var(--tk-gap); }
.tk-mb-3 { margin-bottom: var(--tk-gap-lg); }
.tk-mb-4 { margin-bottom: var(--tk-gap-xl); }
.tk-ml-0 { margin-left: 0; }
.tk-ml-1 { margin-left: var(--tk-gap-sm); }
.tk-ml-2 { margin-left: var(--tk-gap); }
.tk-ml-3 { margin-left: var(--tk-gap-lg); }
.tk-ml-4 { margin-left: var(--tk-gap-xl); }
.tk-mr-0 { margin-right: 0; }
.tk-mr-1 { margin-right: var(--tk-gap-sm); }
.tk-mr-2 { margin-right: var(--tk-gap); }
.tk-mr-3 { margin-right: var(--tk-gap-lg); }
.tk-mr-4 { margin-right: var(--tk-gap-xl); }

.tk-p-0 { padding: 0; }
.tk-p-1 { padding: var(--tk-gap-sm); }
.tk-p-2 { padding: var(--tk-gap); }
.tk-p-3 { padding: var(--tk-gap-lg); }
.tk-p-4 { padding: var(--tk-gap-xl); }
.tk-pt-0 { padding-top: 0; }
.tk-pt-1 { padding-top: var(--tk-gap-sm); }
.tk-pt-2 { padding-top: var(--tk-gap); }
.tk-pt-3 { padding-top: var(--tk-gap-lg); }
.tk-pt-4 { padding-top: var(--tk-gap-xl); }
.tk-pb-0 { padding-bottom: 0; }
.tk-pb-1 { padding-bottom: var(--tk-gap-sm); }
.tk-pb-2 { padding-bottom: var(--tk-gap); }
.tk-pb-3 { padding-bottom: var(--tk-gap-lg); }
.tk-pb-4 { padding-bottom: var(--tk-gap-xl); }
.tk-pl-0 { padding-left: 0; }
.tk-pl-1 { padding-left: var(--tk-gap-sm); }
.tk-pl-2 { padding-left: var(--tk-gap); }
.tk-pl-3 { padding-left: var(--tk-gap-lg); }
.tk-pl-4 { padding-left: var(--tk-gap-xl); }
.tk-pr-0 { padding-right: 0; }
.tk-pr-1 { padding-right: var(--tk-gap-sm); }
.tk-pr-2 { padding-right: var(--tk-gap); }
.tk-pr-3 { padding-right: var(--tk-gap-lg); }
.tk-pr-4 { padding-right: var(--tk-gap-xl); }

/* Text utilities */
.tk-text-left { text-align: left; }
.tk-text-center { text-align: center; }
.tk-text-right { text-align: right; }
.tk-text-primary { color: var(--tk-color-primary); }
.tk-text-secondary { color: var(--tk-color-accent); }
.tk-text-danger { color: var(--tk-color-danger); }
.tk-text-success { color: var(--tk-color-success); }
.tk-text-warning { color: var(--tk-color-warning); }
.tk-text-muted { color: var(--tk-text-muted, #666); }

/* Display utilities */
.tk-d-none { display: none; }
.tk-d-block { display: block; }
.tk-d-inline { display: inline; }
.tk-d-inline-block { display: inline-block; }
.tk-d-flex { display: flex; }
.tk-d-grid { display: grid; }

/* Flexbox utilities */
.tk-flex-row { flex-direction: row; }
.tk-flex-column { flex-direction: column; }
.tk-flex-wrap { flex-wrap: wrap; }
.tk-flex-nowrap { flex-wrap: nowrap; }
.tk-justify-start { justify-content: flex-start; }
.tk-justify-center { justify-content: center; }
.tk-justify-end { justify-content: flex-end; }
.tk-justify-between { justify-content: space-between; }
.tk-justify-around { justify-content: space-around; }
.tk-align-start { align-items: flex-start; }
.tk-align-center { align-items: center; }
.tk-align-end { align-items: flex-end; }
.tk-align-stretch { align-items: stretch; }

/* Border utilities */
.tk-border { border: 1px solid var(--tk-border); }
.tk-border-0 { border: 0; }
.tk-border-top { border-top: 1px solid var(--tk-border); }
.tk-border-bottom { border-bottom: 1px solid var(--tk-border); }
.tk-border-left { border-left: 1px solid var(--tk-border); }
.tk-border-right { border-right: 1px solid var(--tk-border); }

/* Border radius utilities */
.tk-rounded-0 { border-radius: 0; }
.tk-rounded-sm { border-radius: var(--tk-radius-sm); }
.tk-rounded { border-radius: var(--tk-radius); }
.tk-rounded-lg { border-radius: var(--tk-radius-lg); }
.tk-rounded-full { border-radius: 50%; }

/* Shadow utilities */
.tk-shadow-none { box-shadow: none; }
.tk-shadow-sm { box-shadow: var(--tk-shadow-sm); }
.tk-shadow { box-shadow: var(--tk-shadow); }
.tk-shadow-lg { box-shadow: var(--tk-shadow-lg); }

/* Width utilities */
.tk-w-full { width: 100%; }
.tk-w-auto { width: auto; }
.tk-w-fit { width: fit-content; }

/* Height utilities */
.tk-h-full { height: 100%; }
.tk-h-auto { height: auto; }
.tk-h-fit { height: fit-content; }

/* Position utilities */
.tk-relative { position: relative; }
.tk-absolute { position: absolute; }
.tk-fixed { position: fixed; }
.tk-sticky { position: sticky; }

/* Overflow utilities */
.tk-overflow-hidden { overflow: hidden; }
.tk-overflow-auto { overflow: auto; }
.tk-overflow-scroll { overflow: scroll; }
.tk-overflow-visible { overflow: visible; }

/* =========================
   GLOBAL / TYPOGRAFIA
   ========================= */
.custom-header{
  font-size: clamp(22px, 3.5vw, 42px);
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--tk-blue);
}

/* Separator utility */
.separator {
  height: 15px;
  margin: 15px 0;
}

/* Błędy WooCommerce (komunikaty) */
.woocommerce-error {
  color: red !important;
}

/* =========================
   RESPONSYWNE POLA BILLING
   ========================= */
@media (max-width: 768px) {
  .woocommerce-billing-fields__field-wrapper .form-row-first,
  .woocommerce-billing-fields__field-wrapper .form-row-wide {
    width: 100%;
    max-width: 100%;
  }
  .woocommerce-billing-fields__field-wrapper input.input-text,
  .woocommerce-billing-fields__field-wrapper select {
    width: 100%;
    padding: 12px;
  }
  .woocommerce-billing-fields__field-wrapper .form-row {
    margin-bottom: 15px;
  }
  .woocommerce-billing-fields__field-wrapper label {
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
  }
}

/* =========================
   PRZYCISKI / CTA
   ========================= */
.back-to-shop {
  background-color: #004aad;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
  display: inline-block;
}
.back-to-shop:hover { background-color: #5da2ff; }

/* Styl globalny przycisku (Twoja „czarna ramka") */
.button23 {
  display: inline-block;
  padding: 14px 28px;
  color: #eeac01;
  background-color: #000;
  text-decoration: none;
  font-size: 18px;
  border: 2px solid #eeac01;
  border-radius: 8px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  text-align: center;
}
.button23:hover {
  background-color: #eeac01;
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.button23:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(238, 172, 1, 0.5);
}
.button23:active {
  background-color: #000;
  color: #eeac01;
  transform: translateY(1px);
}
.button23:disabled {
  background-color: #555;
  color: #ccc;
  cursor: not-allowed;
  border-color: #555;
}

/* Niebieskie przyciski używane w thank-you i boxie rabatowym */
.tk-btn,
.multibuy-discount-info .cta-button{
  background:#e8f3ff;
  color:var(--tk-blue);
  border:0;
  border-radius:8px;
  padding:8px 16px;
  font-weight:700;
  text-decoration:none;
}
.tk-btn:hover,
.multibuy-discount-info .cta-button:hover{
  background:#d8ebff;
}

/* =========================
   LISTA PRODUKTÓW / SKLEP
   ========================= */
.woocommerce-loop-product__title {
  color: #D90429 !important;
}

/* Teksty kuponu (toggle nad koszykiem/kasą) */
.woocommerce-form-coupon-toggle {
  display: flex;
  flex-direction: column;
  background:#eaf4ff;
  border:1px solid #cfe5ff;
  border-radius:10px;
  padding:14px;
  margin:0 0 14px;
}
.woocommerce-form-coupon-toggle .showcoupon {
  margin-top: auto;
  color:#0b77b5;
  font-weight:700;
  text-decoration:none;
  border-bottom:1px dashed currentColor;
}
.woocommerce-form-coupon-toggle .showcoupon:hover { color:#084b77; }

/* ===== Koszyk (Woo Blocks) – przycisk „Przejdź do płatności" - POPRAWIONY ===== */
.wc-block-cart__submit-container {
  margin-top: 20px !important;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button.contained {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 18px 32px !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  font-size: 16px !important;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25) !important;
  transition: all 0.3s ease !important;
  min-height: 56px !important;
  width: 100% !important;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button.contained:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.35) !important;
  transform: translateY(-2px) !important;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button.contained:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2) !important;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button .wc-block-components-button__text {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Ikona w przycisku checkout */
.wc-block-cart__submit-button::before {
  content: '🛒' !important;
  font-size: 20px !important;
  margin-right: 6px !important;
}

/* Dla klasycznego koszyka (fallback) - POPRAWIONY */
.wc-proceed-to-checkout {
  margin-top: 20px !important;
}

.wc-proceed-to-checkout a.checkout-button,
.cart_totals .checkout-button.button.alt {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 18px 32px !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  font-size: 16px !important;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25) !important;
  transition: all 0.3s ease !important;
  min-height: 56px !important;
  width: 100% !important;
  text-decoration: none !important;
}

.wc-proceed-to-checkout a.checkout-button:hover,
.cart_totals .checkout-button.button.alt:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.35) !important;
  transform: translateY(-2px) !important;
}

.wc-proceed-to-checkout a.checkout-button:active,
.cart_totals .checkout-button.button.alt:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2) !important;
}

/* Dostępność dla przycisku checkout */
.wc-block-cart__submit-button.contained:focus-visible,
.checkout-button:focus-visible {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 3px !important;
}

/* =========================
   KUPO NY – FORMULARZ (klasyczny)
   ========================= */
form.checkout_coupon.woocommerce-form-coupon {
  display:flex;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
  position:static !important; /* nadpisuje ewentualny inline */
}
form.checkout_coupon .form-row { margin:0; }
form.checkout_coupon .form-row-first,
form.checkout_coupon .form-row-last { width:auto; }

/* Pole kuponu */
form.checkout_coupon input.input-text {
  height:48px;
  padding:0 14px;
  border-radius:12px;
  background:#eef3f7;
  border:1px solid #cfe2f3;
  font-weight:600;
  min-width:260px;
}
form.checkout_coupon input.input-text.has-error {
  border-color:#ef4444;
  background:#fff7f7;
}

/* Przycisk „Wykorzystaj kupon" */
form.checkout_coupon .button[name="apply_coupon"] {
  height:48px;
  padding:0 26px;
  background:#0b77b5;
  border:2px solid #0b77b5;
  border-radius:12px;
  color:#fff;
  font-size:14px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
}
form.checkout_coupon .button[name="apply_coupon"]:hover {
  background:#095f91;
  border-color:#095f91;
}

/* Komunikat błędu pod polem kuponu */
.coupon-error-notice {
  display:block;
  margin-top:6px;
  padding:6px 10px;
  border-radius:8px;
  color:#b91c1c;
  background:#fee2e2;
  border:1px solid #fecaca;
  font-weight:700;
}

/* Mobile – pełna szerokość */
@media (max-width:768px) {
  form.checkout_coupon.woocommerce-form-coupon { flex-direction:column; gap:10px; }
  form.checkout_coupon .form-row-first,
  form.checkout_coupon .form-row-last,
  form.checkout_coupon input.input-text,
  form.checkout_coupon .button[name="apply_coupon"] { width:100% !important; }
}

/* =========================
   KONTENERY / KAFELKI
   ========================= */
.izeetak-container .wc-block-components-main,
.izeetak-container .wc-block-components-sidebar {
  background-color: #fff;
  padding: 2%;
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Suma zamówienia – CSS dla .order-total jest w linii 1746-1751 i 1926-1939 */

/* UKRYJ wiersz "Kwota" (cart-subtotal) - pokazujemy tylko "Łącznie" */
.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-table.order_details .cart-subtotal,
table.shop_table .cart-subtotal {
  display: none !important;
}

/* Zmień tekst "Łącznie" na "Kwota do zapłaty" */
.woocommerce-checkout-review-order-table .order-total th::before,
.woocommerce-table.order_details .order-total th::before,
table.shop_table .order-total th::before {
  content: 'Kwota do zapłaty' !important;
  display: block !important;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-table.order_details .order-total th,
table.shop_table .order-total th {
  font-size: 0 !important; /* Ukryj oryginalny tekst "Łącznie" */
}

.woocommerce-checkout-review-order-table .order-total th::before,
.woocommerce-table.order_details .order-total th::before,
table.shop_table .order-total th::before {
  font-size: 16px !important; /* Przywróć rozmiar dla nowego tekstu */
  font-weight: 700 !important;
  color: #ffffff !important;
}

/* Inputy WooCommerce – wygląd */
input.input-text,
span.woocommerce-input-wrapper input.input-text {
  background-color: #f5f5f5;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Pole email na checkout - 50% szerokości */
.woocommerce-billing-fields #billing_email_field,
.woocommerce-checkout #billing_email_field {
  max-width: 50%;
}

@media (max-width: 768px) {
  .woocommerce-billing-fields #billing_email_field,
  .woocommerce-checkout #billing_email_field {
    max-width: 100%;
  }
}

/* =========================
   SEKCJA KUPONÓW - POPRAWIONA
   ========================= */

/* Przycisk "Dodaj kupon" (toggle) */
.wc-block-components-totals-coupon .wc-block-components-panel__button {
  background: #f8fafc !important;
  color: #3b82f6 !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  border: 2px solid #e5e7eb !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #2563eb !important;
}

/* Ikona przy przycisku kuponu */
.wc-block-components-totals-coupon .wc-block-components-panel__button::before {
  content: '🎟️' !important;
  font-size: 16px !important;
}

/* Formularz kuponu (Woo Blocks) - POPRAWIONY */
.wc-block-components-totals-coupon__form {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 16px !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
  margin: 12px 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.wc-block-components-totals-coupon__input { 
  flex: 1 !important; 
  margin: 0 !important;
}

.wc-block-components-totals-coupon__input input {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.2s ease !important;
}

.wc-block-components-totals-coupon__input input:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  background: #ffffff !important;
}

.wc-block-components-totals-coupon__input input::placeholder {
  color: #9ca3af !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 500 !important;
}

/* Przycisk "Zastosuj" w formularzu kuponu */
.wc-block-components-totals-coupon__button {
  padding: 12px 24px !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
  white-space: nowrap !important;
}

.wc-block-components-totals-coupon__button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-1px) !important;
}

.wc-block-components-totals-coupon__button:active:not(:disabled) {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15) !important;
}

.wc-block-components-totals-coupon__button:disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Focus state dla przycisku kuponu */
.wc-block-components-totals-coupon__button:focus-visible {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 2px !important;
}

/* Mobile - formularz kuponu */
@media (max-width: 640px) {
  .wc-block-components-totals-coupon__form {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .wc-block-components-totals-coupon__button {
    width: 100% !important;
  }
}

/* Rabaty – podświetlenie fragmentów tekstu */
.highlight {
  background-color: #fffae6;
  border: 1px solid #ffc107;
  padding: 5px;
}

/* =========================
   KUPONY W KOSZYKU - CUSTOM STYLING
   ========================= */

/* Główny kontener listy kuponów */
.wc-block-components-totals-discount__coupon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Pojedynczy chip kuponu - MOCNY KONTRAST */
.wc-block-components-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: 2px solid #1e40af !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15) !important;
  transition: all 0.2s ease !important;
}

/* Hover na całym chipie */
.wc-block-components-chip:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25) !important;
}

/* Tekst kuponu */
.wc-block-components-chip__text {
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
}

/* Przycisk usuwania kuponu - X */
.wc-block-components-chip__remove {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  color: #ffffff !important;
}

.wc-block-components-chip__remove:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.1) !important;
}

.wc-block-components-chip__remove:active {
  transform: scale(0.95) !important;
}

/* Ikona X w przycisku usuwania */
.wc-block-components-chip__remove-icon {
  width: 14px !important;
  height: 14px !important;
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Screen reader text */
.wc-block-components-chip .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

/* Kontener opisu rabatu — ukryj gdy pusty */
.wc-block-components-totals-item__description:empty {
  display: none !important;
}

.wc-block-components-totals-item__description:not(:empty) {
  margin-top: 4px !important;
  padding: 12px !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
}

/* Cała sekcja Rabat ilościowy */
.wc-block-components-totals-discount {
  padding: 12px 0 !important;
}

/* Etykieta rabatu */
.wc-block-components-totals-discount .wc-block-components-totals-item__label {
  font-weight: 600 !important;
  color: #059669 !important;
  font-size: 15px !important;
}

/* Wartość rabatu */
.wc-block-components-totals-discount .wc-block-components-totals-item__value {
  font-weight: 700 !important;
  color: #059669 !important;
  font-size: 16px !important;
}

/* Dostępność - focus states */
.wc-block-components-chip:focus-visible,
.wc-block-components-chip__remove:focus-visible {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 2px !important;
}

/* Warianty kolorystyczne dla różnych typów kuponów */
/* Kupon specjalny (np. halloween, blackfriday) */
.wc-block-components-chip[class*="halloween"],
.wc-block-components-chip[class*="black"],
.wc-block-components-chip[class*="special"] {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
  border-color: #b91c1c !important;
}

/* Kupon VIP/Premium */
.wc-block-components-chip[class*="vip"],
.wc-block-components-chip[class*="premium"],
.wc-block-components-chip[class*="gold"] {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
  border-color: #d97706 !important;
  color: #1f2937 !important;
}

.wc-block-components-chip[class*="vip"] .wc-block-components-chip__text,
.wc-block-components-chip[class*="premium"] .wc-block-components-chip__text,
.wc-block-components-chip[class*="gold"] .wc-block-components-chip__text {
  color: #1f2937 !important;
}

/* Responsive - mobile */
@media (max-width: 768px) {
  .wc-block-components-chip {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }
  
  .wc-block-components-chip__text {
    font-size: 12px !important;
  }
  
  .wc-block-components-chip__remove {
    width: 18px !important;
    height: 18px !important;
  }
  
  .wc-block-components-chip__remove-icon {
    width: 12px !important;
    height: 12px !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .wc-block-components-totals-item__description:not(:empty) {
    background: #1f2937 !important;
    border-color: #374151 !important;
  }
}

/* =========================
   PODSUMOWANIE KOSZYKA - KOMPLETNA SEKCJA TOTALS
   ========================= */

/* Główny kontener totals — TYLKO standalone .cart_totals dostaje card styling */
.cart_totals {
  background: #ffffff !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 24px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Wrapper wewnątrz sidebar-a — przezroczysty, bo sidebar już jest kartą */
.wc-block-cart__sidebar .wc-block-components-totals-wrapper {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Nagłówek "Podsumowanie zamówienia" */
.wc-block-components-totals-wrapper h2,
.cart_totals h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #e5e7eb !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Pojedyncza linia totals */
.wc-block-components-totals-item,
.cart_totals tr {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #f3f4f6 !important;
  transition: background-color 0.2s ease !important;
}

.wc-block-components-totals-item:hover,
.cart_totals tr:hover {
  background-color: #f8fafc !important;
  margin: 0 -12px !important;
  padding: 12px 12px !important;
  border-radius: 8px !important;
}

/* Etykieta (lewa strona) */
.wc-block-components-totals-item__label,
.cart_totals th {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
  text-align: left !important;
  flex: 1 !important;
}

/* Wartość (prawa strona) */
.wc-block-components-totals-item__value,
.cart_totals td {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  text-align: right !important;
  min-width: 100px !important;
}

/* Podkwota (Subtotal) — zmień "Kwota" → "Suma" i zrób subtelniejszą */
.wp-block-woocommerce-cart-order-summary-subtotal-block .wc-block-components-totals-item__label {
  font-size: 0 !important;
  color: #6b7280 !important;
  font-weight: 500 !important;
}
.wp-block-woocommerce-cart-order-summary-subtotal-block .wc-block-components-totals-item__label::before {
  content: 'Suma' !important;
  font-size: 14px !important;
  color: #9ca3af !important;
  font-weight: 500 !important;
}

.wp-block-woocommerce-cart-order-summary-subtotal-block .wc-block-components-totals-item__value,
.cart-subtotal td {
  color: #6b7280 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}

/* Wysyłka (Shipping) */
.wc-block-components-totals-shipping,
.woocommerce-shipping-totals {
  background: #f8fafc !important;
  margin: 0 -12px !important;
  padding: 12px 12px !important;
  border-radius: 8px !important;
}

.wc-block-components-totals-shipping .wc-block-components-totals-item__label,
.woocommerce-shipping-totals th {
  color: #3b82f6 !important;
}

.wc-block-components-totals-shipping .wc-block-components-totals-item__value,
.woocommerce-shipping-totals td {
  color: #2563eb !important;
  font-weight: 700 !important;
}

/* Tekst "BEZPŁATNIE" dla darmowej wysyłki */
.wc-block-components-totals-shipping .wc-block-components-totals-item__value:contains("BEZPŁATNIE"),
.woocommerce-shipping-totals td:contains("BEZPŁATNIE") {
  color: #059669 !important;
  font-weight: 800 !important;
}

/* Podatek (Tax) - jeśli używany */
.wc-block-components-totals-taxes,
.tax-total {
  background: #fef3c7 !important;
  margin: 0 -12px !important;
  padding: 12px 12px !important;
  border-radius: 8px !important;
}

.wc-block-components-totals-taxes .wc-block-components-totals-item__label,
.tax-total th {
  color: #92400e !important;
}

.wc-block-components-totals-taxes .wc-block-components-totals-item__value,
.tax-total td {
  color: #78350f !important;
  font-weight: 700 !important;
}

/* SUMA KOŃCOWA - TYLKO dla WooCommerce Blocks */
.wc-block-components-totals-footer-item {
  background: #f8fafc !important;
  margin: 16px -12px 0 !important;
  padding: 16px 12px !important;
  border-radius: 10px !important;
  border-bottom: none !important;
  border-top: 2px solid #e5e7eb !important;
  box-shadow: none !important;
}

/* Zmiana tekstu "Szacowana łączna kwota" na "Kwota:" - TYLKO dla bloków, NIE dla checkout table */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  position: relative !important;
  z-index: 1 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label::before {
  content: 'KWOTA:' !important;
  display: block !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 0 !important; /* Ukryj oryginalny tekst */
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label::before {
  font-size: 18px !important; /* Przywróć rozmiar dla nowego tekstu */
  color: #374151 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #059669 !important;
  text-shadow: none !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Fix dla przesuwającego się tekstu na hover */
.wc-block-components-totals-footer-item {
  position: relative !important;
  overflow: visible !important;
}

.wc-block-components-totals-footer-item * {
  position: relative !important;
  z-index: 1 !important;
}

/* Rabat od kuponu - już poprawiony wyżej, ale dodatkowe ulepszenie */
.wc-block-components-totals-discount {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
  margin: 0 -12px !important;
  padding: 12px 12px !important;
  border-radius: 8px !important;
  border: 2px solid #10b981 !important;
}

/* Ikona oszczędności przy rabacie */
.wc-block-components-totals-discount .wc-block-components-totals-item__label::before {
  content: '💰 ' !important;
  margin-right: 6px !important;
}

/* Procent rabatu - większy */
.wc-block-components-totals-discount .wc-block-components-totals-item__value {
  color: #047857 !important;
  font-weight: 900 !important;
  font-size: 18px !important;
}

/* Mobile responsywność */
@media (max-width: 768px) {
  .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
    padding: 0 !important;
  }
  
  .cart_totals {
    padding: 16px !important;
  }
  
  .wc-block-components-totals-wrapper h2,
  .cart_totals h2 {
    font-size: 18px !important;
  }
  
  .wc-block-components-totals-item__label,
  .cart_totals th {
    font-size: 14px !important;
  }
  
  .wc-block-components-totals-item__value,
  .cart_totals td {
    font-size: 15px !important;
    min-width: 80px !important;
  }
  
  /* Subtotal "Suma" — subtelna na mobile */
  .wp-block-woocommerce-cart-order-summary-subtotal-block .wc-block-components-totals-item__label::before {
    font-size: 13px !important;
  }
  .wp-block-woocommerce-cart-order-summary-subtotal-block .wc-block-components-totals-item__value {
    font-size: 13px !important;
  }
  
  .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
  .order-total th {
    font-size: 16px !important;
  }
  
  .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
  .order-total td {
    font-size: 20px !important;
    color: #059669 !important;
  }
  
  .wc-block-components-totals-footer-item,
  .order-total {
    margin: 12px 0 0 0 !important;
    padding: 16px !important;
    width: 100% !important;
  }
}

/* Dostępność - focus states dla interaktywnych elementów w totals */
.wc-block-components-totals-shipping-options__option:focus-visible,
.shipping-calculator-button:focus-visible {
  outline: 3px solid #3b82f6 !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

/* Animacja dla zmian wartości */
@keyframes tkValueUpdate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.wc-block-components-totals-item__value.is-updating,
.cart_totals td.is-updating {
  animation: tkValueUpdate 0.3s ease !important;
  color: #3b82f6 !important;
}

/* =========================
   KOSZYK - TABELA PRODUKTÓW (RESPONSYWNOŚĆ)
   ========================= */

/* 🎯 KLUCZOWA ZMIANA: Responsywna tabela koszyka */
.woocommerce-cart-form__contents {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Nagłówki tabeli */
.woocommerce-cart-form__contents thead th {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
  color: #ffffff !important;
  padding: 16px 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
}

/* Komórki produktów */
.woocommerce-cart-form__contents tbody td {
  padding: 16px 12px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #e5e7eb !important;
  font-size: 15px !important;
}

/* Obrazki produktów */
.woocommerce-cart-form__contents .product-thumbnail img {
  max-width: 80px !important;
  height: auto !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Nazwy produktów */
.woocommerce-cart-form__contents .product-name a {
  color: #1f2937 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.woocommerce-cart-form__contents .product-name a:hover {
  color: #3b82f6 !important;
  text-decoration: underline !important;
}

/* Ceny */
.woocommerce-cart-form__contents .product-price,
.woocommerce-cart-form__contents .product-subtotal {
  font-weight: 700 !important;
  font-size: 17px !important;
  color: #1f2937 !important;
}

/* Ilość */
.woocommerce-cart-form__contents .product-quantity .quantity {
  display: inline-flex !important;
  align-items: center !important;
  background: #f3f4f6 !important;
  border-radius: 8px !important;
  padding: 4px !important;
}

.woocommerce-cart-form__contents .product-quantity input[type="number"] {
  width: 60px !important;
  text-align: center !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: 8px !important;
  font-weight: 600 !important;
}

/* Przycisk usuń */
.woocommerce-cart-form__contents .product-remove a {
  color: #dc2626 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #fef2f2 !important;
  transition: all 0.2s ease !important;
}

.woocommerce-cart-form__contents .product-remove a:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

/* Mobile - tabela stackowana */
@media (max-width: 768px) {
  .woocommerce-cart-form__contents {
    display: block !important;
    border-radius: 0 !important;
  }
  
  .woocommerce-cart-form__contents thead {
    display: none !important;
  }
  
  .woocommerce-cart-form__contents tbody,
  .woocommerce-cart-form__contents tr,
  .woocommerce-cart-form__contents td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }
  
  .woocommerce-cart-form__contents tr {
    margin-bottom: 20px !important;
    padding: 16px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e5e7eb !important;
  }
  
  .woocommerce-cart-form__contents td {
    padding: 8px 0 !important;
    border: none !important;
  }
  
  .woocommerce-cart-form__contents td::before {
    content: attr(data-title) ": " !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
    margin-right: 8px !important;
  }
  
  .woocommerce-cart-form__contents .product-thumbnail {
    text-align: center !important;
    margin-bottom: 12px !important;
  }
  
  .woocommerce-cart-form__contents .product-thumbnail img {
    max-width: 120px !important;
  }
  
  .woocommerce-cart-form__contents .product-name {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  
  .woocommerce-cart-form__contents .product-remove {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
  }
}

@media (max-width: 480px) {
  .woocommerce-cart-form__contents tr {
    padding: 12px !important;
  }
  
  .woocommerce-cart-form__contents .product-thumbnail img {
    max-width: 100px !important;
  }
  
  .woocommerce-cart-form__contents .product-name a {
    font-size: 15px !important;
  }
}

/* =========================
   KOSZYK - CROSS-SELLS (POLECANE PRODUKTY)
   ========================= */

.cross-sells {
  margin-top: 40px !important;
  padding: 24px !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  border: 2px solid #e5e7eb !important;
}

.cross-sells h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

.cross-sells .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 20px !important;
}

.cross-sells .product {
  background: #ffffff !important;
  border-radius: 10px !important;
  padding: 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.cross-sells .product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 768px) {
  .cross-sells {
    padding: 16px !important;
  }
  
  .cross-sells .products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* =========================
   KOSZYK - PRZYCISKI AKCJI
   ========================= */

/* Przycisk "Zaktualizuj koszyk" */
.woocommerce-cart-form button[name="update_cart"] {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3) !important;
}

.woocommerce-cart-form button[name="update_cart"]:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4) !important;
}

/* Przycisk "Przejdź do kasy" */
.wc-proceed-to-checkout .checkout-button,
.cart_totals .checkout-button.button.alt {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 18px 32px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4) !important;
  width: 100% !important;
  text-align: center !important;
  display: block !important;
}

.wc-proceed-to-checkout .checkout-button:hover,
.cart_totals .checkout-button.button.alt:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.5) !important;
}

@media (max-width: 768px) {
  .wc-proceed-to-checkout .checkout-button,
  .cart_totals .checkout-button.button.alt {
    padding: 16px 24px !important;
    font-size: 16px !important;
  }
}

/* =========================
   THANK YOU – TABELA / BOXY
   ========================= */
.tk-table{
  width:96%;
  max-width:700px;
  margin:0 auto 14px;
  border-collapse:separate;
  border-spacing:0;
  box-shadow:0 2px 10px rgba(0,112,186,.04);
  background: #ffffff !important; /* Białe tło zamiast ciemnego */
}
.tk-table th{
  background: #f8fafc !important; /* Jasne tło zamiast niebieskiego */
  color: #1f2937 !important; /* Ciemny tekst */
  padding:14px;
  text-align:left;
  font-weight: 600 !important;
  border-bottom: 2px solid #e5e7eb !important;
}
.tk-table td{
  background:#fff;
  padding:14px;
  border-bottom:1px solid #e5e7eb; /* Zmiana koloru separatora */
}

/* Tabela "Twoje zamówienie" na checkout/thank you - usuń ciemne tło */
.woocommerce-checkout-review-order-table,
.woocommerce-table.order_details,
table.shop_table {
  background: #ffffff !important;
}

.woocommerce-checkout-review-order-table thead th,
.woocommerce-table.order_details thead th,
table.shop_table thead th {
  background: #f8fafc !important;
  color: #1f2937 !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #e5e7eb !important;
}

.woocommerce-checkout-review-order-table .order-total,
.woocommerce-table.order_details .order-total,
table.shop_table .order-total {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
  display: table-row !important;
  width: 100% !important;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-table.order_details .order-total th,
.woocommerce-table.order_details .order-total td,
table.shop_table .order-total th,
table.shop_table .order-total td {
  color: #ffffff !important;
  padding: 16px !important;
  background: inherit !important;
}

/* =========================
   TOOLTIP DLA RANG LOJALNOŚCIOWYCH
   ========================= */

.tk-loyalty-tiers-tooltip {
  transition: all 0.3s ease !important;
}

/* Niestandardowy tooltip (lepszy od browser'owego) */
.tk-loyalty-tiers-tooltip:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
  width: max-content;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  pointer-events: none;
  animation: tkTooltipFadeIn 0.2s ease;
  line-height: 1.6;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Strzałka tooltipa */
.tk-loyalty-tiers-tooltip:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0px);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  z-index: 9999;
  pointer-events: none;
  animation: tkTooltipFadeIn 0.2s ease;
}

@keyframes tkTooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
  }
}

/* Mobile - tooltip na całą szerokość */
@media (max-width: 768px) {
  .tk-loyalty-tiers-tooltip:hover::after {
    max-width: 90vw;
    left: 50%;
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* Ukryj natywny browser tooltip */
.tk-loyalty-tiers-tooltip[title] {
  position: relative;
}

/* =========================
   BOX RABATU POD CHECKOUT
   ========================= */
.multibuy-discount-info{
  background:#f9f9f9;
  padding:15px;
  margin-top:20px;
  border:1px solid var(--tk-border);
  border-radius:8px;
  text-align:center;
}

/* =========================
   SHOP DISCOUNTS - CLS FIX
   ========================= */
.tk-shop-discounts {
  min-height: 120px; /* Reserve space before content loads */
  contain: layout;
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
  /* Prevent layout shift during loading */
  box-sizing: border-box;
}

.tk-shop-discounts__title {
  margin: 0 0 8px;
  color: #0369a1;
  font-size: 18px;
  font-weight: 600;
}

.tk-shop-discounts__main {
  margin: 0;
  color: #0c4a6e;
  font-size: 16px;
}

.tk-shop-discounts__note {
  margin: 4px 0 0;
  font-size: 14px;
  color: #64748b;
}






/* ===== Pasek topbar (fallback gdy brak w menu) ===== */
#tk-topbar{
  position: sticky; top: 0; z-index: 9999;
  background: #0b77b5; color:#fff; box-shadow:0 2px 6px rgba(0,0,0,.08);
}
#tk-topbar .tk-topbar__inner{
  max-width:1200px; margin:0 auto; padding:10px 16px; display:flex; justify-content:flex-end; align-items:center;
}
.tk-topbar__login, .tk-login-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; padding:0 16px; background:#fff; color:#0b77b5 !important;
  border-radius:10px; font-weight:800; text-transform:uppercase; letter-spacing:.02em;
}
.tk-topbar__login:hover, .tk-login-btn:hover{ filter:brightness(.96); }

/* ===== Koszyk – layout mobilny jako "kafle" ===== */
@media (max-width: 768px){
  .wc-block-cart-items thead { display:none; }
  .wc-block-cart-items tbody tr.wc-block-cart-items__row{
    display:grid; grid-template-columns: 84px 1fr; gap:10px; padding:12px 0; border-bottom:1px solid #eee;
  }
  .wc-block-cart-item__image a, .wc-block-cart-item__image img{ width:84px; height:84px; object-fit:cover; border-radius:10px; display:block; }
  .wc-block-cart-item__product{ grid-column:2 / -1; }
  .wc-block-cart-item__total{ grid-column:2 / -1; justify-self:end; font-weight:700; }
  .wc-block-cart-item__remove-link{ margin-top:6px; color:#b91c1c; background:#fee2e2; border:1px solid #fecaca; border-radius:8px; padding:6px 10px; }
}

/* ===== Sticky podsumowanie na desktopie ===== */
@media (min-width: 981px){
  .wc-block-cart .wc-block-components-sidebar{ position: sticky; top: 90px; height: fit-content; }
}

/* ===== Spójne CTA (używałeś już podobnych) ===== */
button, .button, .wp-element-button, .wc-block-components-button.contained{
  min-height:48px;
  border-radius:12px;
}

/* ===== Checkout – błędy i focus ===== */
.woocommerce-invalid input.input-text{ border-color:#ef4444; background:#fff7f7; }
input.input-text:focus, select:focus{
  outline: none; box-shadow:0 0 0 3px rgba(11,119,181,.2); border-color:#0b77b5;
}







/* ========== Checkout: Stripe UPE – clean & modern look ========== */

:root {
  --tk-primary: #0e62ff;
  --tk-primary-600: #0a4fd1;
  --tk-bg: #f7f9fc;
  --tk-border: #e5e8ef;
  --tk-text: #111827;
  --tk-muted: #6b7280;
  --tk-success: #10b981;
  --tk-danger: #ef4444;
  --tk-radius: 12px;
  --tk-shadow: 0 6px 18px rgba(16,24,40,.08);
}

/* Sekcja metod płatności */
#payment, .woocommerce-checkout #payment {
  background: #fff;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
  padding: 16px 16px 6px;
}

/* Każda metoda – większa klikalna strefa */
#payment ul.payment_methods li {
  list-style: none;
  margin: 6px 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--tk-border);
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}

#payment ul.payment_methods li:hover {
  border-color: #cfd6e4;
  background: var(--tk-bg);
}

/* Label + radio – wyrównanie */
#payment ul.payment_methods li > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--tk-text);
}

/* Stripe box (to co wklejasz z inspektora) */
.payment_box.payment_method_stripe {
  background: #fff;
  border: 1px dashed #d7deea;
  border-radius: 10px;
  padding: 14px;
  margin-top: 10px;
}

/* Kontener Stripe Elements */
.payment_box.payment_method_stripe .wc-upe-form {
  display: grid;
  gap: 12px;
}

/* Ramka dla pola karty (StripeElement otoczony divem) */
.payment_box.payment_method_stripe .StripeElement {
  padding: 12px 14px;
  border: 1.5px solid var(--tk-border) !important;
  border-radius: 10px !important;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

/* Focus / valid / invalid – Stripe dodaje klasy */
.payment_box.payment_method_stripe .StripeElement--focus {
  border-color: var(--tk-primary) !important;
  box-shadow: 0 0 0 4px rgba(14,98,255,.12) !important;
}
/* Przycisk "Kupuję i płacę" – lekka poprawa */
#place_order, .woocommerce #place_order {
  background: var(--tk-primary) !important;
  border-color: var(--tk-primary) !important;
  box-shadow: 0 10px 18px rgba(14,98,255,.20);
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-weight: 700 !important;
}
#place_order:hover {
  background: var(--tk-primary-600) !important;
}

/* Zgody i privacy – spacing */
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-privacy-policy-text {
  background: var(--tk-bg);
  border: 1px solid var(--tk-border);
  border-radius: 10px;
  padding: 12px 14px;
}

/* (usunięto) Style tabel checkout - używamy domyślnych WooCommerce */


/* === Checkout: szybkie dodawanie produktów (kafelki) === */
.tk-quick-add-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:22px;
  margin-bottom:22px;
}
@media (max-width: 1024px){ .tk-quick-add-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .tk-quick-add-grid{ grid-template-columns: 1fr; } }

.tk-quick-card{
  background:#fff; border:1px solid var(--tk-border); border-radius:12px;
  padding:16px; text-align:center; box-shadow:0 6px 18px rgba(2,8,23,.05);
}
.tk-quick-card__img{
  width:150px; height:150px; object-fit:cover; border-radius:10px; margin:0 auto 12px; display:block;
}
.tk-quick-card__title{ font-weight:800; margin:6px 0 4px; }
.tk-quick-card__price{ color:#0b63b6; font-weight:800; margin-bottom:10px; }

/* ukryj krótki opis, jeśli motyw/Woo go podaje */
.tk-quick-card__desc{ display:none !important; }

/* mniejszy przycisk „DODAJ" */
.tk-quick-card .tk-btn-small{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border-radius:10px;
  background:#0b77b5; color:#fff; font-weight:800; font-size:14px;
  text-decoration:none; min-width:120px; border:2px solid #0b77b5;
}
.tk-quick-card .tk-btn-small:hover{ filter:brightness(.96); }

/* „PRZELICZ ZAMÓWIENIE" – wizualnie spójny, a nie ogromny */
#tk-recalc-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 18px; font-weight:800; border-radius:10px;
  background:#eef5ff; color:#0b63b6; border:2px solid #cfe0ff;
}
#tk-recalc-btn:hover{ background:#e2efff; }

/* mniejszy #place_order (był trochę „za duży") */
#place_order, .woocommerce #place_order{
  padding:12px 16px !important;
  font-size:15px !important;
  border-radius:12px !important;
}


/* === Checkout Upsell (nadpisania, mniejszy rozmiar) === */
.tk-ck-upsell{ padding:10px !important; border-radius:10px !important; }
.tk-ck-grid{ gap:14px !important; }

.tk-ck-card{ padding:12px !important; border-radius:10px !important; }
.tk-ck-card img{ width:120px !important; height:120px !important; }

.tk-ck-name{ font-size:12.5px !important; margin:6px 0 2px !important; }
.tk-ck-price{ font-size:12.5px !important; margin-bottom:6px !important; }

.tk-ck-btn{
  padding:9px 14px !important;
  font-size:13px !important;
  min-width:112px !important;
  border-radius:10px !important;
}
.tk-ck-btn.is-disabled{ background:#c7cdd6 !important; cursor:not-allowed !important; }

.tk-ck-actions{ margin-top:12px !important; }
.tk-ck-recalc{
  padding:9px 16px !important;
  font-size:13px !important;
  border-radius:10px !important;
}

/* siatka na mniejszych ekranach */
@media (max-width: 960px){
  .tk-ck-grid{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  .tk-ck-card img{ width:110px !important; height:110px !important; }
}
@media (max-width: 640px){
  .tk-ck-grid{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .tk-ck-actions{ justify-content:center !important; }
}

/* Ustaw wspólny „rząd" dla przycisku i linku – ładny odstęp */
.single-product form.cart {
  display: flex;
  align-items: center;
  gap: 14px;           /* odstęp między KUP TERAZ a PRZEJDŹ DO SKLEPU */
  flex-wrap: wrap;
}

/* Nasz link dziedziczy styl z .button.alt; poniżej tylko subtelne różnice,
   żeby odróżnić go jako drugą akcję (outline). Jeśli chcesz identyczny jak „Kup teraz",
   usuń poniższe trzy reguły border/background/color. */
.single-product .tk-shop-link {
  background: transparent;         /* outline-look */
  color: inherit;                  /* ten sam kolor tekstu co przycisk */
  border: 2px solid currentColor;  /* delikatna ramka */
}

/* Hover – lekki fill */
.single-product .tk-shop-link:hover {
  background: rgba(255,255,255,.08);
}

/* Na małych ekranach link pod przyciskiem, na pełną szerokość */
@media (max-width: 640px){
  .single-product form.cart { gap: 10px; }
  .single-product .tk-shop-link,
  .single-product .single_add_to_cart_button {
    width: 100%;
    text-align: center;
  }
}

.tk-cart__total {
  display: inline-block;
  min-width: 60px; /* żeby PLN nie skakał */
  text-align: right;
}

  padding: 5px;

}



/* =========================

   THANK YOU – TABELA / BOXY

   ========================= */

.tk-table{

  width:96%;

  max-width:700px;

  margin:0 auto 14px;

  border-collapse:separate;

  border-spacing:0;

  box-shadow:0 2px 10px rgba(0,112,186,.04);

}

.tk-table th{

  background:var(--tk-blue);

  color:#fff;

  padding:14px;

  text-align:left;

}

.tk-table td{

  background:#fff;

  padding:14px;

  border-bottom:1px solid #d3e7f8;

}



/* =========================

   BOX RABATU POD CHECKOUT

   ========================= */

.multibuy-discount-info{

  background:#f9f9f9;

  padding:15px;

  margin-top:20px;

  border:1px solid var(--tk-border);

  border-radius:8px;

  text-align:center;

}













/* ===== Pasek topbar (fallback gdy brak w menu) ===== */

#tk-topbar{

  position: sticky; top: 0; z-index: 9999;

  background: #0b77b5; color:#fff; box-shadow:0 2px 6px rgba(0,0,0,.08);

}

#tk-topbar .tk-topbar__inner{

  max-width:1200px; margin:0 auto; padding:10px 16px; display:flex; justify-content:flex-end; align-items:center;

}

.tk-topbar__login, .tk-login-btn{

  display:inline-flex; align-items:center; justify-content:center; gap:8px;

  height:44px; padding:0 16px; background:#fff; color:#0b77b5 !important;

  border-radius:10px; font-weight:800; text-transform:uppercase; letter-spacing:.02em;

}

.tk-topbar__login:hover, .tk-login-btn:hover{ filter:brightness(.96); }



/* =============================================
   KOSZYK WOOCOMMERCE BLOCKS – MODERN REDESIGN
   ============================================= */

/* ✅ SCOPE: wszystkie style cart tylko dla WooCommerce Blocks */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ✅ DESKTOP: Tabela produktów (card-like rows) */
.wc-block-cart-items {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  border-collapse: collapse;
  border-spacing: 0;
}

/* ✅ DESKTOP: Header tabeli — ciągły gradient bez luk */
.wc-block-cart-items thead {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

.wc-block-cart-items thead th {
  color: #ffffff !important;
  padding: 14px 16px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  border: none !important;
  background: transparent !important;
}

/* ✅ DESKTOP: Rzędy produktów */
.wc-block-cart-items tbody tr.wc-block-cart-items__row {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.wc-block-cart-items tbody tr.wc-block-cart-items__row:hover {
  background-color: #f9fafb;
}

.wc-block-cart-items tbody td {
  padding: 16px !important;
  vertical-align: middle !important;
  border: none !important;
  font-size: 15px;
}

/* ✅ Obrazki produktów */
.wc-block-cart-item__image img {
  max-width: 80px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

/* ✅ Ukryj opis produktu w koszyku — niepotrzebny, zajmuje miejsce */
.wc-block-cart .wc-block-components-product-metadata {
  display: none !important;
}

/* ✅ Nazwa produktu */
.wc-block-components-product-name {
  color: #1f2937 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.wc-block-components-product-name:hover {
  color: #3b82f6 !important;
  text-decoration: underline !important;
}

/* ✅ Ceny */
.wc-block-cart-item__total {
  font-weight: 700 !important;
  font-size: 17px !important;
  color: #1f2937 !important;
}

/* ✅ Quantity controls */
.wc-block-cart-item__quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wc-block-cart-item__quantity input[type="number"],
.wc-block-cart-item__quantity .wc-block-components-quantity-selector__input {
  width: 60px !important;
  text-align: center;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: 8px !important;
  font-weight: 600;
}

/* ✅ Przycisk usuń (desktop) */
.wc-block-cart-item__remove-link {
  color: #dc2626 !important;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  transition: all 0.2s ease;
}

.wc-block-cart-item__remove-link:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

/* ✅ SIDEBAR (desktop & mobile) */
.wc-block-cart__sidebar {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.wc-block-cart__totals-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-bottom: 16px !important;
}

/* ✅ Przycisk CTA "PRZEJDŹ DO PŁATNOŚCI" */
.wc-block-cart__submit-button,
.wc-block-cart .wc-block-components-button {
  width: 100% !important;
  min-height: 54px !important;
  background: linear-gradient(135deg, #4a4e54 0%, #3b3f44 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(74, 78, 84, 0.25) !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.wc-block-cart__submit-button:hover,
.wc-block-cart .wc-block-components-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 26px rgba(74, 78, 84, 0.35) !important;
}

/* ✅ CROSS-SELLS (może ci też zasugerować) */
.wp-block-woocommerce-cart-cross-sells-block {
  margin-top: 32px;
  padding: 24px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.wp-block-woocommerce-cart-cross-sells-block h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-bottom: 20px !important;
}

.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.cross-sells-product .wc-block-grid__product {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cross-sells-product .wc-block-grid__product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ✅ ACCESSIBILITY: Focus visible */
.wc-block-cart-item__remove-link:focus-visible,
.wc-block-cart__submit-button:focus-visible,
.wc-block-cart .wc-block-components-button:focus-visible {
  outline: 3px solid #3b82f6 !important;
  outline-offset: 2px;
}

/* ===== MOBILE: Koszyk jako stackowane karty ===== */

@media (max-width: 768px){

  body.woocommerce-cart .wp-block-woocommerce-cart,
  body.woocommerce-cart .wc-block-cart {
    padding: 12px;
  }

  /* ✅ MOBILE: Ukryj thead */
  .wc-block-cart-items thead { 
    display: none !important;
  }

  /* ✅ MOBILE: Każdy rząd jako card */
  .wc-block-cart-items tbody tr.wc-block-cart-items__row {
    display: block !important;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
  }

  .wc-block-cart-items tbody {
    display: block !important;
    background: transparent !important;
  }

  .wc-block-cart-items tbody td {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 !important;
    border: none !important;
    text-align: left !important;
  }

  /* ✅ MOBILE: Layout wewnętrzny karty */
  .wc-block-cart-item__image {
    text-align: center;
    margin-bottom: 12px;
  }

  .wc-block-cart-item__image img {
    max-width: 120px !important;
    height: auto;
  }

  .wc-block-cart-item__product {
    margin-bottom: 12px;
  }

  .wc-block-components-product-name {
    font-size: 17px !important;
    display: block;
    margin-bottom: 8px;
  }

  /* ✅ MOBILE: Quantity + Total na tej samej linii */
  .wc-block-cart-item__quantity,
  .wc-block-cart-item__total {
    display: inline-block !important;
    width: auto !important;
  }

  .wc-block-cart-item__quantity {
    margin-right: 16px;
  }

  .wc-block-cart-item__total {
    font-size: 19px !important;
    font-weight: 800 !important;
  }

  /* ✅ MOBILE: Przycisk usuń (top-right corner) */
  .wc-block-cart-item__remove-link {
    position: absolute !important;
    top: 12px;
    right: 12px;
    width: 36px !important;
    height: 36px !important;
    font-size: 20px;
    min-height: 44px !important; /* Touch target */
    min-width: 44px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  /* ✅ MOBILE: Sidebar full-width */
  .wc-block-cart__sidebar {
    width: 100%;
    margin-top: 20px;
  }

  /* ✅ MOBILE: Cross-sells responsive grid */
  .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

}

/* ✅ EXTRA SMALL MOBILE */
@media (max-width: 480px) {
  .wc-block-cart-item__image img {
    max-width: 100px !important;
  }

  .wc-block-components-product-name {
    font-size: 15px !important;
  }

  .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product {
    grid-template-columns: 1fr;
  }
}



/* ===== Sticky podsumowanie na desktopie ===== */

@media (min-width: 981px){

  .wc-block-cart .wc-block-components-sidebar{ position: sticky; top: 90px; height: fit-content; }

}



/* ===== Spójne CTA (używałeś już podobnych) ===== */

button, .button, .wp-element-button, .wc-block-components-button.contained{

  min-height:48px;

  border-radius:12px;

}



/* ===== Checkout – błędy i focus ===== */

.woocommerce-invalid input.input-text{ border-color:#ef4444; background:#fff7f7; }

input.input-text:focus, select:focus{

  outline: none; box-shadow:0 0 0 3px rgba(11,119,181,.2); border-color:#0b77b5;

}















/* ========== Checkout: Stripe UPE – clean & modern look ========== */



:root {

  --tk-primary: #0e62ff;

  --tk-primary-600: #0a4fd1;

  --tk-bg: #f7f9fc;

  --tk-border: #e5e8ef;

  --tk-text: #111827;

  --tk-muted: #6b7280;

  --tk-success: #10b981;

  --tk-danger: #ef4444;

  --tk-radius: 12px;

  --tk-shadow: 0 6px 18px rgba(16,24,40,.08);

}



/* Sekcja metod płatności */

#payment, .woocommerce-checkout #payment {

  background: #fff;

  border: 1px solid var(--tk-border);

  border-radius: var(--tk-radius);

  box-shadow: var(--tk-shadow);

  padding: 16px 16px 6px;

}



/* Każda metoda – większa klikalna strefa */

#payment ul.payment_methods li {

  list-style: none;

  margin: 6px 0 10px;

  padding: 12px 14px;

  border: 1px solid var(--tk-border);

  border-radius: 10px;

  transition: border-color .2s, background .2s;

}



#payment ul.payment_methods li:hover {

  border-color: #cfd6e4;

  background: var(--tk-bg);

}



/* Label + radio – wyrównanie */

#payment ul.payment_methods li > label {

  display: flex;

  align-items: center;

  gap: 10px;

  font-weight: 600;

  color: var(--tk-text);

}



/* Stripe box (to co wklejasz z inspektora) */

.payment_box.payment_method_stripe {

  background: #fff;

  border: 1px dashed #d7deea;

  border-radius: 10px;

  padding: 14px;

  margin-top: 10px;

}



/* Kontener Stripe Elements */

.payment_box.payment_method_stripe .wc-upe-form {

  display: grid;

  gap: 12px;

}



/* Ramka dla pola karty (StripeElement otoczony divem) */

.payment_box.payment_method_stripe .StripeElement {

  padding: 12px 14px;

  border: 1.5px solid var(--tk-border) !important;

  border-radius: 10px !important;

  background: #fff;

  transition: border-color .2s, box-shadow .2s, background .2s;

}



/* Focus / valid / invalid – Stripe dodaje klasy */

.payment_box.payment_method_stripe .StripeElement--focus {

  border-color: var(--tk-primary) !important;

  box-shadow: 0 0 0 4px rgba(14,98,255,.12) !important;

}

.payment_box.payment_method_stripe .StripeElement--complete {

  border-color: var(--tk-success) !important;

}

.payment_box.payment_method_stripe .StripeElement--invalid {

  border-color: var(--tk-danger) !important;

}

/* Przycisk "Kupuję i płacę" – lekka poprawa */

#place_order, .woocommerce #place_order {

  background: var(--tk-primary) !important;

  border-color: var(--tk-primary) !important;

  box-shadow: 0 10px 18px rgba(14,98,255,.20);

  border-radius: 12px !important;

  padding: 14px 18px !important;

  font-weight: 700 !important;

}

#place_order:hover {

  background: var(--tk-primary-600) !important;

}



/* Zgody i privacy – spacing */

.woocommerce-terms-and-conditions-wrapper,

.woocommerce-privacy-policy-text {

  background: var(--tk-bg);

  border: 1px solid var(--tk-border);

  border-radius: 10px;

  padding: 12px 14px;

}



/* Drobniejsze uspójnienia */

.woocommerce-checkout-review-order-table tfoot th,

.woocommerce-checkout-review-order-table tfoot td {

  font-size: 15px;

}

.woocommerce-checkout-review-order-table .order-total th,

.woocommerce-checkout-review-order-table .order-total td {

  font-size: 17px;

}





/* === Checkout: szybkie dodawanie produktów (kafelki) === */

.tk-quick-add-grid{

  display:grid;

  grid-template-columns: repeat(4, minmax(0,1fr));

  gap:22px;

  margin-bottom:22px;

}

@media (max-width: 1024px){ .tk-quick-add-grid{ grid-template-columns: repeat(2,1fr); } }

@media (max-width: 560px){ .tk-quick-add-grid{ grid-template-columns: 1fr; } }



.tk-quick-card{

  background:#fff; border:1px solid var(--tk-border); border-radius:12px;

  padding:16px; text-align:center; box-shadow:0 6px 18px rgba(2,8,23,.05);

}

.tk-quick-card__img{

  width:150px; height:150px; object-fit:cover; border-radius:10px; margin:0 auto 12px; display:block;

}

.tk-quick-card__title{ font-weight:800; margin:6px 0 4px; }

.tk-quick-card__price{ color:#0b63b6; font-weight:800; margin-bottom:10px; }



/* ukryj krótki opis, jeśli motyw/Woo go podaje */

.tk-quick-card__desc{ display:none !important; }



/* mniejszy przycisk „DODAJ" */

.tk-quick-card .tk-btn-small{

  display:inline-flex; align-items:center; justify-content:center;

  padding:10px 16px; border-radius:10px;

  background:#0b77b5; color:#fff; font-weight:800; font-size:14px;

  text-decoration:none; min-width:120px; border:2px solid #0b77b5;

}

.tk-quick-card .tk-btn-small:hover{ filter:brightness(.96); }



/* „PRZELICZ ZAMÓWIENIE" – wizualnie spójny, a nie ogromny */

#tk-recalc-btn{

  display:inline-flex; align-items:center; justify-content:center;

  padding:10px 18px; font-weight:800; border-radius:10px;

  background:#eef5ff; color:#0b63b6; border:2px solid #cfe0ff;

}

#tk-recalc-btn:hover{ background:#e2efff; }



/* mniejszy #place_order (był trochę „za duży") */

#place_order, .woocommerce #place_order{

  padding:12px 16px !important;

  font-size:15px !important;

  border-radius:12px !important;

}





/* === Checkout Upsell (nadpisania, mniejszy rozmiar) === */

.tk-ck-upsell{ padding:10px !important; border-radius:10px !important; }

.tk-ck-grid{ gap:14px !important; }



.tk-ck-card{ padding:12px !important; border-radius:10px !important; }

.tk-ck-card img{ width:120px !important; height:120px !important; }



.tk-ck-name{ font-size:12.5px !important; margin:6px 0 2px !important; }

.tk-ck-price{ font-size:12.5px !important; margin-bottom:6px !important; }



.tk-ck-btn{

  padding:9px 14px !important;

  font-size:13px !important;

  min-width:112px !important;

  border-radius:10px !important;

}

.tk-ck-btn.is-disabled{ background:#c7cdd6 !important; cursor:not-allowed !important; }



.tk-ck-actions{ margin-top:12px !important; }

.tk-ck-recalc{

  padding:9px 16px !important;

  font-size:13px !important;

  border-radius:10px !important;

}



/* siatka na mniejszych ekranach */

@media (max-width: 960px){

  .tk-ck-grid{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; }

  .tk-ck-card img{ width:110px !important; height:110px !important; }

}

@media (max-width: 640px){

  .tk-ck-grid{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }

  .tk-ck-actions{ justify-content:center !important; }

}



/* Ustaw wspólny „rząd" dla przycisku i linku – ładny odstęp */

.single-product form.cart {

  display: flex;

  align-items: center;

  gap: 14px;           /* odstęp między KUP TERAZ a PRZEJDŹ DO SKLEPU */

  flex-wrap: wrap;

}



/* Nasz link dziedziczy styl z .button.alt; poniżej tylko subtelne różnice,

   żeby odróżnić go jako drugą akcję (outline). Jeśli chcesz identyczny jak „Kup teraz",

   usuń poniższe trzy reguły border/background/color. */

.single-product .tk-shop-link {

  background: transparent;         /* outline-look */

  color: inherit;                  /* ten sam kolor tekstu co przycisk */

  border: 2px solid currentColor;  /* delikatna ramka */

}



/* Hover – lekki fill */

.single-product .tk-shop-link:hover {

  background: rgba(255,255,255,.08);

}



/* Na małych ekranach link pod przyciskiem, na pełną szerokość */

@media (max-width: 640px){

  .single-product form.cart { gap: 10px; }

  .single-product .tk-shop-link,

  .single-product .single_add_to_cart_button {

    width: 100%;

    text-align: center;

  }

}



.tk-cart__total {

  display: inline-block;

  min-width: 60px; /* żeby PLN nie skakał */

  text-align: right;

}



/* =========================
   SINGLE PRODUCT - BUTTONS FIX
   User request: Ukryj POMOC, popraw style przycisków
   ========================= */

/* Ukryj przycisk POMOC */
/* Note: JavaScript handles text-based hiding (see tk-app.js) */
.single-product .product .cart .button[onclick*="pomoc"],
.single-product .product .cart a[href*="pomoc"],
.single-product .product .cart a[href*="help"] {
    display: none !important;
}

/* Przyciski na stronie produktu - KUP TERAZ i PRZEJDŹ DO SKLEPU */
/* IMPORTANT żeby nadpisać style z parent theme (izeetak) */

/* Przycisk KUP TERAZ (primary button) */
.single-product .product .cart .single_add_to_cart_button,
.single-product .product .cart button[type="submit"].button,
.single-product .product .cart button.button.alt {
    background-color: #0071e3 !important;
    color: #ffffff !important;
    border: 2px solid #0071e3 !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.single-product .product .cart .single_add_to_cart_button:hover,
.single-product .product .cart button[type="submit"].button:hover {
    background-color: #005bb5 !important;
    border-color: #005bb5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3) !important;
}

/* Przycisk PRZEJDŹ DO SKLEPU (outline button) */
.single-product .product .cart .tk-shop-link,
.single-product .product .cart a.button:not(.single_add_to_cart_button) {
    background-color: transparent !important;
    color: #0071e3 !important;
    border: 2px solid #0071e3 !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.single-product .product .cart .tk-shop-link:hover,
.single-product .product .cart a.button:not(.single_add_to_cart_button):hover {
    background-color: #0071e3 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3) !important;
}

/* Spacing między przyciskami */
.single-product .product .cart .button,
.single-product .product .cart .tk-shop-link {
    margin: 10px 10px 10px 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .single-product .product .cart .single_add_to_cart_button,
    .single-product .product .cart .tk-shop-link,
    .single-product .product .cart button.button,
    .single-product .product .cart a.button {
        width: 100% !important;
        margin: 10px 0 !important;
        text-align: center !important;
    }
}

/* === TK: Payment gateway label enhancements === */
.woocommerce-checkout .tk-gateway-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.woocommerce-checkout .tk-gateway-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}

.woocommerce-checkout .tk-gateway-icons img {
    display: block;
    height: 24px;
    width: auto;
    object-fit: contain;
    margin: 0;
}
