.compare-favorite-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 990;
    backdrop-filter: blur(3px);
    background-color: rgba(17, 17, 17, 0.3);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0s linear 0.3s;
}

.compare-favorite-drawer-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30rem;
    max-width: calc(100% - 3rem);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

.compare-favorite-drawer-open .compare-favorite-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.compare-favorite-drawer-open .compare-favorite-drawer-wrap {
    transform: translateX(0);
}

.compare-favorite-drawer__header {
    position: relative;
    background-color: #333333;
    color: #fff;
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.compare-favorite-drawer__header-text {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.compare-favorite-drawer__content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.compare-favorite-drawer__close-btn {
    position: absolute;
    top: 2rem;
    right: calc(100% + 0.5rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.compare-favorite-drawer__close-btn:hover {
    opacity: 0.6;
}

.compare-favorite-drawer__close-btn svg {
    width: 1rem;
    height: 1rem;
    display: block;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1px;
}

.compare-favorite-drawer__empty-state {
    text-align: center;
}

.compare-favorite-drawer__empty-text {
    margin: 2rem 0;
    opacity: 0.6;
    font-weight: 600;
    font-style: italic;
}

.compare-favorite-drawer__compare-button,
.compare-favorite-drawer__inventory-button {
    display: block;
    width: 100%;
    padding: 0.375rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    border-radius: 0.25rem;
    cursor: pointer;
    user-select: none;
    transition:
        color 0.15s ease-in-out,
        background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
    color: var(--compare_cta_text_color);
    background-color: var(--compare_cta_background_color);
    border: 1px solid var(--compare_cta_border_color);
}

.compare-favorite-drawer__compare-button[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

.compare-favorite-drawer__compare-button:not([disabled]):hover,
.compare-favorite-drawer__inventory-button:hover {
    color: var(--compare_cta_hover_text_color);
    background-color: var(--compare_cta_hover_background_color);
    border-color: var(--compare_cta_hover_border_color);
}


.favorite-card {
    border: 1px solid #ccc;
    padding: 0.25rem;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.favorite-card__image {
    max-width: 75%;
    margin: 0.25rem auto 0.5rem;
}

.favorite-card__image img {
    width: 100%;
}

.favorite-card__remove {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
    font-size: 100%;
    line-height: 1;
    white-space: nowrap;
    border: 0;
    padding: 0.25rem;
    font-weight: normal;
    border-radius: 0.25rem;
    transition:
        color 0.15s ease-in-out,
        background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
    color: #999;
    background: none;
    cursor: pointer;
}

.favorite-card__remove svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.favorite-card__remove:hover {
    background: #eee;
    color: #333;
}

.favorite-card__info {
    font-size: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.favorite-card__info>span:first-child:not(:last-child) {
    margin-right: 1rem;
}

.favorite-card__details {
    padding: 0 0.5rem;
    color: #0a0a0a;
    text-decoration: none;
}

.favorite-card__priority-options {
    display: flex;
}

.favorite-card__priority-option {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0.25rem;
}

.favorite-card__priority-option img {
    width: 2.5rem;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    display: block;
}

.favorite-card__title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #0a0a0a;
    margin-bottom: 0.25rem;
}

.favorite-card__body {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.favorite-card__price-wrap {
    color: #0a0a0a;
}

.favorite-card__final-price--item {
    border-top: 2px solid #ccc;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.favorite-card__price--item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorite-card__original-price--item {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.favorite-card__final-price--item .favorite-card__price--title {
    font-weight: 600;
    padding: 0.25rem;
    background: #eee;
    color: #0a0a0a;
}

.favorite-card__final-price--item .favorite-card__price--value {
    font-size: 1rem;
    font-weight: 600;
}

@media screen and (min-width: 501px) {
    .favorite-card__image {
        margin: 0 0.5rem;
        max-width: 6.5rem;
    }

    .favorite-card__body {
        flex-direction: row;
        flex: 1;
    }

    .favorite-card__details {
        flex: 1;
    }
}