/**
 * Max Trade Poland - zgodnosc prawna (cookies, odstapienie od umowy, dopiski w stopce).
 * Styl jak w nowym koszyku/checkoucie (mtfastcheckout):
 * granat #003b56, czerwien #c80436, tekst #0f172a, ramki #e2e8f0, karty z promieniem 8px.
 */

/* Stary baner motywu - zastepuje go nowy */
.tvcmscookies-notice,
.tvcookies-notice-img-wrapper,
#tvcmscookies-notice { display: none !important; }

/* ===================================================================== BANER */
.mtcc-banner,
.mtcc-modal,
.mtw-wrapper {
  font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #0f172a;
  box-sizing: border-box;
}
.mtcc-banner *,
.mtcc-modal *,
.mtw-wrapper * { box-sizing: border-box; }

.mtcc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1999999000; /* ponizej okna wyboru kraju (1999999999), powyzej reszty strony */
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.22);
}
.mtcc-banner-body {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
}
.mtcc-banner-text { flex: 1 1 auto; min-width: 0; }
.mtcc-banner-title { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; color: #0f172a; }
.mtcc-banner-text p { margin: 0 0 4px; font-size: 13px; line-height: 1.55; color: #475569; }
.mtcc-links { font-size: 13px; }
.mtcc-links a { color: #003b56; font-weight: 500; text-decoration: underline; }
.mtcc-links a:hover { color: #c80436; }

.mtcc-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 220px; }
.mtcc-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 2px solid #003b56;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
/* "Odrzuc" i "Akceptuj" maja identyczny wyglad (rowna waga wizualna) */
.mtcc-btn-primary { background: #003b56; color: #fff; }
.mtcc-btn-primary:hover { background: #042a38; border-color: #042a38; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.mtcc-btn-ghost { background: #fff; color: #003b56; }
.mtcc-btn-ghost:hover { background: #f1f5f9; }
.mtcc-btn:focus-visible,
.mtcc-x:focus-visible { outline: 3px solid #c80436; outline-offset: 2px; }

@media (max-width: 767px) {
  .mtcc-banner { left: 8px; right: 8px; bottom: 8px; max-height: 80vh; overflow-y: auto; }
  .mtcc-banner-body { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .mtcc-banner-title { font-size: 15px; margin-bottom: 2px; }
  .mtcc-banner-text p { font-size: 12px; line-height: 1.45; margin-bottom: 2px; }
  .mtcc-actions { flex: none; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .mtcc-actions .mtcc-btn { width: auto; flex: 1 1 calc(50% - 4px); min-height: 44px; padding: 8px 10px; font-size: 13px; }
  .mtcc-actions .mtcc-btn-ghost { flex: 1 1 100%; min-height: 40px; }
}

/* ===================================================================== MODAL */
html.mtcc-lock { overflow: hidden; }
.mtcc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mtcc-modal-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.35);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mtcc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.mtcc-modal-head h2 { margin: 0; font-size: 18px; font-weight: 600; color: #0f172a; }
.mtcc-x { background: none; border: 0; font-size: 28px; line-height: 1; color: #64748b; cursor: pointer; padding: 0 6px; border-radius: 4px; }
.mtcc-x:hover { color: #0f172a; }
.mtcc-modal-body { padding: 16px 20px; overflow-y: auto; }
.mtcc-intro { font-size: 13px; line-height: 1.6; color: #475569; margin: 0 0 14px; }
.mtcc-cat { border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.mtcc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mtcc-cat-title { font-size: 14px; font-weight: 600; color: #0f172a; margin: 0; cursor: pointer; }
.mtcc-cat-desc { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: #64748b; }
.mtcc-always { font-size: 12px; font-weight: 600; color: #003b56; background: #e6f0f4; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.mtcc-switch { position: relative; display: inline-block; width: 46px; height: 26px; margin: 0; flex-shrink: 0; }
.mtcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.mtcc-slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: background 0.2s ease; }
.mtcc-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.mtcc-switch input:checked + .mtcc-slider { background: #003b56; }
.mtcc-switch input:checked + .mtcc-slider::before { transform: translateX(20px); }
.mtcc-switch input:focus-visible + .mtcc-slider { outline: 3px solid #c80436; outline-offset: 2px; }
.mtcc-modal-foot {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}
.mtcc-modal-foot .mtcc-btn { flex: 1 1 0; }
@media (max-width: 575px) {
  .mtcc-modal-foot { flex-direction: column; }
}

/* ================================================== STOPKA / NEWSLETTER / FORMY */
.tvfooter-addresses .mtcc-reg { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; opacity: 0.8; }

/* Przycisk "Odstap od umowy tutaj" (stopka) */
.mtcc-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 18px;
  border: 2px solid #c80436; border-radius: 6px; background: #fff; color: #c80436 !important;
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  text-decoration: none !important; transition: background-color 0.2s ease, color 0.2s ease;
}
.mtcc-cta-btn:hover { background: #c80436; color: #fff !important; }
.mtcc-account-cta { margin-top: 14px; }

/* Newsletter: zgoda w jednej linii + rozwijana informacja */
.mtcc-nl-consent { margin-top: 10px; text-align: left; }
.mtcc-nl-consent label { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12px; line-height: 1.45; cursor: pointer; }
.mtcc-nl-consent input[type=checkbox] { flex: 0 0 auto; margin-top: 2px; width: 16px; height: 16px; }
.mtcc-nl-consent a { color: inherit; text-decoration: underline; }
.mtcc-nl-details { margin-top: 6px; font-size: 11.5px; }
.mtcc-nl-details summary { cursor: pointer; opacity: 0.8; list-style: none; text-decoration: underline; }
.mtcc-nl-details summary::-webkit-details-marker { display: none; }
.mtcc-nl-info { margin: 6px 0 0; font-size: 11px; line-height: 1.5; opacity: 0.85; }

/* ---- Wariant A: pasek prawny nad znakiem praw autorskich */
.mtcc-legal-a { background: #f1f5f9; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; font-family: 'Poppins', sans-serif; }
.mtcc-legal-a .mtcc-legal-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 14px 0; }
.mtcc-legal-a .mtcc-legal-data { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 12.5px; line-height: 1.5; color: #475569; }
.mtcc-legal-a .mtcc-legal-data strong { color: #0f172a; font-weight: 600; }
.mtcc-legal-a .mtcc-legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 12.5px; }
.mtcc-legal-a .mtcc-legal-actions a:not(.mtcc-cta-btn) { color: #475569; text-decoration: underline; }
.mtcc-legal-a .mtcc-legal-actions a:not(.mtcc-cta-btn):hover { color: #003b56; }

/* ---- Wariant B: kompakt (dane w kolumnie, przycisk w "Twoje konto", linki przy copyright) */
.mtcc-legal-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding: 10px 15px; font-size: 12px; color: #64748b; border-top: 1px solid #e2e8f0; }
.mtcc-legal-b a { color: #64748b; text-decoration: underline; }
.mtcc-legal-b a:hover { color: #003b56; }

/* ---- Wariant D: spokojny pasek (wszystkie linki jednakowo, bez przyciskow) */
.mtcc-legal-d { background: #f8fafc; border-top: 1px solid #e2e8f0; font-family: 'Poppins', sans-serif; }
.mtcc-legal-d .mtcc-legal-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding: 12px 0; }
.mtcc-legal-d .mtcc-legal-data { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 12px; line-height: 1.5; color: #64748b; }
.mtcc-legal-d .mtcc-legal-data strong { color: #475569; font-weight: 600; }
.mtcc-legal-d .mtcc-legal-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12px; }
.mtcc-legal-d .mtcc-legal-actions a { color: #64748b; text-decoration: underline; }
.mtcc-legal-d .mtcc-legal-actions a:hover { color: #003b56; }

/* ---- Wariant E: jedna cienka linia, wycentrowana */
.mtcc-legal-e { padding: 14px 0 10px; text-align: center; font-family: 'Poppins', sans-serif; border-top: 1px solid #e2e8f0; }
.mtcc-legal-e p { margin: 0; font-size: 12px; line-height: 1.7; color: #64748b; }
.mtcc-legal-e .mtcc-e-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; margin-top: 2px; }
.mtcc-legal-e .mtcc-e-links a { color: #64748b; text-decoration: underline; }
.mtcc-legal-e .mtcc-e-links a:hover { color: #003b56; }

/* ---- Wariant C: trzy karty jak w koszyku nad kolumnami stopki */
.mtcc-legal-c { padding: 8px 0 4px; font-family: 'Poppins', sans-serif; }
.mtcc-legal-c .mtcc-fcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1240px; margin: 0 auto 10px; padding: 0 15px; }
.mtcc-fcard { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); font-size: 13px; line-height: 1.6; color: #475569; }
.mtcc-fcard h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #0f172a; }
.mtcc-fcard p { margin: 0; }
.mtcc-fcard a:not(.mtcc-cta-btn) { color: #003b56; }
.mtcc-fcard-cta .mtcc-cta-btn { margin-top: 12px; }
.mtcc-legal-c .mtcc-legal-links { display: flex; justify-content: center; gap: 4px 20px; flex-wrap: wrap; font-size: 12px; padding-bottom: 6px; }
.mtcc-legal-c .mtcc-legal-links a { color: #64748b; text-decoration: underline; }
@media (max-width: 991px) { .mtcc-legal-c .mtcc-fcards { grid-template-columns: 1fr; } }
.mtcc-form-info { margin-top: 14px; padding: 10px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }
.mtcc-form-info p { margin: 0; font-size: 12px; line-height: 1.55; color: #64748b; }
.mtcc-form-info a { color: #003b56; text-decoration: underline; font-weight: 500; }
.mtcc-form-info a:hover { color: #c80436; }
.mt-terms-text.mtcc-withdraw-note { margin-top: 8px; }

/* ============================================================ STRONA ODSTAPIENIA */
body#module-mtcompliance-withdrawal #left-column,
body#module-mtcompliance-withdrawal #right-column { display: none !important; }
body#module-mtcompliance-withdrawal #content-wrapper { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }

.mtw-wrapper { max-width: 1100px; margin: 0 auto 48px; padding: 0 15px; }
.mtw-title { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 600; color: #0f172a; margin: 8px 0 8px; }
.mtw-title i { font-size: 30px; color: #003b56; }
.mtw-lead { font-size: 14.5px; line-height: 1.65; color: #475569; max-width: 820px; margin: 0 0 22px; }
.mtw-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.mtw-main { flex: 1 1 560px; min-width: 0; }
.mtw-side { flex: 0 1 340px; min-width: 260px; }

.mtw-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); margin-bottom: 24px; overflow: hidden; }
.mtw-card-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.mtw-step { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #003b56; color: #fff; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.mtw-step.is-done { background: #16a34a; }
.mtw-card-title { font-size: 18px; font-weight: 600; color: #0f172a; margin: 0; }
.mtw-card-body { padding: 20px; }

.mtw-row { display: flex; flex-wrap: wrap; margin: 0 -8px 14px; }
.mtw-col { padding: 0 8px; flex: 1 1 100%; }
@media (min-width: 768px) { .mtw-col.half { flex: 0 0 50%; max-width: 50%; } }
.mtw-label { display: block; font-size: 13px; font-weight: 500; color: #475569; margin-bottom: 6px; }
.mtw-label .req { color: #c80436; }
.mtw-input, .mtw-textarea {
  display: block; width: 100%; font-family: inherit; font-size: 14px; color: #0f172a;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 12px; min-height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mtw-textarea { min-height: 96px; resize: vertical; }
.mtw-input:focus, .mtw-textarea:focus { outline: none; border-color: #003b56; box-shadow: 0 0 0 3px rgba(0, 59, 86, 0.15); }
.mtw-hint { display: block; font-size: 12px; color: #64748b; margin-top: 4px; }
.mtw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mtw-radio { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 6px; margin: 0 0 8px; cursor: pointer; font-size: 14px; font-weight: 500; color: #0f172a; }
.mtw-radio input { margin-top: 3px; }
.mtw-radio.is-active { border-color: #003b56; background: #f1f7fa; }

.mtw-errors { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 6px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.mtw-errors ul { margin: 0; padding-left: 18px; }

.mtw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.mtw-btn {
  appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border-radius: 6px; font-family: inherit; font-size: 15px; font-weight: 600;
  letter-spacing: 0.4px; cursor: pointer; border: 0; text-decoration: none !important;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.mtw-btn-primary { background: #003b56; color: #fff !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); text-transform: uppercase; }
.mtw-btn-primary:hover { background: #042a38; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }
.mtw-btn-danger { background: #c80436; color: #fff !important; box-shadow: 0 4px 12px rgba(200, 4, 54, 0.25); text-transform: uppercase; }
.mtw-btn-danger:hover { background: #a2032b; transform: translateY(-1px); }
.mtw-btn-ghost { background: #fff; color: #003b56 !important; border: 2px solid #003b56; }
.mtw-btn-ghost:hover { background: #f1f5f9; }
.mtw-btn:focus-visible { outline: 3px solid #c80436; outline-offset: 2px; }

.mtw-summary { margin: 0 0 18px; padding: 0; list-style: none; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.mtw-summary li { display: flex; gap: 12px; padding: 11px 14px; font-size: 14px; border-bottom: 1px solid #f1f5f9; }
.mtw-summary li:last-child { border-bottom: 0; }
.mtw-summary .k { flex: 0 0 38%; color: #64748b; }
.mtw-summary .v { flex: 1 1 auto; font-weight: 500; color: #0f172a; word-break: break-word; }
.mtw-note { font-size: 13px; line-height: 1.6; color: #475569; margin: 0 0 16px; }

.mtw-ok { display: flex; gap: 14px; align-items: flex-start; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 16px 18px; margin-bottom: 20px; }
.mtw-ok i { color: #16a34a; font-size: 32px; }
.mtw-ok h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: #14532d; }
.mtw-ok p { margin: 0 0 4px; font-size: 14px; color: #166534; line-height: 1.55; }
.mtw-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 6px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; line-height: 1.55; }

.mtw-side .mtw-card-body { font-size: 13px; line-height: 1.65; color: #475569; }
.mtw-side h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; color: #0f172a; }
.mtw-side p { margin: 0 0 12px; }
.mtw-side details summary { cursor: pointer; font-weight: 600; color: #003b56; font-size: 13px; }
.mtw-side details p { margin-top: 8px; font-size: 12.5px; }
.mtw-privacy { font-size: 12px; color: #64748b; line-height: 1.55; margin-top: 14px; }
.mtw-privacy a { color: #003b56; text-decoration: underline; }

/* ============================================================== STRONY CMS */
.mt-cms-native { font-family: 'Poppins', sans-serif; color: #0f172a; max-width: 900px; margin: 0 auto 40px; }
.mt-cms-native h1 { font-size: 26px; font-weight: 600; margin: 0 0 12px; }
.mt-cms-native h2 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; color: #0f172a; }
.mt-cms-native h3 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; color: #003b56; }
.mt-cms-native p, .mt-cms-native li { font-size: 14.5px; line-height: 1.7; color: #334155; }
.mt-cms-native ul, .mt-cms-native ol { padding-left: 22px; margin: 0 0 14px; }
.mt-cms-native a { color: #003b56; text-decoration: underline; }
.mt-cms-native a:hover { color: #c80436; }
.mt-cms-native .mtc-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); padding: 18px 20px; margin: 0 0 18px; }
.mt-cms-native .mtc-card h2, .mt-cms-native .mtc-card h3 { margin-top: 0; }
.mt-cms-native table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.mt-cms-native th, .mt-cms-native td { border: 1px solid #e2e8f0; padding: 9px 12px; text-align: left; vertical-align: top; }
.mt-cms-native th { background: #f1f5f9; font-weight: 600; }
.mt-cms-native .mtc-note { font-size: 12.5px; color: #64748b; }
.mt-cms-native .mtc-btn { display: inline-block; background: #003b56; color: #fff !important; padding: 12px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.mt-cms-native .mtc-btn:hover { background: #042a38; }
.mt-cms-native .mtc-danger { background: #c80436; }
.mt-cms-native .mtc-danger:hover { background: #a2032b; }

/* ======================================================================
   JEDNOLITY STYL OKIEN (wspolny z koszykiem / checkoutem / banerem cookies):
   modal wyboru kraju (modul productcatalogmassedit: .pcme-*) i lista krajow w naglowku.
   Tokeny: granat #003b56, czerwien #c80436, tekst #0f172a, ramki #e2e8f0, promien 8px.
   Reguly maja wyzsza specyficznosc niz CSS modulu pcme (html body ...), wiec nie trzeba go zmieniac.
   ====================================================================== */

/* Tlo + karta modalu */
html body .pcme-country-modal-backdrop {
  background-color: rgba(15, 23, 42, 0.5) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  backdrop-filter: blur(4px) !important;
}
html body .pcme-country-modal-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.35) !important;
  padding: 0 !important;
  width: 520px !important;
  max-height: 92vh;
  overflow: hidden auto;
  font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
}
/* Naglowek jak .mt-card-header */
html body .pcme-modal-header {
  padding: 16px 56px 14px 20px !important;
  margin: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #fff;
}
html body .pcme-modal-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin: 0 0 2px !important;
  letter-spacing: 0 !important;
}
html body .pcme-modal-subtitle {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}
/* Przycisk zamkniecia: identyczny w calym serwisie */
html body .pcme-country-modal-close,
html body .mtcc-x {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 20px !important;
  line-height: 30px !important;
  font-weight: 400 !important;
  border: 0 !important;
  padding: 0 !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}
html body .pcme-country-modal-close:hover,
html body .mtcc-x:hover { background: #e2e8f0 !important; color: #0f172a !important; transform: none !important; }
.mtcc-modal-head { position: relative; }

/* Tresc modalu */
html body .pcme-modal-notice {
  margin: 16px 20px 0 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  color: #475569 !important;
}
html body .pcme-modal-notice strong { color: #003b56 !important; font-weight: 600 !important; }
html body .pcme-country-section-title {
  margin: 16px 20px 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  letter-spacing: 0.4px !important;
}
html body .pcme-country-grid {
  margin: 0 !important;
  padding: 2px 20px 4px !important;
  gap: 8px !important;
  max-height: 320px;
}
/* Pozycje krajow = karty jak pola wyboru w checkoucie */
html body .pcme-country-item {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  transform: none !important;
  box-shadow: none !important;
}
html body .pcme-country-item:hover {
  background: #f8fafc !important;
  border-color: #003b56 !important;
  box-shadow: 0 2px 8px rgba(0, 59, 86, 0.08) !important;
}
html body .pcme-country-item.is-recommended { border-color: #003b56 !important; background: #f1f7fa !important; }
html body .pcme-country-name-text { font-size: 14px !important; font-weight: 600 !important; color: #0f172a !important; }
html body .pcme-country-item:hover .pcme-country-name-text { color: #003b56 !important; }
html body .pcme-country-meta { font-size: 12px !important; color: #64748b !important; }
html body .pcme-flag-icon { background: #fff !important; border: 1px solid #e2e8f0 !important; border-radius: 6px !important; }
html body .pcme-country-item:hover .pcme-flag-icon { border-color: #cbd5e1 !important; background: #fff !important; }
html body .pcme-badge-current,
html body .pcme-badge-recommended {
  background: #e6f0f4 !important;
  color: #003b56 !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
}
/* Przyciski jak w banerze / koszyku */
html body .pcme-modal-actions { padding: 8px 20px 0 !important; gap: 8px !important; }
html body .pcme-btn-primary {
  min-height: 48px;
  background: #003b56 !important;
  border: 2px solid #003b56 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  box-shadow: none !important;
}
html body .pcme-btn-primary:hover { background: #042a38 !important; border-color: #042a38 !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important; }
html body .pcme-btn-secondary {
  min-height: 44px;
  background: #fff !important;
  color: #003b56 !important;
  border: 2px solid #003b56 !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
html body .pcme-btn-secondary:hover { background: #f1f5f9 !important; border-color: #003b56 !important; color: #003b56 !important; }
html body .pcme-modal-footer { margin: 12px 20px 0 !important; padding: 12px 0 18px !important; border-top: 1px solid #f1f5f9 !important; }
html body .pcme-privacy-link { color: #64748b !important; font-size: 12px !important; }
html body .pcme-privacy-link:hover { color: #003b56 !important; }
@media (max-width: 480px) {
  html body .pcme-country-modal-card { width: 94vw !important; }
  html body .pcme-modal-title { font-size: 16px !important; }
  html body .pcme-country-grid { padding-left: 14px !important; padding-right: 14px !important; }
  html body .pcme-modal-notice, html body .pcme-country-section-title, html body .pcme-modal-footer { margin-left: 14px !important; margin-right: 14px !important; }
  html body .pcme-modal-actions { padding-left: 14px !important; padding-right: 14px !important; }
}

/* Lista krajow w naglowku (rozwijana) */
html body .tvcms-header-language .tv-language-dropdown,
html body #tvcmsdesktop-language-selector .tv-language-dropdown,
html body #tvcmsmobile-language-selector .tv-language-dropdown {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14) !important;
  padding: 6px !important;
  min-width: 180px !important;
  width: auto !important;
  max-width: calc(100vw - 16px) !important;
  overflow: visible !important;
  left: auto !important;
  right: 0 !important; /* lista zawsze miesci sie w oknie (przycisk jest przy prawej krawedzi) */
}
html body .tvcms-header-language .tv-language-dropdown li a,
html body #tvcmsdesktop-language-selector .tv-language-dropdown li a,
html body #tvcmsmobile-language-selector .tv-language-dropdown li a { white-space: nowrap; }
html body .tvcms-header-language .tv-language-dropdown li a,
html body #tvcmsdesktop-language-selector .tv-language-dropdown li a,
html body #tvcmsmobile-language-selector .tv-language-dropdown li a {
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 500;
  border-radius: 6px !important;
  padding: 8px 10px !important;
}
html body .tvcms-header-language .tv-language-dropdown li a:hover,
html body #tvcmsdesktop-language-selector .tv-language-dropdown li a:hover,
html body #tvcmsmobile-language-selector .tv-language-dropdown li a:hover {
  background: #f1f5f9 !important;
  color: #003b56 !important;
}
html body .tvcms-header-language .tv-language-dropdown li.current a,
html body #tvcmsdesktop-language-selector .tv-language-dropdown li.current a,
html body #tvcmsmobile-language-selector .tv-language-dropdown li.current a {
  background: #e6f0f4 !important;
  color: #003b56 !important;
  font-weight: 600 !important;
}
html body .pcme-lang-label { color: #475569 !important; font-weight: 500 !important; }

/* Baner cookies i modal ustawien: ten sam backdrop co modal kraju */
.mtcc-modal { background: rgba(15, 23, 42, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mtcc-modal-card { max-width: 560px; }
