.single-product .site-main > .product .summary .yith-wcwl-add-to-wishlist .yith-wcwl-add-button,
 .single-product .site-main > .product .summary .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse,
  .single-product .site-main > .product .summary .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse
  {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    position: relative;
  }
.yith-wcwl-add-to-wishlist .yith-wcwl-add-button {
    display: flex; 
    flex-direction: row;
    align-items: normal;
}

.single-product .site-main > .product .summary .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a {
    /* width: auto; */
    height: 40px;
    font-size: 14px;
}

.single-product .site-main > .product .summary .yith-wcwl-add-to-wishlist a {
    display: inline;
    align-items: normal;
    justify-content: normal;
    position: static;
}
.yith-wcwl-add-to-wishlist :where(.yith-wcwl-add-button, .yith-wcwl-wishlistaddedbrowse, .yith-wcwl-wishlistexistsbrowse) > a, 
.yith-add-to-wishlist-button-block > a, 
.yith-wcqv-button, 
.yith-wccp-compare > a {
    /* border-radius: 0px; */
    height: 40px;
    width: 40px;
    display: inline;
    justify-content: normal;
    color: var(--wp--preset--color--dark);
    box-shadow: none;
    background-color: var(--wp--preset--color--white);
    position: static;
}
.yith-wcwl-add-to-wishlist svg.yith-wcwl-icon-svg, .yith-wcwl-add-to-wishlist .add_to_wishlist img {
    height: auto;
    width: 25px;
    color: var(--add-to-wishlist-icon-color, #000);
}
a.delete_item {
    font-size: 0 !important;
}
a.delete_item + span.separator {
    display: none !important;
}
/* Center the heart icon container */
.yith-wcwl-add-button a.delete_item {
    display: flex !important;
    align-items: center !important;     /* Vertical center */
    justify-content: center !important;  /* Horizontal center */
    width: 48px;
    height: 40px;
    font-size: 0 !important;             /* Keeps "Remove" text hidden */
}

/* Center the "View" text container */
.yith-wcwl-add-button a.view-wishlist {
    display: flex !important;
    align-items: center !important;     /* Vertical center */
    justify-content: center !important;  /* Horizontal center */
    width: 48px;
    height: 40px;
    font-size: 14px !important;          /* Ensures "View" text is visible */
    text-align: center;
}

/* Ensure the heart SVG itself is centered */
.yith-wcwl-add-button a.delete_item svg {
    display: block;
    margin: 0;
}

/* ---- Wishlist page: restore original title-edit interaction ---- */

/* Keep title + edit link inline; make the container the anchor for in-place editor. */
.wishlist-title-container {
    position: relative;
    display: inline-block;
}

.wishlist-title {
    display: inline-flex;
    align-items: center;
}

.wishlist-title h2 {
    margin: 0;
    padding: 5px;
}

/* Show "Edit title" only when hovering the title area. */
.wishlist-title a.show-title-form {
    visibility: hidden !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
}

.wishlist-title:hover a.show-title-form {
    visibility: visible !important;
}

/* Keep the pencil icon size consistent. */
.wishlist-title a.show-title-form svg.yith-wcwl-icon-svg,
.wishlist-title a.show-title-form img {
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
}

/* Render edit input in-place over the original title row (not as a separate row). */
.hidden-title-form {
    display: none;
    position: absolute;
    top: -2px;
    left: -2px;
    margin: 0 !important;
    z-index: 20;
    width: 100%;
    min-width: 260px;
}

/* When JS hides the title via inline display:none, keep its layout box so
   the overlaid input aligns exactly where the title was. */
.wishlist-title[style*="display: none"] {
    display: inline-flex !important;
    visibility: hidden;
}

.hidden-title-form > input[type=text] {
    width: 100%;
    min-height: 40px;
    line-height: 1.2;
    padding-right: 70px;
}

.hidden-title-form .edit-title-buttons {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

/* Constrain the accept/cancel icon button sizes. */
.hidden-title-form .edit-title-buttons a {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px;
    font-size: 1.3em !important;
    display: inline-block !important;
    text-align: center;
}

.hidden-title-form .edit-title-buttons a svg.yith-wcwl-icon-svg,
.hidden-title-form .edit-title-buttons a img {
    width: 1em !important;
    height: 1em !important;
    display: inline-block !important;
}
