/* HIKMAT Wishlist v1.1.0 */

/* =========================================================
 * PRODUCT WISHLIST TOGGLE
 * ========================================================= */
.hikmat-wishlist-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
    -webkit-appearance: none;
    appearance: none;
}

.hikmat-wishlist-toggle:hover,
.hikmat-wishlist-toggle:focus,
.hikmat-wishlist-toggle:active {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.hikmat-wishlist-toggle:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.hikmat-wishlist-toggle.is-loading {
    opacity: .55;
    cursor: wait;
}

.hikmat-wishlist-toggle .hikmat-wishlist-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
    transition: opacity .15s ease, transform .18s ease;
    transform-origin: center;
}

@keyframes hikmat-wishlist-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.hikmat-wishlist-toggle.is-wishlist-popping .hikmat-wishlist-icon {
    animation: hikmat-wishlist-pop .2s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .hikmat-wishlist-toggle.is-wishlist-popping .hikmat-wishlist-icon {
        animation: none;
    }
}

.hikmat-wishlist-toggle .hikmat-wishlist-icon--off { opacity: 1; }
.hikmat-wishlist-toggle .hikmat-wishlist-icon--on  { opacity: 0; }

.hikmat-wishlist-toggle.is-active .hikmat-wishlist-icon--off,
.hikmat-wishlist-toggle:focus-visible .hikmat-wishlist-icon--off { opacity: 0; }

.hikmat-wishlist-toggle.is-active .hikmat-wishlist-icon--on,
.hikmat-wishlist-toggle:focus-visible .hikmat-wishlist-icon--on { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
    .hikmat-wishlist-toggle:hover .hikmat-wishlist-icon--off { opacity: 0; }
    .hikmat-wishlist-toggle:hover .hikmat-wishlist-icon--on  { opacity: 1; }
}

@media (hover: none), (pointer: coarse) {
    .hikmat-wishlist-toggle:not(.is-active) .hikmat-wishlist-icon--off { opacity: 1 !important; }
    .hikmat-wishlist-toggle:not(.is-active) .hikmat-wishlist-icon--on  { opacity: 0 !important; }
    .hikmat-wishlist-toggle.is-active .hikmat-wishlist-icon--off      { opacity: 0 !important; }
    .hikmat-wishlist-toggle.is-active .hikmat-wishlist-icon--on       { opacity: 1 !important; }
}

/* =========================================================
 * HEADER ICON + COUNT
 * ========================================================= */
.hikmat-wishlist-header {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: inherit;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}

@media (min-width: 1025px) {
    .hikmat-wishlist-header {
        width: 20px !important;
        height: 20px !important;
    }
}

.hikmat-wishlist-header:hover,
.hikmat-wishlist-header:focus,
.hikmat-wishlist-header:active {
    color: inherit;
    text-decoration: none;
}

.hikmat-wishlist-header:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.hikmat-wishlist-header__icon {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
}

.hikmat-wishlist-header__count {
    position: absolute;
    top: -7px;
    right: -9px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    box-sizing: border-box;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.hikmat-wishlist-header__count[hidden] {
    display: none !important;
}

/* =========================================================
 * WISHLIST TITLE SHORTCODE
 * [hikmat_wishlist_title]
 * ========================================================= */
.hikmat-wishlist-title {
    display: inline-block;
    position: relative;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

.hikmat-wishlist-title__count {
    position: relative;
    top: -.48em;
    margin-left: 5px;
    font-size: .55em;
    font-weight: 400;
    line-height: 1;
    vertical-align: baseline;
}

