/* ============================================================
   CUKRFREE POPUP
   Font: Rubik is already loaded site-wide by the Minimog theme,
   so this file only references it — it does not load it.
   ============================================================ */


/* ============================================================
   RESET
   ============================================================ */
.cf-overlay,
.cf-overlay *,
.cf-overlay *::before,
.cf-overlay *::after,
.cf-teaser,
.cf-teaser *,
.cf-teaser *::before,
.cf-teaser *::after {
  all: revert !important;
  box-sizing: border-box !important;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  line-height: normal !important;
}

/* ============================================================
   OVERLAY
   ============================================================ */
.cf-overlay {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  z-index: 999998 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  margin: 0 !important;
  border: none !important;
}
.cf-overlay.cf-open {
  display: flex !important;
  animation: cf-overlay-in 0.3s ease !important;
}
@keyframes cf-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   POPUP BOX
   ============================================================ */
.cf-overlay .cf-popup {
  background: #E9E3DD !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 900px !important;
  max-height: 90vh !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  animation: cf-popup-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
@keyframes cf-popup-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   CLOSE BUTTON
   ============================================================ */
.cf-overlay .cf-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #9b9590 !important;
  background-color: #9b9590 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 3 !important;
  transition: background 0.2s, transform 0.2s !important;
  box-shadow: none !important;
  color: #1a1a1a !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.cf-overlay .cf-close:hover {
  background: #7a7570 !important;
  background-color: #7a7570 !important;
  transform: scale(1.05) !important;
}
.cf-overlay .cf-close svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  color: #1a1a1a !important;
  stroke: #1a1a1a !important;
  fill: none !important;
  display: block !important;
}

/* ============================================================
   LEFT COLUMN – CONTENT
   ============================================================ */
.cf-overlay .cf-content {
  flex: 1 1 50% !important;
  padding: 64px 56px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 480px !important;
  background: transparent !important;
}

/* ============================================================
   RIGHT COLUMN – IMAGE
   ============================================================ */
