/* Styles for the Promotional Ad Component */
#promo-ad {
    position: fixed;
    bottom: 20px;
    /* CHANGE: Positioned to the bottom right */
    right: 20px;
    background-color: #c0392b;
    color: white;
    /* CHANGE: Padding reduced to make the ad smaller */
    padding: 12px 20px;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    /* CHANGE: Transform updated for right-side positioning */
    transform: translateY(200%); /* Start off-screen below */
    /* CHANGE: Animation delay increased to 2 seconds */
    animation: slideInUp 0.5s 2s forwards ease-out;
}

#promo-ad.hidden {
    animation: slideOutDown 0.5s forwards ease-in;
}

/* Keyframes for the ad animation */
@keyframes slideInUp {
    from { transform: translateY(200%); }
    to   { transform: translateY(0); }
}
@keyframes slideOutDown {
    from { transform: translateY(0); }
    to   { transform: translateY(200%); }
}

#promo-ad .promo-icon {
    font-size: 1.4em; /* Slightly smaller icon */
    line-height: 1;
}

#promo-ad a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s;
     /* CHANGE: Slightly smaller font size */
    font-size: 0.95em;
}

#promo-ad a:hover {
    border-color: white;
}

#close-ad-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 0 0 10px;
    line-height: 1;
    transition: color 0.2s;
}
#close-ad-btn:hover {
    color: white;
}