.itbs-fav-panel {
    position: absolute;
    z-index: 10030;
    display: none;
    max-width: calc(100vw - 24px);
    color-scheme: light;
    color: #0f172a;
}
.itbs-fav-btn,
.heart-btn.itbs-fav-btn,
.itbs-fav-btn-inline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    padding: 0 !important;
    line-height: 1 !important;
    transform-origin: center;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.heart-btn.itbs-fav-btn {
    width: 42px !important;
    height: 42px !important;
}
.itbs-fav-btn-inline {
    width: 44px;
    height: 44px;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: #fff;
    color: #ef4444;
}
.itbs-fav-btn svg,
.heart-btn.itbs-fav-btn svg,
.itbs-fav-btn-inline svg {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 !important;
    transform-origin: center;
    pointer-events: none;
    transition: transform 0.18s ease, color 0.18s ease;
}
.itbs-fav-btn svg path,
.heart-btn.itbs-fav-btn svg path,
.itbs-fav-btn-inline svg path {
    fill: rgba(255, 255, 255, 0);
    stroke: currentColor;
    stroke-width: 1.8;
    transition: fill 0.18s ease, stroke 0.18s ease;
}
.itbs-fav-btn:hover,
.heart-btn.itbs-fav-btn:hover,
.itbs-fav-btn-inline:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 14px 30px -18px rgba(239, 68, 68, 0.85);
}
.itbs-fav-btn:active,
.heart-btn.itbs-fav-btn:active,
.itbs-fav-btn-inline:active {
    transform: scale(0.9);
}
.itbs-fav-btn.active,
.heart-btn.itbs-fav-btn.active,
.itbs-fav-btn-inline.active {
    border-color: #fb7185 !important;
    background: #fff1f2 !important;
    color: #ef4444 !important;
    animation: itbs-heart-button-pop 0.36s cubic-bezier(.2, .8, .2, 1);
}
.itbs-fav-btn.active svg,
.heart-btn.itbs-fav-btn.active svg,
.itbs-fav-btn-inline.active svg {
    animation: itbs-heart-icon-pop 0.44s cubic-bezier(.2, .8, .2, 1);
}
.itbs-fav-btn.active svg path,
.heart-btn.itbs-fav-btn.active svg path,
.itbs-fav-btn-inline.active svg path {
    fill: currentColor;
    stroke: currentColor;
}
@keyframes itbs-heart-button-pop {
    0% { transform: scale(0.9); }
    55% { transform: scale(1.12); }
    100% { transform: scale(1); }
}
@keyframes itbs-heart-icon-pop {
    0% { transform: scale(0.65) rotate(-8deg); }
    60% { transform: scale(1.22) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
}
.itbs-fav-panel.is-open {
    display: block;
}
.itbs-fav-panel__inner {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 80px -36px rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(18px);
}
.itbs-fav-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
}
.itbs-fav-panel__title {
    font-weight: 900;
    color: #0f172a;
}
.itbs-fav-panel__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.itbs-fav-clear,
.itbs-fav-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-weight: 800;
    cursor: pointer;
}
.itbs-fav-list {
    display: grid;
    gap: 8px;
    max-height: min(58vh, 520px);
    overflow: auto;
    padding: 12px;
}
.itbs-fav-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.itbs-fav-item:hover {
    border-color: #fed7aa;
    background: #fff7ed;
}
.itbs-fav-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
}
.itbs-fav-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}
.itbs-fav-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}
.itbs-fav-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}
.itbs-fav-price {
    color: #ea580c;
    background: #fff7ed;
}
.itbs-fav-more {
    margin-top: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}
.itbs-fav-empty {
    padding: 18px 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}
.itbs-fav-panel__planner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0 12px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b00, #f97316);
    color: #fff !important;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 12px 28px -18px rgba(249, 115, 22, 0.9);
}
.itbs-fav-panel__planner:hover {
    background: linear-gradient(135deg, #ea580c, #ff6b00);
}
.itbs-fav-panel.is-empty .itbs-fav-panel__planner {
    display: none;
}
.itbs-fav-fab {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #fff;
    color: #ef4444;
    border: 1px solid #fee2e2;
    box-shadow: 0 18px 50px -26px rgba(15, 23, 42, 0.8);
    cursor: pointer;
}
.itbs-fav-fab__icon svg {
    width: 24px;
    height: 24px;
}
.itbs-fav-fab__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 20px;
    text-align: center;
}
@media (max-width: 1023px) {
    .itbs-fav-fab {
        display: flex;
    }
    .itbs-fav-panel.is-mobile .itbs-fav-panel__inner {
        border-radius: 16px;
    }
}
