/* ================================================
   WooCommerce ACF Tooltip Styling – Stabiel &amp; Responsive
   ================================================ */

.tooltip-wrapper {
    display: inline-block;
    position: relative;
}

.tooltip-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 6px;
    background-color: #0073aa;
    color: #fff;
    font-style: normal;
    font-size: 12px;
    width: 18px;
    height: 18px;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    vertical-align: middle;
}

/* Tooltip inhoud */
.custom-tooltip {
    display: none;
    position: absolute;
    top: 0;
    left: 24px;
    background: #fff;
    color: #333;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    width: 300px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    white-space: normal;
    word-break: break-word;
}

/* Tooltip pijltje */
.custom-tooltip::before {
    content: "";
    position: absolute;
    top: 10px;
    left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

/* Hover/focus actief */
.tooltip-wrapper:hover .custom-tooltip,
.tooltip-wrapper:focus-within .custom-tooltip {
    display: block;
}

@media screen and (max-width: 768px) {
    .custom-tooltip {
        position: fixed !important;
        left: 50% !important;
        top: 20% !important;
        transform: translateX(-50%);
        width: 92vw;
        max-width: 320px;
        padding: 14px 16px;
        font-size: 13px;
        line-height: 1.5;
        background: #fff;
        color: #333;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 6px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        z-index: 9999;
    }

    .custom-tooltip::before {
        display: none !important;
    }

    .woocommerce-product-details__short-description {
        margin-bottom: 60px;
    }
}


/* Kolombreedtes gelijk houden */
.shop_attributes_custom th.woocommerce-product-attributes-item__label {
    width: 40%;
    vertical-align: top;
}

.shop_attributes_custom td.woocommerce-product-attributes-item__value {
    width: 60%;
}

/* ========== EINDE TOOLTIP STYLING ========== */
/* ================================================
   WooCommerce Composite – Gekochte titel inkorten
   Doel: Maximaal 2 regels tonen in .content_product_title
   ================================================ */

.content_product_title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.4;
  max-height: 2.8em; /* 2 lijnen van 1.4em */
  text-align: center;
}

/* ========== EINDE .content_product_title beperking ========== */

