html {
  scroll-behavior: smooth;
}

body,
.font-sans {
  font-family: "Roboto", Helvetica, Arial, Lucida, sans-serif !important;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

p {
  font-family: "Montserrat", Sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", Sans-serif;
}

body,
.bg-gray-50 {
  background-color: #f5f5f5 !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.bg-orange-500,
a.bg-orange-500,
button.bg-orange-500,
a[href].bg-orange-500 {
  background-color: #2dcf2d !important;
  border-color: #2dcf2d !important;
}

.hover\:bg-orange-600:hover,
.bg-orange-500:hover,
button.bg-orange-500:hover,
a.bg-orange-500:hover {
  background-color: #26bb26 !important;
  border-color: #26bb26 !important;
}

.bg-orange-500:active,
.hover\:bg-orange-600:active,
button.bg-orange-500:active,
a.bg-orange-500:active {
  background-color: #1fa51f !important;
  border-color: #1fa51f !important;
  transform: translateY(1px);
}

.text-orange-500,
.text-orange-400 {
  color: #2dcf2d !important;
}

.hover\:text-orange-600:hover,
.hover\:text-orange-300:hover {
  color: #26bb26 !important;
}

.bg-orange-100 {
  background-color: #dff8df !important;
}

.focus\:ring-orange-400:focus,
input:focus,
textarea:focus,
select:focus {
  --tw-ring-color: rgba(45, 207, 45, 0.35) !important;
  border-color: #2dcf2d !important;
  box-shadow: 0 0 0 3px rgba(45, 207, 45, 0.2) !important;
}

button,
a.bg-orange-500,
button.bg-orange-500 {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.12s ease,
    box-shadow 0.2s ease;
}

button:focus-visible,
a.bg-orange-500:focus-visible {
  outline: 2px solid rgba(45, 207, 45, 0.35);
  outline-offset: 2px;
}

/* ─── Opis produktu (render_product_details) ─────────────────────────────── */
.product-detail {
  font-family: "Montserrat", Sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.product-detail__title {
  font-size: 1.7em;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.4em;
  margin-bottom: 0.75em;
}

.product-detail__figure {
  margin: 0 0 1.2em 0;
  text-align: center;
}

.product-detail__figure img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px #0001;
}

.product-detail__caption {
  font-size: 0.95em;
  color: #555;
  margin-top: 0.5em;
}

.product-detail__lead {
  font-size: 1rem;
  color: #222;
}

.product-detail__heading {
  font-size: 1.25rem;
  color: #15803d;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.product-detail__text {
  color: #222;
}

.product-detail__list {
  margin: 0 0 1.2em 1.2em;
  padding: 0;
  list-style: disc;
  color: #222;
}

.product-detail__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1em;
}

.product-detail__gallery-item {
  margin: 0;
  text-align: center;
}

.product-detail__gallery-item figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 0.4em;
}

/* ─── Wybór wariantów kolorystycznych (product-variants) ──────────────────── */
.variant-picker {
  margin: 1.5em 0;
}

.variant-picker__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.6em;
}

.variant-picker__current {
  color: #15803d;
}

.variant-picker__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-picker__option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
  color: #1f2937;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.variant-picker__option:hover {
  border-color: #2dcf2d;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.variant-picker__option:focus-visible {
  outline: 2px solid #2dcf2d;
  outline-offset: 2px;
}

.variant-picker__option.is-active {
  border-color: #2dcf2d;
  box-shadow: 0 0 0 3px rgba(45, 207, 45, 0.2);
  cursor: default;
}

.variant-picker__swatch {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.variant-picker__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.variant-picker__label {
  font-size: 0.9rem;
  font-weight: 600;
}

.variant-picker__ral {
  font-size: 0.72rem;
  color: #6b7280;
}

.variant-picker__option.is-active .variant-picker__ral {
  color: #15803d;
}

.variant-picker__option.is-active::after {
  content: "✓";
  margin-left: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2dcf2d;
}

.defer-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

@media (max-width: 767px) {
  .defer-section {
    contain-intrinsic-size: 1px 700px;
  }
}

div#cookie-consent {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 440px;
  box-sizing: border-box;
  z-index: 9999999;
  border-radius: 6px;
}

@media (max-width: 767px) {
  div#cookie-consent {
    left: 0;
    bottom:0;
    width: 100%;
  }
}

div#cookie-consent.cookie-modal--hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
div#cookie-consent .cookie-modal__panel {
  border-color: #f4f4f4;
  background: #ffffff;
  border: 1px solid;
  padding: 20px 26px;
  box-shadow: 0 -1px 10px 0 #acabab4d;
  border-radius: 6px;
}

h2.cookie-modal__title {
  color: #212121;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 12px 0;
}

p.cookie-modal__desc {
  color: #212121;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}
button#cookie-consent-accept {
  max-width: 100%;
  font-size: 14px;
  line-height: 24px;
  padding: 8px;
  font-weight: 500;
  margin: 0 8px 0 0;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  text-transform: none;
  min-height: 0;
  color: #2dcf2d;
  background-color: transparent;
  border-color: #2dcf2d;
  border-width: 1px;
  margin-top: 1em;
}

button#cookie-consent-reject {
    max-width: 100%;
    font-size: 14px;
    line-height: 24px;
    padding: 8px;
    font-weight: 500;
    margin: 0 8px 0 0;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    text-transform: none;
    min-height: 0;
    color: #000000;
    background-color: transparent;
    border-color: #000000;
    border-width: 1px;
    margin-top: 1em;
}