.huvo-suggests-panel {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
    display: flex;
    align-items: flex-start;
}

@keyframes huvo-attention-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 4px 0 20px rgba(15, 27, 70, 0.5);
    }
}

.huvo-suggests-tab {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: #006F77;
    color: #ffffff;
    border: none;
    padding: 16px 12px;
    gap: 0 !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 2;
}
.huvo-suggests-tab::after {
    content: '›';
    display: inline-block;
    font-size: 14px;
    margin-top: 6px;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.huvo-suggests-tab:not(.pulse-complete) {
    animation: huvo-attention-pulse 1.2s ease-in-out 3;
}

.huvo-suggests-tab:hover {
    background: #DCF4FF;
    padding-right: 16px;
}

.huvo-suggests-tab-text {
    display: inline-block;
}

.huvo-suggests-content {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 8px 8px 0;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-left: none;
}

.huvo-suggests-panel.expanded .huvo-suggests-content {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}
.huvo-suggests-panel.expanded .huvo-suggests-tab::after {
    transform: rotate(180deg);
}

.huvo-suggests-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 !important;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
/* Force-close button against global button styles */
.huvo-suggests-panel .huvo-suggests-close,
.huvo-suggests-panel button.huvo-suggests-close {
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    font-size: 28px !important;
}

.huvo-suggests-close::before,
.huvo-suggests-close::after {
    display: none !important;
    content: none !important;
}

.huvo-suggests-close:hover {
    color: #333;
}

.huvo-suggests-body {
    padding: 20px;
    padding-right: 50px;
}

.huvo-suggests-body h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.huvo-suggests-body > p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
}

.huvo-suggests-products {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.huvo-suggests-product {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 5px;
    position: relative;
    min-width: 0;
}

.huvo-suggests-in-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #28a745;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.huvo-suggests-image {
    flex-shrink: 0;
    text-align: center;
}

.huvo-suggests-image img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 4px;
}

.huvo-suggests-details {
    flex-grow: 1;
    text-align: center;
}

.huvo-suggests-details h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.3;
}

.huvo-suggests-details h4 a {
    color: #333;
    text-decoration: none;
}

.huvo-suggests-details h4 a:hover {
    text-decoration: underline;
}

.huvo-suggests-price {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.huvo-suggests-view-product,
.huvo-suggests-view-product.huvo-button {
    padding: 10px 14px !important;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    background: #006F77;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
}
.huvo-suggests-view-product:hover,
.huvo-suggests-view-product:focus {
    color: #fff;
    text-decoration: none;
    background: #008a92;
}

.huvo-suggests-view-product:hover {
    text-decoration: none;
}

/* Medium screens: reduce tab size so it stays clear of header/breadcrumbs */
@media (max-width: 1280px) {
    .huvo-suggests-tab {
        padding: 14px 10px;
        font-size: 12px;
        letter-spacing: 1px;
    }
}

/* Tune for ~1920x1080 (and similar) so the tab sits lower and lighter */
@media (max-width: 1920px) and (max-height: 1100px) {
    .huvo-suggests-panel {
        top: 60%;
        transform: translateY(-50%);
    }
    .huvo-suggests-content {
        width: 360px;
        max-height: 75vh;
    }
    .huvo-suggests-tab {
        padding: 12px 9px;
        font-size: 11.5px;
        letter-spacing: 0.8px;
    }
}

/* Mobile / tablet responsive */
@media (max-width: 1023px) {
    .huvo-suggests-panel {
        top: 45%;
    }

    .huvo-suggests-content {
        width: 85vw;
        max-width: 400px;
    }

    /* Prevent theme button resets from forcing full-width close control */
    .huvo-suggests-close {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        padding: 0 !important;
        float: none !important;
        display: flex !important;
        flex-shrink: 0 !important;
    }

    .huvo-suggests-products {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .huvo-suggests-image {
        display: block;
        width: 100%;
        max-width: 100px;
        margin: 0 auto;
    }

    .huvo-suggests-product {
        text-align: left;
    }

    .huvo-suggests-details {
        text-align: left;
    }

    .huvo-suggests-body {
        padding: 15px;
    }
}
