/* ========================================
   Cadeaubon productpagina – YITH Gift Cards
======================================== */

/* =========================
   Product afbeelding fix
========================= */

/* YITH preview verwijderen */
.single-product .woocommerce-product-gallery .ywgc-main-form-preview-container {
  display: none !important;
}

/* Wrappers die het grijze randje veroorzaakten neutraliseren */
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__wrapper .wd-carousel-wrap,
.single-product .wd-carousel-item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* De zichtbare slide zelf ook afronden */
.single-product .wd-carousel-item {
  border-radius: 10px !important;
  overflow: hidden !important;
}

/* Image wrapper */
.single-product .woocommerce-product-gallery__image {
  border-radius: 10px !important;
  overflow: hidden !important;
  background: transparent !important;
}

/* Link wrapper */
.single-product .woocommerce-product-gallery__image a {
  display: block !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: transparent !important;
}

/* Afbeelding */
.single-product .woocommerce-product-gallery__image img {
  display: block !important;
  width: 100%;
  height: auto;
  border-radius: 10px !important;
  background: transparent !important;
}

/* Herstel juiste uitlijning van de gallery */
.single-product .woocommerce-product-gallery {
  padding-left: 5px;
  padding-right: 5px;
}

/* Container */
.gift-cards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
}

/* Titel altijd boven de knoppen */
.gift-cards-list .ywgc_select_amount_title {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: #2f2a26;
}

/* Hidden inputs niet tonen */
.gift-cards-list input[type="hidden"].ywgc-amount-buttons {
  display: none !important;
}

/* =========================
   Vaste bedragknoppen
========================= */
.gift-cards-list .ywgc-predefined-amount-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 110px;
  padding: 0 18px;
  border: 1px solid #ddd6cf;
  border-radius: 14px;
  background: #fff;
  color: #9a673f;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  box-shadow: none;
  transition: all 0.2s ease;
  cursor: pointer;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  text-transform: none !important;
}

.gift-cards-list .ywgc-predefined-amount-button:hover {
  border-color: #b9784f;
  background: #fcf7f2;
}

.gift-cards-list .ywgc-predefined-amount-button.selected_button,
.gift-cards-list .ywgc-predefined-amount-button.active {
  background: #b9784f;
  border-color: #b9784f;
  color: #fff;
}

.gift-cards-list .ywgc-predefined-amount-button .amount,
.gift-cards-list .ywgc-predefined-amount-button .woocommerce-Price-currencySymbol {
  color: inherit !important;
}

/* =========================
   Custom bedrag veld
========================= */
.gift-cards-list .ywgc-manual-amount-container {
  appearance: none;
  -webkit-appearance: none;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #ddd6cf;
  border-radius: 14px;
  background: #fff;
  color: #2f2a26;
  box-shadow: none;
  transition: all 0.2s ease;
  cursor: text;
  flex: 0 0 calc(50% - 6px) !important;
  width: 100%;
  max-width: 320px;
  text-transform: none !important;
  overflow: hidden;
}

.gift-cards-list .ywgc-manual-amount-container:hover,
.gift-cards-list .ywgc-manual-amount-container:focus-within {
  border-color: #b9784f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(185, 120, 79, 0.12);
}

/* Geselecteerde custom state */
.gift-cards-list .ywgc-manual-amount-container.selected_button {
  background: #b9784f;
  border-color: #b9784f;
  color: #fff;
}

.gift-cards-list .ywgc-manual-amount-container.selected_button .ywgc-manual-currency-symbol.left,
.gift-cards-list .ywgc-manual-amount-container.selected_button #ywgc-manual-amount {
  color: #fff !important;
}

.gift-cards-list .ywgc-manual-amount-container.selected_button #ywgc-manual-amount::placeholder {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Inner wrapper */
.gift-cards-list .ywgc-manual-amount-container #ywgc-manual-amount-div-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* Euro links vastzetten */
.gift-cards-list .ywgc-manual-amount-container .ywgc-manual-currency-symbol,
.gift-cards-list .ywgc-manual-amount-container .ywgc-manual-currency-symbol.left {
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: block !important;
  width: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 600;
  text-align: center !important;
  color: #9a673f;
  z-index: 2;
}

.gift-cards-list .ywgc-manual-amount-container .ywgc-manual-currency-symbol.right {
  display: none !important;
}

/* Input */
.gift-cards-list .ywgc-manual-amount-container #ywgc-manual-amount {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 44px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #2f2a26;
  font-size: 17px;
  font-weight: 600;
  line-height: normal !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* Placeholder */
.gift-cards-list .ywgc-manual-amount-container #ywgc-manual-amount::placeholder {
  color: #8a8179;
  opacity: 1;
}

.gift-cards-list .ywgc-manual-amount-container #ywgc-manual-amount:focus::placeholder {
  color: transparent !important;
}

/* =========================
   Mobiel
========================= */
@media (max-width: 768px) {
  .gift-cards-list {
    gap: 10px;
  }

  .gift-cards-list .ywgc_select_amount_title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .gift-cards-list .ywgc-predefined-amount-button,
  .gift-cards-list .ywgc-manual-amount-container {
    min-width: 96px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 16px;
    border-radius: 12px !important;
  }

  .gift-cards-list .ywgc-predefined-amount-button {
    flex: 1 1 calc(50% - 10px);
  }

  .gift-cards-list .ywgc-manual-amount-container {
    flex: 1 1 calc(50% - 10px) !important;
    max-width: none;
  }

  .gift-cards-list .ywgc-manual-amount-container .ywgc-manual-currency-symbol.left {
    left: 16px !important;
    font-size: 15px !important;
  }

  .gift-cards-list .ywgc-manual-amount-container #ywgc-manual-amount {
    min-height: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 16px;
    padding: 0 16px 0 40px !important;
  }
}

/* Fix verticale centrering custom bedrag */
.gift-cards-list .ywgc-manual-amount-container {
  display: flex !important;
  align-items: center !important;
}

.gift-cards-list .ywgc-manual-amount-container #ywgc-manual-amount {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: normal !important;
}

.gift-cards-list .ywgc-manual-amount-container .ywgc-manual-currency-symbol.left {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.gift-cards-list #ywgc-manual-amount {
  min-width: 0 !important;
}