/* =====================================================
   Seks Dylematy – floating search pill with icon (v2)
   Paste at the END of Appearance → Customize → Additional CSS
   Delete ALL earlier search CSS first.
   /* =====================================================
   Seks Dylematy – floating search with pink "Szukaj" button (v4)
   For the new Search block (class: sd-search) in Stopka 1.
   Paste at the END of Appearance → Customize → Additional CSS
   Delete ALL earlier search CSS first.
   ===================================================== */

/* Position: top-right, stays visible while scrolling */
form.sd-search {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  z-index: 9999 !important;
  width: 360px !important;
  max-width: calc(100vw - 24px) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}

.admin-bar form.sd-search {
  top: 56px !important;
}

/* The pill wrapper */
form.sd-search .wp-block-search__inside-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 5px 5px 5px 20px !important;
  background: #ffffff !important;
  border: 1px solid #ecdce5 !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(29, 26, 30, .18) !important;
  box-sizing: border-box !important;
  transition: box-shadow .25s ease, border-color .25s ease !important;
}

form.sd-search .wp-block-search__inside-wrapper:focus-within {
  border-color: #e6007e !important;
  box-shadow: 0 0 0 4px rgba(230, 0, 126, .15), 0 10px 28px rgba(29, 26, 30, .22) !important;
}

/* The text field */
form.sd-search .wp-block-search__input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #1d1a1e !important;
  font-size: 15px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

form.sd-search .wp-block-search__input::placeholder {
  color: #9a9095 !important;
  font-style: italic !important;
}

form.sd-search .wp-block-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none !important;
}

/* Pink "Szukaj" button with magnifier icon */
form.sd-search .wp-block-search__button {
  position: relative !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 18px 0 40px !important;
  background: #e6007e !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: background .2s ease, transform .2s ease !important;
}

form.sd-search .wp-block-search__button:hover,
form.sd-search .wp-block-search__button:focus-visible {
  background: #c2006a !important;
  transform: translateY(-1px) !important;
}

form.sd-search .wp-block-search__button:focus-visible {
  outline: 2px solid #e6007e !important;
  outline-offset: 2px !important;
}

/* magnifier lens */
form.sd-search .wp-block-search__button::before {
  content: "" !important;
  position: absolute !important;
  top: 12px !important;
  left: 17px !important;
  width: 10px !important;
  height: 10px !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}

/* magnifier handle */
form.sd-search .wp-block-search__button::after {
  content: "" !important;
  position: absolute !important;
  top: 26px !important;
  left: 27px !important;
  width: 6px !important;
  height: 2px !important;
  background: #ffffff !important;
  border-radius: 2px !important;
  transform: rotate(45deg) !important;
  pointer-events: none !important;
}

