.wc-blocks-components-select .wc-blocks-components-select__select{
	background: #e4bf9a !important;
}

.wc-block-components-form .wc-block-components-text-input input[type=email], .wc-block-components-form .wc-block-components-text-input input[type=number], .wc-block-components-form .wc-block-components-text-input input[type=password], .wc-block-components-form .wc-block-components-text-input input[type=tel], .wc-block-components-form .wc-block-components-text-input input[type=text], .wc-block-components-form .wc-block-components-text-input input[type=url], .wc-block-components-text-input input[type=email], .wc-block-components-text-input input[type=number], .wc-block-components-text-input input[type=password], .wc-block-components-text-input input[type=tel], .wc-block-components-text-input input[type=text], .wc-block-components-text-input input[type=url]{
	background: #e4bf9a !important;
}

/* Hide the gift card section on checkout */
.wp-block-woocommerce-checkout-order-summary-gift-card-form-block {
    display: none !important;
}

.woocommerce-js div.product form.cart .variations select{
	background: #e4bf9a !important;
	color: black !important;
  font-weight: bold !important;
	border-color: black !important;
}

.woocommerce-js .quantity input[type=email], .woocommerce-js .quantity input[type=number], .woocommerce-js .quantity input[type=text]{
	background: #e4bf9a !important;
	color: black !important;
  font-weight: bold !important;
	border-color: black !important;
	border-radius: 10% !important;
}

.kviz-box {
  background: #f9f6f1;
  border: 2px solid #7a5c2e;
  border-radius: 10px;
  padding: 25px;
  max-width: 800px;
  margin: 30px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: inherit;
}

.kviz-box h3,
.kviz-box h4 {
  color: #5a3e1b;
}

.kviz-box hr {
  border: none;
  border-top: 1px solid #c2a66f;
  margin: 20px 0;
}

.kviz-box ul {
  padding-left: 20px;
}

.kviz-box li {
  margin-bottom: 8px;
}

.kviz-highlight {
  background: #efe6d6;
  padding: 15px;
  border-left: 5px solid #7a5c2e;
  margin: 20px 0;
}

.custom-qsm-leaderboard {
    background: #f9f6f1;
    border: 2px solid #7a5c2e;
    border-radius: 14px;
    padding: 25px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    font-family: Arial, sans-serif;
}

.custom-qsm-leaderboard h2 {
    text-align: center;
    color: #5a3e1b;
    margin-bottom: 20px;
}

.custom-qsm-leaderboard table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.custom-qsm-leaderboard th,
.custom-qsm-leaderboard td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.custom-qsm-leaderboard th {
    background: #efe6d6;
    color: #5a3e1b;
    font-weight: 600;
}

.custom-qsm-leaderboard tr:hover td {
    background: #e9dcc6;
    transition: all 0.2s ease;
}

.custom-qsm-leaderboard tr:nth-child(odd) td {
    background: #f5eee0;
}

.custom-qsm-leaderboard td {
    font-size: 16px;
    color: #3f2a12;
}

.woocommerce div.product .product-addon-totals {
    display: none !important;
}

.fixed-textarea textarea {
    width: 400px !important;
    height: 100px !important;
    resize: none;
}

.wapf-product-totals {
    display: none !important;
}

.wapf {
    background: #f9f6f1;
    border: 2px solid #7a5c2e;
    border-radius: 12px;
    padding: 28px;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    position: relative;
}

.wapf::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(122,92,46,0.25);
}

.wapf textarea,
.wapf input,
.wapf select {
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    padding: 12px;
    transition: 0.2s ease;
}

.wapf-input{
	max-width: 90%;
}

.wapf textarea:focus,
.wapf input:focus,
.wapf select:focus {
    border-color: #c8a96b;
    box-shadow: 0 0 0 3px rgba(200,169,107,0.15);
    outline: none;
}

.wc-block-components-product-details__value,
.wc-block-components-product-metadata,
.wc-block-components-product-details {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

/* === UAGB Post Carousel: desktop 4, mobile 2 === */

.wp-block-uagb-post-carousel.enciklopedija-carousel {
  --card-width-desktop: 235px;
  --card-width-mobile: 160px;

  width: 100% !important;
  max-width: calc((var(--card-width-desktop) * 4) + 90px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 45px !important;
  padding-right: 45px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Vidljivi deo carousel-a na desktopu: 4 kartice */
.wp-block-uagb-post-carousel.enciklopedija-carousel .slick-list {
  width: min(100%, calc(var(--card-width-desktop) * 4)) !important;
  max-width: min(100%, calc(var(--card-width-desktop) * 4)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Track */
.wp-block-uagb-post-carousel.enciklopedija-carousel .slick-track {
  display: flex !important;
  align-items: flex-start !important;
}

/* Slide */
.wp-block-uagb-post-carousel.enciklopedija-carousel .slick-slide {
  display: flex !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.wp-block-uagb-post-carousel.enciklopedija-carousel .slick-slide > div {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

/* Kartica */
.wp-block-uagb-post-carousel.enciklopedija-carousel .uagb-post__inner-wrap {
  width: 100% !important;
  max-width: var(--card-width-desktop) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Slika */
.wp-block-uagb-post-carousel.enciklopedija-carousel .uagb-post__image,
.wp-block-uagb-post-carousel.enciklopedija-carousel .uagb-post__image a {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
}

.wp-block-uagb-post-carousel.enciklopedija-carousel .uagb-post__image img {
  display: block !important;
  width: 100% !important;
  max-width: var(--card-width-desktop) !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Naslov */
.wp-block-uagb-post-carousel.enciklopedija-carousel .uagb-post__title,
.wp-block-uagb-post-carousel.enciklopedija-carousel .uagb-post__title a {
  text-align: center !important;
}

/* Strelice */
.wp-block-uagb-post-carousel.enciklopedija-carousel .slick-prev {
  left: 0 !important;
  z-index: 5 !important;
}

.wp-block-uagb-post-carousel.enciklopedija-carousel .slick-next {
  right: 0 !important;
  z-index: 5 !important;
}

/* Tablet: 2 kartice */
@media (max-width: 1024px) {
  .wp-block-uagb-post-carousel.enciklopedija-carousel {
    max-width: calc((var(--card-width-desktop) * 2) + 70px) !important;
    padding-left: 35px !important;
    padding-right: 35px !important;
  }

  .wp-block-uagb-post-carousel.enciklopedija-carousel .slick-list {
    width: min(100%, calc(var(--card-width-desktop) * 2)) !important;
    max-width: min(100%, calc(var(--card-width-desktop) * 2)) !important;
  }
}

/* Telefon: 2 kartice manje širine */
@media (max-width: 600px) {
  .wp-block-uagb-post-carousel.enciklopedija-carousel {
    max-width: 100% !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .wp-block-uagb-post-carousel.enciklopedija-carousel .slick-list {
    width: min(100%, calc(var(--card-width-mobile) * 2)) !important;
    max-width: min(100%, calc(var(--card-width-mobile) * 2)) !important;
  }

  .wp-block-uagb-post-carousel.enciklopedija-carousel .uagb-post__inner-wrap {
    max-width: var(--card-width-mobile) !important;
  }

  .wp-block-uagb-post-carousel.enciklopedija-carousel .uagb-post__image img {
    max-width: var(--card-width-mobile) !important;
  }
}

/* Jako uski telefoni */
@media (max-width: 380px) {
  .wp-block-uagb-post-carousel.enciklopedija-carousel {
    --card-width-mobile: 145px;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}