.cf-overlay .cf-image {
  flex: 1 1 50% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 480px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* ============================================================
   STEPS VISIBILITY
   ============================================================ */
.cf-overlay .cf-step {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cf-overlay .cf-step.cf-active {
  display: block !important;
  animation: cf-step-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
@keyframes cf-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.cf-overlay .cf-title {
  font-family: 'Rubik', sans-serif !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  color: #1a1a1a !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
  text-transform: none !important;
  font-style: normal !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
}

.cf-overlay .cf-lead {
  font-family: 'Rubik', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #1a1a1a !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
  max-width: 420px !important;
  text-align: left !important;
  background: transparent !important;
}

.cf-overlay .cf-lead strong {
  font-weight: 700 !important;
  color: #1a1a1a !important;
  font-family: 'Rubik', sans-serif !important;
}

/* ============================================================
   PRIMARY BUTTON (pill)
   ============================================================ */
.cf-overlay .cf-btn {
  font-family: 'Rubik', sans-serif !important;
  background: #D50060 !important;
  background-color: #D50060 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 20px 40px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  width: 100% !important;
  max-width: 440px !important;
  display: block !important;
  margin: 0 !important;
  transition: background 0.2s, transform 0.1s !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-align: center !important;
  line-height: 1 !important;
  outline: none !important;
}
.cf-overlay .cf-btn:hover:not(:disabled),
.cf-overlay .cf-btn:focus:not(:disabled) {
  background: #B00050 !important;
  background-color: #B00050 !important;
  color: #FFFFFF !important;
}
.cf-overlay .cf-btn:active:not(:disabled) {
  transform: scale(0.98) !important;
}
.cf-overlay .cf-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

/* ============================================================
   SECONDARY TEXT BUTTON
   ============================================================ */
.cf-overlay .cf-btn-text {
  font-family: 'Rubik', sans-serif !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  color: #1a1a1a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  padding: 18px !important;
  margin: 4px 0 0 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: 440px !important;
  text-align: center !important;
  text-decoration: none !important;
  line-height: 1 !important;
  box-shadow: none !important;
  outline: none !important;
}
.cf-overlay .cf-btn-text:hover,
.cf-overlay .cf-btn-text:focus {
  opacity: 0.6 !important;
  background: none !important;
  color: #1a1a1a !important;
}

/* ============================================================
   EMAIL INPUT (pill)
   ============================================================ */
.cf-overlay .cf-input {
  font-family: 'Rubik', sans-serif !important;
  width: 100% !important;
  max-width: 440px !important;
  padding: 20px 28px !important;
  border: 1.5px solid rgba(26, 26, 26, 0.15) !important;
  border-radius: 999px !important;
  background: transparent !important;
  background-color: transparent !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  margin: 0 0 14px 0 !important;
  display: block !important;
  transition: border-color 0.2s !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 0 !important;
  outline: none !important;
}
.cf-overlay .cf-input::placeholder {
  color: rgba(26, 26, 26, 0.35) !important;
  font-weight: 500 !important;
  font-family: 'Rubik', sans-serif !important;
  opacity: 1 !important;
}
.cf-overlay .cf-input:focus {
  outline: none !important;
  border-color: #D50060 !important;
  box-shadow: none !important;
}
.cf-overlay .cf-input.cf-invalid {
  border-color: #c62828 !important;
}

/* ============================================================
   GDPR TEXT
   ============================================================ */
.cf-overlay .cf-gdpr {
  font-family: 'Rubik', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: rgba(26, 26, 26, 0.7) !important;
  line-height: 1.55 !important;
  margin: 20px 0 0 0 !important;
  padding: 0 !important;
  max-width: 440px !important;
  text-align: left !important;
}
.cf-overlay .cf-gdpr a {
  color: inherit !important;
  text-decoration: underline !important;
  font-family: 'Rubik', sans-serif !important;
}
.cf-overlay .cf-gdpr a:hover {
  opacity: 0.7 !important;
}

/* ============================================================
   ERROR MESSAGE
   ============================================================ */
.cf-overlay .cf-error {
  font-family: 'Rubik', sans-serif !important;
  color: #c62828 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin: 4px 0 12px 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* ============================================================
   HONEYPOT (hidden from humans & theme)
   ============================================================ */
.cf-overlay .cf-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .cf-overlay {
    padding: 16px !important;
  }
  .cf-overlay .cf-popup {
    max-width: 400px !important;
    flex-direction: column !important;
  }
  .cf-overlay .cf-image {
    display: none !important;
  }
  .cf-overlay .cf-content {
    padding: 64px 32px 48px !important;
    text-align: center !important;
    align-items: center !important;
    min-height: 0 !important;
  }
  .cf-overlay .cf-title {
    font-size: 24px !important;
    text-align: center !important;
  }
  .cf-overlay .cf-lead {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .cf-overlay .cf-gdpr {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .cf-overlay .cf-btn {
    padding: 18px 32px !important;
    font-size: 13px !important;
  }
}

/* ============================================================
   CFX GIFT TEASER – nový, izolovaný od theme buttonů
   ============================================================ */
#cfx-gift {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  background: #D50060 !important;
  cursor: pointer !important;
  z-index: 999997 !important;
  box-shadow: 0 6px 24px rgba(213, 0, 96, 0.35), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  display: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#cfx-gift.cfx-show {
  display: block !important;
}
#cfx-gift:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 8px 32px rgba(213, 0, 96, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}
#cfx-gift .cfx-gift-ring {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: #D50060 !important;
  opacity: 0.5;
  z-index: 1 !important;
  pointer-events: none !important;
  animation: cfx-ring 2s ease-out infinite;
}
#cfx-gift .cfx-gift-icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 28px !important;
  height: 28px !important;
  margin: -14px 0 0 -14px !important;
  z-index: 2 !important;
  pointer-events: none !important;
  line-height: 0 !important;
}
#cfx-gift .cfx-gift-icon svg {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
}
@keyframes cfx-ring {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 720px) {
  #cfx-gift {
    bottom: 16px !important;
    right: 16px !important;
    width: 54px !important;
    height: 54px !important;
  }
  #cfx-gift .cfx-gift-icon,
  #cfx-gift .cfx-gift-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
  #cfx-gift .cfx-gift-icon {
    margin: -12px 0 0 -12px !important;
  }
}

/* ============================================================
   BODY SCROLL LOCK (když je popup otevřen)
   ============================================================ */
body.cf-no-scroll {
  overflow: hidden !important;
}