/* Phones: full-width bar pinned to the top of the screen */
@media (max-width: 700px) {
  form.sd-search {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  .admin-bar form.sd-search {
    top: 58px !important;
  }

  /* push the page down so the bar doesn't cover the header */
  body {
    padding-top: 74px !important;
  }

  form.sd-search .wp-block-search__inside-wrapper {
    padding-left: 16px !important;
  }

  form.sd-search .wp-block-search__input {
    font-size: 16px !important; /* stops iPhone zooming in */
  }
}


/* =====================================================
   Seks Dylematy – "back to top" arrow
   Paste at the END of Appearance → Customize → Additional CSS
   ===================================================== */

/* Smooth scroll up instead of a jump */
html {
  scroll-behavior: smooth;
}

/* Round button, bottom-right corner, on every device */
.sd-back-to-top {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 9998 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #e6007e !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 24px rgba(230, 0, 126, .35) !important;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

.sd-back-to-top:hover,
.sd-back-to-top:focus-visible {
  background: #c2006a !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(230, 0, 126, .45) !important;
}

.sd-back-to-top:focus-visible {
  outline: 2px solid #e6007e !important;
  outline-offset: 3px !important;
}

/* The arrow (white chevron drawn with CSS) */
.sd-back-to-top .sd-arrow {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  margin-top: 5px !important;
  border-top: 2.5px solid #ffffff !important;
  border-left: 2.5px solid #ffffff !important;
  transform: rotate(45deg) !important;
}

/* Hide it while you're already at the top of the page
   (modern browsers; older ones simply show it all the time) */
@supports (animation-timeline: scroll()) {
  @keyframes sd-show-arrow {
    from { opacity: 0; visibility: hidden; transform: translateY(12px); }
    to   { opacity: 1; visibility: visible; transform: translateY(0); }
  }

  .sd-back-to-top {
    animation: sd-show-arrow linear both;
    animation-timeline: scroll(root);
    animation-range: 0 300px;
  }
}

/* Phones: a bit smaller and closer to the edge */
@media (max-width: 700px) {
  .sd-back-to-top {
    right: 16px !important;
    bottom: 16px !important;
    width: 44px !important;
    height: 44px !important;
  }
}



/* =====================================================
   Seks Dylematy – pink "Postaw mi kawę" button
   (first widget in the sidebar, matches the search button)
   Paste at the END of Appearance → Customize → Additional CSS
   ===================================================== */

/* Soft pink card around the button */
.sd-coffee-box {
  margin: 0 0 1em !important;
  padding: 1.5em 1.25em !important;
  background: #fff0f7 !important;
  border: 1px solid #f7cfe3 !important;
  border-radius: 12px !important;
  text-align: center !important;
}

.sd-coffee-text {
  margin: 0 0 1em !important;
  color: #3a3539 !important;
  font-size: .95em !important;
  font-style: italic !important;
  line-height: 1.5 !important;
}

/* The pink pill button */
a.sd-coffee {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 24px 0 50px !important;
  background: #e6007e !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 22px rgba(230, 0, 126, .30) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

a.sd-coffee:hover,
a.sd-coffee:focus-visible {
  background: #c2006a !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(230, 0, 126, .40) !important;
}

a.sd-coffee:focus-visible {
  outline: 2px solid #e6007e !important;
  outline-offset: 3px !important;
}

/* Coffee cup icon drawn with CSS */
a.sd-coffee::before {           /* cup */
  content: "" !important;
  position: absolute !important;
  left: 20px !important;
  top: 15px !important;
  width: 12px !important;
  height: 12px !important;
  border: 2px solid #ffffff !important;
  border-top: 0 !important;
  border-radius: 0 0 5px 5px !important;
  pointer-events: none !important;
}

a.sd-coffee::after {            /* handle */
  content: "" !important;
  position: absolute !important;
  left: 33px !important;
  top: 17px !important;
  width: 4px !important;
  height: 6px !important;
  border: 2px solid #ffffff !important;
  border-left: 0 !important;
  border-radius: 0 4px 4px 0 !important;
  pointer-events: none !important;
}

/* Phones: full-width button */
@media (max-width: 700px) {
  a.sd-coffee {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}




/* =====================================================
   Seks Dylematy – sidebar cards matching "Postaw nam kawę"
   Paste at the END of Appearance → Customize → Additional CSS
   (after buy-coffee.css)
   ===================================================== */

/* ---------- Every sidebar widget becomes a soft pink card ---------- */
#google_translate_widget-11,
#blog-stats-3,
#archives-6 {
  margin: 0 0 1.5em !important;
  padding: 1.5em 1.25em !important;
  background: #fff0f7 !important;
  border: 1px solid #f7cfe3 !important;
  border-radius: 12px !important;
  text-align: center !important;
}

/* the coffee card: same spacing as the others */
#block-10 {
  margin: 0 0 1.5em !important;
}

#block-10 .sd-coffee-box {
  margin: 0 !important;
}

/* ---------- Card titles ---------- */
#google_translate_widget-11 .widget-title,
#blog-stats-3 .widget-title,
#archives-6 .widget-title {
  margin: 0 0 1em !important;
  padding: 0 0 .75em !important;
  border: 0 !important;
  color: #e6007e !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
  position: relative !important;
}

/* small pink divider under each title */
#google_translate_widget-11 .widget-title::after,
#blog-stats-3 .widget-title::after,
#archives-6 .widget-title::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  width: 32px !important;
  height: 2px !important;
  margin-left: -16px !important;
  background: #e6007e !important;
  border-radius: 2px !important;
}

/* ---------- Google Translate: pill-shaped dropdown ---------- */
#google_translate_widget-11 select,
#google_translate_widget-11 .goog-te-combo {
  width: 100% !important;
  max-width: 280px !important;
  height: 44px !important;
  margin: 0 auto .6em !important;
  padding: 0 40px 0 18px !important;
  background-color: #ffffff !important;
  border: 1px solid #f7cfe3 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(230, 0, 126, .10) !important;
  color: #3a3539 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  outline: none !important;
}

#google_translate_widget-11 select:focus,
#google_translate_widget-11 .goog-te-combo:focus {
  border-color: #e6007e !important;
  box-shadow: 0 0 0 4px rgba(230, 0, 126, .15) !important;
}

