.ws-favorites {
    display: inline-flex;
    align-items: center;
}

.ws-favorites-trigger {
    position: relative;
    width: var(--whispart-header-icon-size, 22px);
    height: var(--whispart-header-icon-size, 22px);
    min-width: var(--whispart-header-icon-size, 22px);
    min-height: var(--whispart-header-icon-size, 22px);
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ws-favorites-trigger__icon {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: transparent;
    stroke: currentColor;
    stroke-width: var(--whispart-header-icon-stroke, 1.45);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ws-favorites-count {
    position: absolute;
    top: -5px;
    right: -7px;
    display: block;
    background: transparent;
    color: currentColor;
    font-family: inherit;
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
}

.ws-favorites-count[hidden],
.ws-favorites-empty[hidden] {
    display: none !important;
}

.ws-favorites-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(16, 16, 16, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.ws-favorites-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10050;
    width: min(430px, 100vw);
    height: 100dvh;
    padding: 0 0 30px;
    display: flex;
    flex-direction: column;
    background: #f1f1ef;
    color: #151515;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    border-left: 1px solid rgba(17, 17, 17, 0.12);
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), visibility 300ms ease;
}

.ws-favorites-layer.is-open .ws-favorites-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ws-favorites-layer.is-open .ws-favorites-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.ws-favorites-drawer__header {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

.ws-favorites-layer .ws-favorites-drawer__header {
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    float: none !important;
    clear: both !important;
    flex: 0 0 96px !important;
    order: 0 !important;
    width: 100% !important;
    min-height: 96px !important;
    max-height: 96px !important;
    margin: 0 !important;
    padding: 0 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(26, 26, 26, 0.14) !important;
    background: #fff !important;
    box-sizing: border-box;
    transform: none !important;
}

.ws-favorites-layer .ws-favorites-drawer__header h2 {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 22px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    letter-spacing: 0;
    text-align: left !important;
}

.ws-favorites-layer .ws-favorites-close {
    position: static !important;
    inset: auto !important;
    flex: 0 0 44px;
    margin: 0 0 0 auto !important;
    transform: none !important;
}

.ws-favorites-close {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ws-favorites-close path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
}

.ws-favorites-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ws-favorites-layer .ws-favorites-list {
    position: relative !important;
    inset: auto !important;
    order: 1;
    width: 100% !important;
    max-height: calc(100dvh - 150px);
    margin: 0 !important;
    padding: 0 28px;
    flex: 0 1 auto;
    box-sizing: border-box;
    transform: none !important;
}

.ws-favorites-item {
    position: relative;
    min-height: 140px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
    box-sizing: border-box;
}

.ws-favorites-layer .ws-favorites-item__link {
    min-height: 112px;
    padding-right: 48px;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    color: inherit !important;
    text-decoration: none !important;
    box-sizing: border-box;
}

.ws-favorites-layer .ws-favorites-item__link:not(.ws-favorites-item__link--disabled) {
    cursor: pointer;
}

.ws-favorites-layer .ws-favorites-item__link--disabled {
    cursor: default;
}

.ws-favorites-item__media {
    width: 100px;
    height: 112px;
    display: block;
    overflow: hidden;
    background: #eeece7;
}

.ws-favorites-item__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ws-favorites-item__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f0eee9, #dedbd4);
}

.ws-favorites-item__content {
    min-width: 0;
    padding: 4px 0 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ws-favorites-item__title {
    margin: 0;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.18;
}

.ws-favorites-item__dimensions {
    margin: 8px 0 0;
    color: rgba(17, 17, 17, 0.55);
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.ws-favorites-layer .ws-favorites-item__remove {
    position: absolute;
    right: 0;
    bottom: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #151515 !important;
    opacity: 0.58;
    cursor: pointer;
    transition: opacity 160ms ease;
}

.ws-favorites-layer .ws-favorites-item__remove:hover,
.ws-favorites-layer .ws-favorites-item__remove:focus-visible {
    opacity: 1;
}

.ws-favorites-layer .ws-favorites-item__remove:focus-visible {
    outline: 1px solid rgba(17, 17, 17, 0.5);
    outline-offset: 2px;
}

.ws-favorites-layer .ws-favorites-item__remove-icon {
    width: 20px;
    height: 20px;
    display: block;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.ws-favorites-empty {
    order: 2;
    margin: 74px 28px 0;
    color: rgba(17, 17, 17, 0.56);
    font-family: "EB Garamond", Georgia, serif;
    font-size: 20px;
    text-align: center;
}

.ws-favorites-note {
    order: 3;
    margin: auto 28px 0;
    padding-top: 26px;
    color: rgba(17, 17, 17, 0.45);
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
}

body.ws-favorites-open {
    overflow: hidden;
}

@media (max-width: 959px) {
    .ws-favorites-drawer {
        width: min(320px, 80vw) !important;
    }

    .ws-favorites-layer .ws-favorites-drawer__header {
        padding: 0 20px !important;
    }

    .ws-favorites-layer .ws-favorites-drawer__header h2 {
        font-size: 20px !important;
        font-weight: 300 !important;
    }

    .ws-favorites-layer .ws-favorites-list {
        padding: 0 20px;
    }

    .ws-favorites-note {
        margin-right: 20px;
        margin-left: 20px;
    }
}