/*
 * MIROMAX - jednolite przyciski
 * Cel: wszystkie główne przyciski mają ten sam styl, wysokość, promień, font i odstępy.
 */

:root{
  --miro-btn-green:#006b4f;
  --miro-btn-green-hover:#005840;
  --miro-btn-light:#ffffff;
  --miro-btn-light-hover:#f4fff9;
  --miro-btn-border:#dce9e4;
  --miro-btn-text:#006b4f;
  --miro-btn-dark:#10233f;
  --miro-btn-radius:999px;
  --miro-btn-height:48px;
  --miro-btn-padding:0 24px;
  --miro-btn-font:900 15px/1.1 inherit;
}

/* Główna baza przycisków */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.wp-element-button,
.wp-block-button__link,
.button,
.btn,
.add_to_cart_button,
.single_add_to_cart_button,
.checkout-button,
.wc-forward,
.woocommerce-button,
.woocommerce-Button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.miromax-ai-submit,
.miromax-ai-tool,
.miro-button,
.miro-btn,
.miro-hero .button,
.miro-hero a,
.miro-card a,
.miro-card button,
.miro-category-toggle,
a[href*="audyt"],
a[href*="sklep"],
a[href*="kontakt"],
a[href*="aukcje"]{
  min-height:var(--miro-btn-height)!important;
  height:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:var(--miro-btn-padding)!important;
  border-radius:var(--miro-btn-radius)!important;
  border:1px solid var(--miro-btn-border)!important;
  background:var(--miro-btn-light)!important;
  color:var(--miro-btn-text)!important;
  font:var(--miro-btn-font)!important;
  text-decoration:none!important;
  text-align:center!important;
  line-height:1.1!important;
  box-shadow:0 10px 24px rgba(16,35,63,.06)!important;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}

/* Przyciski główne / zielone */
button[type="submit"],
input[type="submit"],
.wp-block-button.is-style-fill .wp-block-button__link,
.add_to_cart_button,
.single_add_to_cart_button,
.checkout-button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.miromax-ai-submit,
a[href*="rozpocznij"],
a[href*="audyt"],
a[href*="zamow"],
a[href*="zamów"],
a[href*="koszyk"]{
  background:var(--miro-btn-green)!important;
  border-color:var(--miro-btn-green)!important;
  color:#fff!important;
  box-shadow:0 14px 30px rgba(0,107,79,.20)!important;
}

/* Hover */
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.button:hover,
.btn:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
.wc-forward:hover,
.woocommerce-button:hover,
.woocommerce-Button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.miromax-ai-tool:hover,
.miro-button:hover,
.miro-btn:hover{
  background:var(--miro-btn-light-hover)!important;
  border-color:#bcefdc!important;
  color:var(--miro-btn-text)!important;
  transform:translateY(-1px)!important;
  box-shadow:0 16px 34px rgba(16,35,63,.10)!important;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.miromax-ai-submit:hover,
a[href*="rozpocznij"]:hover,
a[href*="audyt"]:hover,
a[href*="zamow"]:hover,
a[href*="zamów"]:hover,
a[href*="koszyk"]:hover{
  background:var(--miro-btn-green-hover)!important;
  border-color:var(--miro-btn-green-hover)!important;
  color:#fff!important;
}

/* Aktywne / focus */
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
.wp-element-button:focus,
.wp-block-button__link:focus,
.button:focus,
.btn:focus,
.miromax-ai-submit:focus,
.miromax-ai-tool:focus{
  outline:3px solid rgba(0,107,79,.22)!important;
  outline-offset:2px!important;
}

/* Przyciski w hero - jednakowy rozmiar */
.miro-hero a,
.miro-hero .button,
.hero a,
.hero .button,
[class*="hero"] a,
[class*="hero"] button{
  min-width:160px!important;
}

/* Przyciski wyszukiwarki - wspólny styl, ale dopasowany do paska */
.miromax-ai-tool{
  background:#eafff5!important;
  border-color:#bcefdc!important;
  color:var(--miro-btn-text)!important;
  min-height:48px!important;
  padding:0 18px!important;
  box-shadow:none!important;
}

.miromax-ai-submit{
  min-height:48px!important;
  padding:0 24px!important;
}

/* Przycisk koszyka i CTA w nagłówku */
header a,
.site-header a,
.miro-header a{
  text-decoration:none;
}

header a[href*="koszyk"],
.site-header a[href*="koszyk"],
.miro-header a[href*="koszyk"],
header a[href*="cart"],
.site-header a[href*="cart"],
.miro-header a[href*="cart"]{
  background:#fff!important;
  color:var(--miro-btn-text)!important;
  border-color:var(--miro-btn-border)!important;
}

/* Linki w menu głównym nie mogą wyglądać jak duże przyciski */
nav a,
.main-navigation a,
.primary-menu a,
.menu a,
#site-navigation a{
  min-height:auto!important;
  padding:8px 12px!important;
  border:0!important;
  background:transparent!important;
  color:var(--miro-btn-dark)!important;
  box-shadow:none!important;
  border-radius:12px!important;
}

/* Wyjątki dla przycisków w menu/nagłówku */
nav a[href*="koszyk"],
nav a[href*="cart"],
nav a[href*="audyt"],
nav a[href*="rozpocznij"],
.main-navigation a[href*="koszyk"],
.main-navigation a[href*="cart"],
.main-navigation a[href*="audyt"],
.main-navigation a[href*="rozpocznij"]{
  min-height:var(--miro-btn-height)!important;
  padding:var(--miro-btn-padding)!important;
  border:1px solid var(--miro-btn-border)!important;
  border-radius:var(--miro-btn-radius)!important;
  background:#fff!important;
  color:var(--miro-btn-text)!important;
  box-shadow:0 10px 24px rgba(16,35,63,.06)!important;
}

/* Wyrównanie przycisków w kartach */
.woocommerce ul.products li.product .button,
.products .product .button,
.miro-product-card .button,
.miro-product-card a,
.miro-auction-card .button,
.miro-auction-card a{
  width:100%!important;
  min-height:46px!important;
}

/* Nie stylizuj elementów technicznych WordPress admin bar */
#wpadminbar button,
#wpadminbar input,
#wpadminbar a,
#wpadminbar .button{
  min-height:initial!important;
  padding:initial!important;
  border-radius:initial!important;
  border:initial!important;
  background:initial!important;
  color:inherit!important;
  box-shadow:none!important;
  transform:none!important;
}

/* Mobile */
@media(max-width:720px){
  :root{
    --miro-btn-height:46px;
    --miro-btn-padding:0 18px;
  }

  button,
  input[type="button"],
  input[type="submit"],
  .wp-element-button,
  .wp-block-button__link,
  .button,
  .btn,
  .add_to_cart_button,
  .single_add_to_cart_button,
  .checkout-button,
  .miromax-ai-submit,
  .miromax-ai-tool{
    font-size:14px!important;
  }

  .miromax-ai-tool{
    padding:0 12px!important;
  }

  .miro-hero a,
  .miro-hero .button,
  .hero a,
  .hero .button{
    min-width:0!important;
    width:100%!important;
  }
}
