/* Fixed Sales Banner Styles */

.fixed-sales-banner-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    /* display: flex; - Removed from here */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 338px;
    width: 90%;
    aspect-ratio: 16 / 9;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.fixed-sales-banner-container.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.fixed-sales-banner-container.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}


.fixed-sales-banner-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.6rem;
    width: 100%;
    height: 100%;
}

.fixed-sales-banner-close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.3);
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.fixed-sales-banner-close-button:hover {
    background: rgba(0,0,0,0.6);
}

.fixed-sales-banner-interactive-area {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.fixed-sales-banner-details-display {
    flex-grow: 1;
    padding: 0 10px;
}

.fixed-sales-banner-primary-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.fixed-sales-banner-secondary-title {
    font-size: 0.65rem;
    color: #eee;
    margin-bottom: 0.5rem;
}

.fixed-sales-banner-call-to-action-button {
    display: inline-block;
    background: var(--amazon-orange);
    color: white;
    padding: 0.6rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.fixed-sales-banner-call-to-action-button:hover {
    background: #ff8800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.fixed-sales-banner-call-to-action-button.ebay-deal-button {
    background: var(--ebay-green);
}

.fixed-sales-banner-call-to-action-button.ebay-deal-button:hover {
    background: #4CAF50;
}

.fixed-sales-banner-expiry-date {
    font-size: 0.65rem;
    color: #ddd;
    margin-top: 0;
    margin-left: 0.75rem;
    white-space: nowrap;
}

.fixed-sales-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.fixed-sales-banner-navigation-button {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.fixed-sales-banner-navigation-button:hover {
    background: rgba(0,0,0,0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fixed-sales-banner-container {
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: none;
        aspect-ratio: 2 / 1;
    }

    .fixed-sales-banner-content-wrapper {
        padding: 0.4rem;
        gap: 0.15rem;
    }

    .fixed-sales-banner-primary-title {
        font-size: 0.8rem;
    }

    .fixed-sales-banner-secondary-title {
    font-size: 0.55rem;
    margin-bottom: 0.4rem;
    }

    .fixed-sales-banner-call-to-action-button {
        padding: 0.45rem 0.75rem;
        font-size: 0.65rem;
    }

    .fixed-sales-banner-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    }

    .fixed-sales-banner-expiry-date {
        margin-left: 0;
        font-size: 0.6rem;
    }

    .fixed-sales-banner-navigation-button {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
    }
}
