/*
Theme Name: SmartMag Child
Theme URI: https://smartmag.theme-sphere.com/
Description: A child theme of SmartMag
Author: ThemeSphere
Author URI: https://theme-sphere.com
Template: smart-mag
Version: 1.1
*/
/* Skalowanie logo w headerze — bez utraty jakości */
.logo-link .logo-image {
  height: 25px !important;   /* ← zmień: 36–56 px według uznania */
  width: auto !important;
  max-height: 42px !important;
}
/* Comments box – tylko pod pojedynczym wpisem */
.single-post #comments,
.single-post .comments-area,
.single-post .comment-respond {
  background: #ffffff;
}
/* Tabele we wpisach na 100% szerokości */
.single-post .post-content table,
.single-post .entry-content table,
.single .post-content table,
.single .entry-content table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
}
/* Bezpieczne przewijanie poziome dla szerokich tabel */
.single-post .post-content,
.single-post .entry-content {
  overflow-x: auto;
}
/* Prompt / pre block – stabilna lewa linia */
.single-post .entry-content pre,
.single-post .post-content pre {
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  border-left: 4px solid #8a2be1 !important; /* LEWA LINIA */
  padding: 18px 20px !important;
  margin: 18px 0;
  border-radius: 6px;
}

/* usuń wszystkie „guttery” i przesunięcia z code */
.single-post .entry-content pre > code,
.single-post .post-content pre > code {
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  text-indent: 0 !important;
  background: transparent !important;
}

/* gdyby motyw dodawał pseudo-elementy */
.single-post .entry-content pre::before,
.single-post .post-content pre::before {
  display: none !important;
}
/* MOBILE – tylko prompt / pre block */
@media (max-width: 767px) {

  .single-post .entry-content pre,
  .single-post .post-content pre {
    background: #fff !important;
    border-left: 4px solid #8a2be1 !important;
    padding: 14px !important;
  }

  .single-post .entry-content pre > code,
  .single-post .post-content pre > code {
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
    white-space: pre-wrap !important;
  }
}

/* Form 7 styl */

.wpcf7 form .cf7-label{
  display:block;
  font-weight:700;
  margin:0 0 0 0 !important;
}

.wpcf7 form .cf7-field,
.wpcf7 form .cf7-full{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  display:block;
}

.wpcf7 form .cf7-row{ margin-bottom:10px; }

.wpcf7 form .cf7-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:0px;
}
@media (max-width:640px){
  .wpcf7 form .cf7-grid-2{ grid-template-columns:1fr; }
}

.wpcf7 form .cf7-tall{
  padding-top:0.75em;
  padding-bottom:0.75em;
}

.wpcf7 form .cf7-submit{
  width:50%;
  display:inline-block;
  margin:0;
}
@media (max-width:640px){
  .wpcf7 form .cf7-submit{ width:100%; }
}

/*Przycisk MailerLite */
.mailerlite-form-inputs .mailerlite-subscribe-button-container {
    display: flex !important;
    justify-content: flex-start !important;
}

#mlb2-37356187 .form-control {
    height: 52px !important;
    box-sizing: border-box !important;
}

#mlb2-37356187 button.primary {
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Mailer na głównej */

#mlb2-37411692 .ml-form-horizontalRow {
    display: flex !important;
    width: 100% !important;
}

#mlb2-37411692 .ml-input-horizontal {
    flex: 1 !important;
}

#mlb2-37411692 .form-control {
    height: 52px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#mlb2-37411692 button.primary {
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}


/*Bez odstepów kolumny */
.newsletter-row .elementor-column {
    padding-left: 0;
    padding-right: 0;
}

.newsletter-row .elementor-widget-wrap {
    margin: 0;
    padding: 0;
}