/**
 * Google AdSense High-CTR & Anti-CLS Engine
 * 
 * Strict AdSense Policy Compliance:
 * - Clear "ADVERTISEMENT" labels
 * - Zero Cumulative Layout Shift (CLS) through reserved container dimensions
 * - Optimal placement spacing away from navigational elements to prevent accidental clicks
 */

/* Main Container Wrapper */
.kiks-ad-container {
    margin: 25px auto;
    text-align: center;
    position: relative;
    max-width: 100%;
    clear: both;
}

/* Policy Compliant "ADVERTISEMENT" Label */
.kiks-ad-label {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.kiks-ad-label span {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    background-color: transparent;
    padding: 1px 6px;
    border-radius: 2px;
}

/* Inner Bounding Box - Guarantees Anti-CLS */
.kiks-ad-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--kiks-radius, 6px);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.kiks-ad-inner ins.adsbygoogle {
    display: block !important;
    margin: 0 auto;
}

/* ==========================================================================
   Slot Sizing & Responsive Rules
   ========================================================================== */

/* 1. Header Leaderboard Ad (728x90 desktop / 320x50 or 300x100 mobile) */
.kiks-ad-leaderboard-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
}

.kiks-ad-leaderboard .kiks-ad-inner {
    min-height: 90px;
    max-width: 728px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .kiks-ad-leaderboard .kiks-ad-inner {
        min-height: 60px;
        max-width: 320px;
    }
}

/* 2. Catalog In-Feed Sponsored Unit */
.kiks-infeed-ad-item,
.kiks-grid-ad-item {
    list-style: none !important;
    grid-column: span 1;
}

.kiks-ad-infeed {
    margin: 0;
    height: 100%;
}

.kiks-ad-infeed .kiks-ad-inner {
    height: 100%;
    min-height: 380px;
    background: #ffffff;
    border: 2px dashed #e2e8f0;
}

/* 3. Single Product Specs Ad */
.kiks-ad-product .kiks-ad-inner {
    min-height: 100px;
    max-width: 100%;
    background: #ffffff;
}

/* 4. Sidebar Ad (300x250 or 300x600 sticky) */
.kiks-ad-sidebar .kiks-ad-inner {
    min-height: 250px;
    max-width: 300px;
    margin: 0 auto;
    background: #ffffff;
}

/* 5. Above Footer Billboard */
.kiks-ad-footer-wrapper {
    margin: 35px auto 25px;
}

.kiks-ad-footer .kiks-ad-inner {
    min-height: 90px;
    max-width: 970px;
    margin: 0 auto;
}

/* 6. In-Article Ad Unit */
.kiks-ad-article {
    margin: 30px auto;
}

.kiks-ad-article .kiks-ad-inner {
    min-height: 250px;
    max-width: 728px;
    margin: 0 auto;
    background: #ffffff;
}

/* ==========================================================================
   Demo / Preview Placeholder Styling
   ========================================================================== */
.kiks-ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #64748b;
    text-align: center;
    width: 100%;
}

.kiks-ad-placeholder-icon {
    width: 38px;
    height: 38px;
    background-color: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kiks-ad-placeholder-text strong {
    display: block;
    font-size: 13px;
    color: #334155;
    font-family: var(--kiks-font-heading, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kiks-ad-placeholder-text span {
    font-size: 11.5px;
    color: #94a3b8;
}
