/* CSS for the wishlist table */


/*********** RM-994 ***************/

#wishlist-form-products input {
    width: 100%;
    padding: 5px 0 !important;
    text-align: center;
    margin: 0;
}
#wishlist-form-products table.sticky-header {
    z-index: 1;
}
#uc-wishlist-view-form td,
#uc-wishlist-view-form th {
    padding: 3px;
    font-size: 14px;
}
#uc-wishlist-view-form input[type="submit"],
#uc-wishlist-view-form input[type="reset"],
#uc-wishlist-view-form button {
    margin-top: 10px
}
#uc-wishlist-view-form table input[type="submit"],
#uc-wishlist-view-form table input[type="reset"],
#uc-wishlist-view-form table button {
    margin: 0;
}
#uc-wishlist-view-form table input[type="submit"] {
    padding: 5px !important;
}
#wishlist-form-products .draggable .form-checkbox {
    width: auto;
    vertical-align: baseline;
}
#wishlist-form-products .draggable .tabledrag-handle .handle {
	width: 20px !important;
    height: 30px !important;
}

/********** RM-1250-Multiple-Wishlists *************/
/*
.page-user-wishlist #block-system-main h3 {
    margin: 0;
}
.page-user-wishlist #block-system-main fieldset {
    margin: 0;
    display: inline-block;
    height: auto;
    padding: 0;
    width: 100%;
    border: 0 !important;
    top: auto;
}
html.js .page-user-wishlist fieldset.collapsed .fieldset-legend,
html.js .page-user-wishlist fieldset.collapsible .fieldset-legend {
    background-position: 0 50%;
    float: left;
    text-align: left;
    text-indent: initial;
}
html.js .page-user-wishlist fieldset.collapsed .fieldset-legend {
    background: url(https://www.brooklinebooksmith-shop.com/sites/all/modules/misc/menu-collapsed.png);
}
html.js .page-user-wishlist fieldset.collapsible .fieldset-legend {
    background: url(https://www.brooklinebooksmith-shop.com/sites/all/modules/misc/menu-expanded.png);
}
.page-user-wishlist fieldset legend {
    background: none;
    border: 0;
    text-shadow: none;
    position: initial;
    padding: 0 !important;
}
html.js .page-user-wishlist form {
    display: inline-block;
    width: 100%;
}
*/

