
/* --- Sticky Ad Container (Solid Full Width) --- */
.ad-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;

    padding: 10px 10px 15px 10px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    z-index: 1000;

    /* 🟢 Solid Background: No more "peekaboo" distractions */
    background: #ffffff;

    /* 🟢 Crisp boundary line */
    border-top: 1px solid #e1e4e8;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06); /* Soft shadow for elevation */

    display: flex;
    justify-content: center;
    align-items: center;

    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
    transform: translateY(0);
}

/* 🟢 Hidden State (Starts off-screen) */
.ad-container.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* 🟢 The Size Constraint Class (Mobile First) */
.ad-size {
    width: 320px;
    height: 50px;
}

/* 🖥️ Desktop overrides for the ad size */
@media (min-width: 768px) {
    .ad-size {
        width: 728px;
        height: 90px;
    }
}

/* 🟢 The Dummy Prototype Box */
.dummy-ad-box {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- The Dismiss Button (Stealth Mode) --- */
.close-ad {
    position: absolute;
    top: 6px;        /* 🟢 Shifted down slightly */
    right: 10px;     /* 🟢 Shifted away from the right edge */
    background: transparent;
    border: none;
    box-shadow: none;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    padding: 0;
    z-index: 10;
}

.close-ad:hover {
    background: transparent;
    color: #333;
}

/* 🟢 Give the injection wrapper full width so the ad can expand inside it */
#ad-injection-point {
    width: 100%;
    display: flex;
    justify-content: center;
}