/* Wishlist hoofdstructuur */
.woocommerce .shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 15px;
  border: none !important;
}

.woocommerce .shop_table thead th {
  text-align: left;
  padding: 12px 10px;
  background: #fff;
  font-weight: 600;
  border-bottom: 2px solid #ccc;
}

.woocommerce .shop_table tbody tr {
  border-bottom: 1px solid #eee;
}

.woocommerce .shop_table td {
  padding: 15px 10px;
  vertical-align: top;
  background: #fff;
}

/* Max-breedte voor kolom Acties */
.woocommerce .shop_table td:last-child,
.woocommerce .shop_table th:last-child {
  width: 1%;
  white-space: nowrap;
}

/* Knoppen compact weergeven */
.wishlist-actions button {
  display: block;
  width: auto;
  min-width: 120px;
  margin-bottom: 6px;
  padding: 8px 12px;
  font-size: 13px;
}

/* ========================================
   Kolom 1: Product + afbeelding + notitie
======================================== */
.wishlist-product {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.wishlist-product img {
  width: 100px;
  height: 100px !important;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}
.wishlist-product-info {
  flex: 1;
}
.wishlist-product-info a {
  display: block;
  font-weight: 600;
  color: #f90;
  margin-bottom: 8px;
  text-decoration: none;
}
.wishlist-product-info a:hover {
  text-decoration: underline;
}

.wishlist-note {
  width: 100%;
  min-height: 60px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 6px;
}
.wishlist-note::placeholder {
  color: #999;
}

.wishlist-update {
  background: transparent;
  color: #1BAB63;
  border: 1px solid #1BAB63;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wishlist-update:hover {
  background: #1BAB63;
  color: #fff;
}

.wishlist-update-link {
  display: inline-block;
  color: #333 !important;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500 !important;
  font-size: 12px !important;
  margin-bottom: 0px !important;
}

.wishlist-update-link:hover {
  color: #161616;
  text-decoration: none;
}

.wishlist-note-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wishlist-feedback {
  font-size: 12px;
  color: green;
  display: none;
}

.wishlist-minimum-quantity {
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #777;
}

/* ========================================
   Kolom 2: Prijs
======================================== */
.woocommerce .shop_table td:nth-child(2),
.woocommerce .shop_table td .price {
  font-weight: 600;
  white-space: nowrap;
}

/* ========================================
   Kolom 3: Acties
======================================== */
.woocommerce .shop_table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.wishlist-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wishlist-add-to-cart {
  background: #1BAB63 !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  border-radius: 30px !important;
  cursor: pointer;
  transition: background 0.2s ease;
  font-weight: 500 !important;
}
.wishlist-remove {
  background: #ccc !important;;
  color: #333 !important;
  border: none !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  border-radius: 30px !important;
  cursor: pointer;
  transition: background 0.2s ease;
  font-weight: 500 !important;
}
.wishlist-add-to-cart:hover {
  background: #161616 !important;
}
.wishlist-remove:hover {
  background: #999 !important;
}

/* "Alles toevoegen"-knop onderaan */
#wishlist-add-all {
  float: right;
  margin-top: 20px;
  background: #1BAB63;
  color: #fff;
  border: none;
  padding: 10px 20px!important;
  font-size: 16px !important;
  border-radius: 30px !important;
  cursor: pointer;
  transition: background 0.2s ease;
}
#wishlist-add-all:hover {
  background: #161616;
}

/* ========================================
   Responsive gedrag
======================================== */
@media (max-width: 600px) {
  .wishlist-product {
    flex-direction: column;
    align-items: flex-start;
  }
  .woocommerce .shop_table td:last-child {
    text-align: left;
    margin-top: 10px;
  }
  .wishlist-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ========================================
   Wishlist hartje (bijv. in loop of productpagina)
======================================== */
.wishlist-toggle {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23999' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21C12 21 4 13.5 4 8.5C4 6.01472 6.01472 4 8.5 4C10.0191 4 11.3984 4.78945 12 6.0015C12.6016 4.78945 13.9809 4 15.5 4C17.9853 4 20 6.01472 20 8.5C20 13.5 12 21 12 21Z'/%3E%3C/svg%3E") no-repeat center;
  background-size: 24px 24px;
  transition: all 0.2s ease;
  vertical-align: middle;
  border-radius: 4px;
}

/* Actieve status: rood hartje */
.wishlist-toggle.active {
  background: url("data:image/svg+xml,%3Csvg fill='%23e00' stroke='%23e00' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21C12 21 4 13.5 4 8.5C4 6.01472 6.01472 4 8.5 4C10.0191 4 11.3984 4.78945 12 6.0015C12.6016 4.78945 13.9809 4 15.5 4C17.9853 4 20 6.01472 20 8.5C20 13.5 12 21 12 21Z'/%3E%3C/svg%3E") no-repeat center;
  background-size: 24px 24px;
}

/* Hover: blauwe achtergrond met wit icoon */
.wishlist-toggle:hover {
  background-color: #1BAB63;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23fff' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21C12 21 4 13.5 4 8.5C4 6.01472 6.01472 4 8.5 4C10.0191 4 11.3984 4.78945 12 6.0015C12.6016 4.78945 13.9809 4 15.5 4C17.9853 4 20 6.01472 20 8.5C20 13.5 12 21 12 21Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}

/*
 * Container rechtsboven, los van de paginaopbouw.
 */
.wishlist-toast-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 2147483647 !important;
    width: 380px;
    max-width: calc(100vw - 48px);
    pointer-events: none;
}

/*
 * Toastmelding.
 */
.wishlist-toast {
    position: relative !important;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 46px 16px 18px !important;
    border: 0 !important;
    border-left: 4px solid #1bab63 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #161616 !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    transform: translateX(30px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.wishlist-toast.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.wishlist-toast--notice {
    border-left-color: #777777 !important;
}

.wishlist-toast--error {
    border-left-color: #c62828 !important;
}

.wishlist-toast__text {
    display: block;
    margin: 0;
    padding: 0;
}

.wishlist-toast__close {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #777777 !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 28px !important;
    cursor: pointer;
    transform: translateY(-50%) !important;
}

.wishlist-toast__close:hover,
.wishlist-toast__close:focus {
    background: #f2f2f2 !important;
    color: #161616 !important;
}

/*
 * Mobiel onderaan tonen, zodat hij niet over de mobiele header valt.
 */
@media (max-width: 767px) {
    .wishlist-toast-container {
        top: auto !important;
        right: 12px !important;
        bottom: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none;
    }

    .wishlist-toast {
        transform: translateY(24px);
    }

    .wishlist-toast.is-visible {
        transform: translateY(0) !important;
    }
}