.wishlist-lists {
    margin-bottom: 15px;
}
.wishlist-lists h3 {
    margin-bottom: 5px;
    background-image: url(images/icon-wish-list.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px;
    padding-left: 30px;
}
.wishlist-lists a {
    padding-left: 20px;
    background-image: url(images/icon-wishlist-list-view.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 15px;
    margin-left: 15px;
}
/*********RM-1605***********/
.wishlist-lists a.wl_delete {
    padding-left: 20px;
    background-image: url(images/icon-wishlist-delete.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 15px;
    margin-left: 15px;
}
/********RM-1605 End*******/
.wishlist-lists a.active {
    font-weight: bold;
}
/*#uc-wishlist-view-form .hide-columns .sticky-enabled tr th:nth-child(4), #1525*/
#uc-wishlist-view-form .hide-columns .sticky-enabled tr th:nth-child(5),
/*#uc-wishlist-view-form .hide-columns .sticky-enabled tr td:nth-child(4), #1525*/
#uc-wishlist-view-form .hide-columns .sticky-enabled tr td:nth-child(5) {
    display: none;
}

/********** End of RM-1250-Multiple-Wishlists *************/

@media(min-width: 768px) and (max-width: 959px) {
    #uc-wishlist-view-form td,
    #uc-wishlist-view-form th {
        font-size: 12px;
    }
    #uc-wishlist-view-form table input {
        padding: 0px 2px;
    }
}
@media(max-width: 767px) {
    #wishlist-form-products table.sticky-header {
        display: none;
    }
    #uc-wishlist-view-form table,
    #uc-wishlist-view-form thead,
    #uc-wishlist-view-form tbody,
    #uc-wishlist-view-form th,
    #uc-wishlist-view-form td,
    #uc-wishlist-view-formtr {
        display: block;
    }
    #uc-wishlist-view-form thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    #uc-wishlist-view-form tr {
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        padding: 0;
        display: block;
    }
    #uc-wishlist-view-form td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    #uc-wishlist-view-form td:before {
        position: absolute;
        top: 50%;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
    }
    #uc-wishlist-view-form td:nth-of-type(1):before {
        content: "Remove";
    }
    #uc-wishlist-view-form td:nth-of-type(2):before {
        content: "Products";
    }
    #uc-wishlist-view-form td:nth-of-type(3):before {
        content: " ";
    }
    #uc-wishlist-view-form td:nth-of-type(4):before {
        content: "Wanted";
    }
    #uc-wishlist-view-form td:nth-of-type(5):before {
        content: "On-line Purchase";
    }
    /* RM-1085 */
    #uc-wishlist-view-form td:nth-of-type(6):before {
        content: "In-Store Purchase";
    }
    /* RM-1085
    #uc-wishlist-view-form td:nth-of-type(7):before {
        content: "Qty.";
    }*/
    #uc-wishlist-view-form td:nth-of-type(7):before {
        content: "Purchase";
    }
    /* RM-1323 - Removing Total column
    #uc-wishlist-view-form td:nth-of-type(8):before {
        content: "Total";
    }*/
    #wishlist-form-products input[type="checkbox"],
    #wishlist-form-products input[type="radio"] {
        width: auto;
    }
    #wishlist-form-products input {
        width: 80%;
    }
    #uc-wishlist-view-form td,
    #uc-wishlist-view-form th {
        height: auto;
    }
    #uc-wishlist-view-form tr.odd .form-item,
    #uc-wishlist-view-form tr.even .form-item {
        margin-bottom: 0;
    }
    .not-logged-in #uc-wishlist-view-form td:nth-of-type(1):before {
       content: "Products";
    }
    .not-logged-in #uc-wishlist-view-form td:nth-of-type(2):before {
       content: "";
    }
    .not-logged-in #uc-wishlist-view-form td:nth-of-type(3):before {
       content: "Wanted";
    }
    .not-logged-in #uc-wishlist-view-form td:nth-of-type(4):before {
       content: "On-line Purchase";
    }
    /* RM-1085 */
    .not-logged-in #uc-wishlist-view-form td:nth-of-type(5):before {
        content: "In-Store Purchase";
    }
    /* RM-1085
    .not-logged-in #uc-wishlist-view-form td:nth-of-type(6):before {
       content: "Qty";
    } */

    /********** Start of RM-1250-Multiple-Wishlists *************/

    .not-logged-in #uc-wishlist-view-form td:nth-of-type(6):before {
       content: "Purchase";
    }
    /* RM-1323 - Removing Total column
    .not-logged-in #uc-wishlist-view-form td:nth-of-type(7):before {
       content: "Total";
    }*/
    #uc-wishlist-view-form .hide-columns td:nth-of-type(1):before {
        content: "Products";
    }
    #uc-wishlist-view-form .hide-columns td:nth-of-type(2):before {
        content: "";
    }
    #uc-wishlist-view-form .hide-columns td:nth-of-type(3):before {
        content: "Wanted";
    }
    #uc-wishlist-view-form .hide-columns td:nth-of-type(6):before {
        content: "Purchase";
    }
    /* RM-1323 - Removing Total column
    #uc-wishlist-view-form .hide-columns td:nth-of-type(7):before {
        content: "Total";
    }*/
    .not-logged-in #uc-wishlist-view-form .hide-columns td:nth-of-type(4):before,
    .not-logged-in #uc-wishlist-view-form .hide-columns td:nth-of-type(5):before,
    #uc-wishlist-view-form .hide-columns td:nth-of-type(4):before,
    #uc-wishlist-view-form .hide-columns td:nth-of-type(5):before {
        content: "";
    }
    #uc-wishlist-view-form .hide-columns td:nth-of-type(4),
    #uc-wishlist-view-form .hide-columns td:nth-of-type(5) {
        display: none;
    }
    /********** End of RM-1250-Multiple-Wishlists *************/

}
@media(max-width: 600px) {
    #uc-wishlist-view-form tr {
        border-top: 1px solid #ccc;
    }
}
#wishlist-form-products table img{
   margin: 0
}

/* RM-1311 Wishlist sharable link START*/
#wishlist_link {
  width:60%;
  background: #eee;
  padding: 10px
}
.wishlist_link_tooltip {
  position: relative;
  display: inline;
}
.wishlist_link_tooltip .wishlist_link_tooltip_text {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}
.wishlist_link_tooltip .wishlist_link_tooltip_text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}
.wishlist_link_tooltip:hover .wishlist_link_tooltip_text {
  visibility: visible;
  opacity: 1;
}
/* RM-1311 Wishlist sharable link END */

/* RM-1321 Add to Wishlist button fix Start */

.abaproduct-cart form div, .abaproduct-details form div {
    justify-content: center;
}
.add-to-wish-list-div {
    display: flex;
}
.add-to-wish-list-div a {
    margin-left:5px !important;
}

/* RM-1321 Add to Wishlist button fix END */

/* RM-1566 Browse book page fixes*/
.page-browse-book .add-to-wish-list-div {
    flex-wrap: wrap;
    justify-content: center;
}
.page-browse-book .view-browse-by-bisac-code table {
    table-layout: fixed;
    border-right: 1px solid #ddd;
}
.page-browse-book .view-browse-by-bisac-code table tr td input {
    width: auto;
    margin: 10px 6px !important;
    white-space: pre-wrap;
    height: auto;
}
.page-browse-book .view-browse-by-bisac-code table tr td a {
    height: auto !important;
}
.page-browse-book .view-browse-by-bisac-code table tr td {
    border: 1px solid #ddd;
    overflow: hidden;
}
.page-browse-book .view-browse-by-bisac-code table tr td img {
  max-width: 100%
}