/* keep "Powered by Google" (required), just quieter */
#google_translate_widget-11 .goog-te-gadget {
  color: #9a9095 !important;
  font-size: 12px !important;
}

/* ---------- Blog stats: one big pink number ---------- */
#blog-stats-3 ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#blog-stats-3 li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #e6007e !important;
  font-size: 1.6em !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* ---------- Archive: full month list in a tidy scrollable card ---------- */
#archives-6 ul {
  list-style: none !important;
  max-height: 340px !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 0 6px 0 0 !important;
  text-align: left !important;
  scrollbar-width: thin !important;
  scrollbar-color: #e6007e #f7cfe3 !important;
}

#archives-6 ul::-webkit-scrollbar {
  width: 6px !important;
}

#archives-6 ul::-webkit-scrollbar-track {
  background: #f7cfe3 !important;
  border-radius: 6px !important;
}

#archives-6 ul::-webkit-scrollbar-thumb {
  background: #e6007e !important;
  border-radius: 6px !important;
}

#archives-6 li {
  margin: 0 !important;
  padding: .55em .5em !important;
  border: 0 !important;
  border-bottom: 1px dotted #f0bcd6 !important;
  color: #9a9095 !important;
  font-size: .95em !important;
}

#archives-6 li:last-child {
  border-bottom: 0 !important;
}

#archives-6 li a {
  color: #3a3539 !important;
  text-decoration: none !important;
  transition: color .2s ease !important;
}

#archives-6 li a:hover,
#archives-6 li a:focus-visible {
  color: #e6007e !important;
}


/* =====================================================
   Seks Dylematy – readable white header text
   Paste at the END of Appearance → Customize → Additional CSS
   ===================================================== */

/* Blog title: crisp white with a soft dark glow behind it */
.site-title,
.site-title a {
  color: #ffffff !important;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .55),
    0 4px 18px rgba(0, 0, 0, .65),
    0 0 40px rgba(0, 0, 0, .45) !important;
}

/* Tagline: white text on a translucent dark panel */
.site-header .site-description {
  display: block !important;
  max-width: 900px !important;
  margin: .6em auto 0 !important;
  padding: .6em 1.4em !important;
  background: rgba(20, 16, 20, .4) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  backdrop-filter: blur(3px) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 1.05em !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7) !important;
}

/* Phones: slightly smaller tagline with side margins */
@media (max-width: 700px) {
  .site-header .site-description {
    margin: .6em 12px 0 !important;
    font-size: .95em !important;
    line-height: 1.6 !important;
  }
}



/* Post titles in brand pink */
.entry-title,
.entry-title a {
  color: #e6007e !important;
}

.entry-title a:hover,
.entry-title a:focus-visible {
  color: #c2006a !important;
}




.sd-coffee-post {
  margin: 2.5em 0 1em !important;
}



/* Archive: full list, no scrolling */
#archives-6 ul {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
}

@media (max-width: 480px) {
  a.sd-coffee {
    white-space: normal !important;
    height: auto !important;
    padding: 12px 20px 12px 50px !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }
}





.sd-coffee-box {
  padding: 1em !important;
}




/* Coffee button: fit the box, wrap text neatly */
a.sd-coffee {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 46px !important;
  padding: 12px 20px 12px 50px !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

/* keep the cup icon vertically centred */
a.sd-coffee::before { top: calc(50% - 8px) !important; }
a.sd-coffee::after  { top: calc(50% - 6px) !important; }

/* a little less empty space around the
 * 
 * 
 * 
 * a.sd-coffee { text-transform: none !important; }



/* Hide share & like buttons on the Współpraca page only */
.page-id-3157 .sharedaddy,
.page-id-3157 .sd-sharing-enabled,
.page-id-3157 .sd-like,
.page-id-3157 #jp-post-flair {
  display: none !important;
}




/* Contact form submit button in brand pink */
.wp-block-jetpack-contact-form button[type="submit"],
.wp-block-jetpack-contact-form .wp-block-button__link,
.contact-form .pushbutton-wide,
.contact-form button[type="submit"] {
  background: #e6007e !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  padding: 14px 32px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 22px rgba(230, 0, 126, .30) !important;
  cursor: pointer !important;
  transition: background .2s ease, transform .2s ease !important;
}

.wp-block-jetpack-contact-form button[type="submit"]:hover,
.wp-block-jetpack-contact-form .wp-block-button__link:hover,
.contact-form .pushbutton-wide:hover,
.contact-form button[type="submit"]:hover {
  background: #c2006a !important;
  transform: translateY(-2px) !important;
}