.public-shop .shop-ad-preview { margin: 28px 0; padding: 20px 12px; border: 1px dashed #8b95a5; border-radius: 12px; background: #f8fafc; text-align: center; min-width: 0; clear: both; }
.public-shop .shop-ad-preview-label,.public-shop .shop-ad-preview-caption { margin: 0 0 12px; overflow-wrap: anywhere; color: #475569; }
.public-shop .shop-ad-preview-caption { margin: 12px 0 0; }
.public-shop .shop-ad-preview-frame { box-sizing: border-box; display: grid; place-items: center; width: 100%; max-width: 320px; height: 100px; margin: auto; border: 1px solid #94a3b8; border-radius: 6px; background: repeating-linear-gradient(135deg,#eef2f6,#eef2f6 12px,#f8fafc 12px,#f8fafc 24px); }
.public-shop .shop-ad-preview-size { padding: 8px; color: #334155; }
.public-shop .shop-ad-size-tablet,.public-shop .shop-ad-size-desktop { display: none; }
.public-shop [data-ad-profile="banner"] .shop-ad-size-mobile::after { content: "สูงสุด 320 × 100"; }
.public-shop [data-ad-profile="rectangle"] .shop-ad-preview-frame,.public-shop [data-ad-profile="large-rectangle"] .shop-ad-preview-frame { max-width: 300px; height: 250px; }
.public-shop [data-ad-profile="rectangle"] .shop-ad-preview-size::after { content: "สูงสุด 300 × 250"; }
.public-shop [data-ad-profile="large-rectangle"] .shop-ad-size-mobile::after { content: "สูงสุด 300 × 250"; }
@media (max-width: 599px) { .public-shop .shop-ad-preview:not([data-ad-devices~="mobile"]) { display: none; } }
@media (min-width: 600px) and (max-width: 1023px) {
 .public-shop .shop-ad-preview:not([data-ad-devices~="tablet"]) { display: none; }
 .public-shop .shop-ad-size-mobile { display: none; } .public-shop .shop-ad-size-tablet { display: inline; }
 .public-shop [data-ad-profile="banner"] .shop-ad-preview-frame { max-width: 468px; height: 60px; }
 .public-shop [data-ad-profile="banner"] .shop-ad-size-tablet::after { content: "สูงสุด 468 × 60"; }
}
@media (min-width: 1024px) {
 .public-shop .shop-ad-preview:not([data-ad-devices~="desktop"]) { display: none; }
 .public-shop .shop-ad-size-mobile { display: none; } .public-shop .shop-ad-size-desktop { display: inline; }
 .public-shop [data-ad-profile="banner"] .shop-ad-preview-frame { max-width: 728px; height: 90px; }
 .public-shop [data-ad-profile="banner"] .shop-ad-size-desktop::after { content: "สูงสุด 728 × 90"; }
}
@media (min-width: 600px) {
 .public-shop [data-ad-profile="large-rectangle"] .shop-ad-preview-frame { max-width: 336px; height: 280px; }
 .public-shop [data-ad-profile="large-rectangle"] .shop-ad-size-tablet::after,.public-shop [data-ad-profile="large-rectangle"] .shop-ad-size-desktop::after { content: "สูงสุด 336 × 280"; }
}
/* Keep previews out of players, personal Shorts, dialogs and fullscreen experiences. */
.public-shop .shop-ad-live { min-width: 0; overflow-wrap: anywhere; }
.public-shop .shop-ad-live ins.adsbygoogle { display: block; max-width: 100%; }
.public-shop .shop-ad-live ins.is-responsive { --adsense-slot-width: 320px; --adsense-slot-height: 100px; width: 100%; max-width: var(--adsense-slot-width); height: var(--adsense-slot-height); margin: auto; }
.public-shop .shop-ad-live[data-ad-profile="shorts-banner"] ins.is-responsive { --adsense-slot-height: 50px; }
.public-shop .shop-ad-live:is([data-ad-profile="rectangle"],[data-ad-profile="large-rectangle"]) ins.is-responsive { --adsense-slot-width: 300px; --adsense-slot-height: 250px; }
@media (min-width: 600px) { .public-shop .shop-ad-live:is([data-ad-profile="banner"],[data-ad-profile="shorts-banner"]) ins.is-responsive { --adsense-slot-width: 468px; --adsense-slot-height: 60px; } .public-shop .shop-ad-live[data-ad-profile="large-rectangle"] ins.is-responsive { --adsense-slot-width: 336px; --adsense-slot-height: 280px; } }
@media (min-width: 1024px) { .public-shop .shop-ad-live:is([data-ad-profile="banner"],[data-ad-profile="shorts-banner"]) ins.is-responsive { --adsense-slot-width: 728px; --adsense-slot-height: 90px; } }
.public-shop .shop-ad-live button { max-width: 100%; white-space: normal; padding: 12px 16px; }
/* Google's own rule for slots it could not fill; the frame goes too, so no empty box stays on the page or in a player. */
.public-shop ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.public-shop .shop-ad-live:is([hidden],[data-adsense-outcome="unfilled"],:has(> ins.adsbygoogle[data-ad-status="unfilled"])) { display: none !important; }
.public-shop:has([data-shorts-viewer]:not([hidden])) .shop-ad-preview,
.public-shop:has([data-shorts-source="following"][aria-pressed="true"]) .shop-ad-preview,
.public-shop:has([data-shorts-source="saved"][aria-pressed="true"]) .shop-ad-preview,
.public-shop:has([aria-modal="true"]:not([hidden], [hidden] *, [aria-hidden="true"], [aria-hidden="true"] *)) .shop-ad-preview { display: none; }
/* Public content for the dedicated ad destination; typography stays central. */
.adsense-showcase { display: grid; gap: 24px; margin: 24px 0; min-width: 0; }
.adsense-showcase :is(header,article,section) { min-width: 0; overflow-wrap: anywhere; }
.adsense-showcase-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 20px; }
.adsense-showcase-card { padding: 24px; border: 1px solid #dbe4f3; border-radius: 18px; background: white; }
.adsense-showcase-links { display: flex; flex-wrap: wrap; gap: 12px; }
.adsense-showcase .button { max-width: 100%; white-space: normal; }
