:root {
    --brand-gold: #b58e3e;
    --rockland-navy: #002147;
}

/* Wrapper: Keep it visible so the tab shows */
.offers-fixed-wrapper {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    overflow: visible; /* CRITICAL: Tab must be seen */
}

/* Vertical Tab Trigger */
.fixed-tab-trigger {
    background: #fff;
    border: 1px solid var(--brand-gold);
    border-left: none;
    width: 42px; 
    height: 150px; 
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 11;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    border-radius: 0 4px 4px 0;
}

.tab-label {
    writing-mode: vertical-rl;
    color: var(--brand-gold);
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Sidebar Panel: Hidden with 0 opacity initially */
.fixed-sidebar-panel {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    width: 320px; 
    height: 150px; 
    border: 1px solid var(--brand-gold);
    border-left: none;
    position: absolute;
    left: 0;
    z-index: 10;
    transform: translateX(-100%); 
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Clips the horizontal slides */
    border-radius: 0 4px 4px 0;
}

.fixed-sidebar-panel.open {
    transform: translateX(42px);
    opacity: 1;
}

/* Carousel Window */
.carousel-window {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
}

/* The Track: FORCED HORIZONTAL */
.carousel-track-inner {
    display: flex !important;
    flex-direction: row !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

/* The Slide */
.carousel-slide {
    min-width: 100%;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    flex-shrink: 0; /* Prevents slides from wrapping */
}

/* Typography & Links */
.gold-brand { 
    color: var(--brand-gold); 
    font-size: 14px; 
    margin: 0 0 4px 0; 
    font-weight: 700;
}

.carousel-slide p {
    font-size: 11px;
    line-height: 1.4;
    color: #444;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Promo Tag: Rockland Navy */
.sidebar-promo-tag {
    background: var(--rockland-navy);
    color: #fff;
    font-size: 9px;
    padding: 3px 8px;
    display: inline-block;
    border-radius: 2px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sidebar-link-btn {
    font-size: 10px;
    color: var(--brand-gold);
    text-decoration: underline;
    font-weight: 700;
}

/* Navigation Controls */
.panel-header-top { padding: 5px 12px 0 0; text-align: right; }
.close-x-btn { color: #888; cursor: pointer; font-size: 20px; }

.carousel-navigation-btns {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 5px;
}

.carousel-navigation-btns button {
    background: var(--brand-gold);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .desktop-only-sidebar { display: none !important; }
}