/* AdStand – minimal, theme-friendly styles. Override freely in your theme. */
.adstand-slot { display: block; width: 100%; margin: 1em auto; }
.adstand-slot.adstand-empty { display: none; }
.adstand-ad { position: relative; display: block; line-height: 1.35; }
.adstand-ad .adstand-link { display: block; color: inherit; text-decoration: none; }
.adstand-ad img.adstand-creative { display: block; width: 100%; height: auto; border-radius: 4px; }
/* "Sponsored" label: below (default) and above sit outside the artwork; overlay is the old corner badge. */
.adstand-label { display: block; font-size: 10px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.adstand-label-below .adstand-label { margin-top: 3px; text-align: right; }
.adstand-label-above .adstand-label { margin-bottom: 3px; text-align: right; }
.adstand-label-overlay .adstand-label { position: absolute; top: 4px; right: 4px; z-index: 1; opacity: 1; background: rgba(0,0,0,.55); color: #fff; padding: 1px 6px; border-radius: 3px; }
.adstand-copy { display: block; padding: .5em 0 0; }
.adstand-headline { display: block; font-size: 1em; }
.adstand-body { display: block; font-size: .9em; opacity: .85; }
.adstand-cta { display: inline-block; margin-top: .4em; font-size: .85em; font-weight: 600; text-decoration: underline; }
.adstand-house { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 60px; border: 2px dashed currentColor; border-radius: 6px; opacity: .55; color: inherit; text-decoration: none; text-align: center; padding: .5em; box-sizing: border-box; }
.adstand-house:hover { opacity: .85; }
.adstand-house span { font-weight: 700; }
.adstand-house small { font-size: .8em; }

/* Portal */
.adstand-portal { --as-border: rgba(0,0,0,.14); --as-muted: rgba(0,0,0,.6); --as-ok: #1a7f37; --as-no: #b42318; --as-accent: #2557d6; }
@media (prefers-color-scheme: dark) { .adstand-portal { --as-border: rgba(255,255,255,.2); --as-muted: rgba(255,255,255,.65); --as-ok: #4ac26b; --as-no: #ff7b72; --as-accent: #7aa2ff; } }
.adstand-portal * { box-sizing: border-box; }
.adstand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1em; margin: 1em 0 2em; }
.adstand-card { border: 1px solid var(--as-border); border-radius: 8px; padding: 1em; display: flex; flex-direction: column; gap: .4em; }
.adstand-card h3, .adstand-card h4 { margin: 0; }
.adstand-price { font-size: 1.4em; font-weight: 700; }
.adstand-muted { color: var(--as-muted); font-size: .9em; }
.adstand-btn, .adstand-portal button[type="submit"] { display: inline-block; padding: .55em 1.1em; border-radius: 6px; border: 0; background: var(--as-accent); color: #fff !important; text-decoration: none; cursor: pointer; font-weight: 600; font-size: 1em; }
.adstand-btn.secondary { background: transparent; color: var(--as-accent) !important; border: 1px solid var(--as-accent); }
.adstand-btn.danger { background: transparent; color: var(--as-no) !important; border: 1px solid var(--as-no); }
.adstand-portal button[disabled] { opacity: .5; cursor: not-allowed; }
.adstand-form p { margin: 0 0 1em; }
.adstand-form label { display: block; font-weight: 600; margin-bottom: .25em; }
.adstand-form input[type="text"], .adstand-form input[type="url"], .adstand-form input[type="email"], .adstand-form input[type="password"], .adstand-form input[type="date"], .adstand-form textarea, .adstand-form select { width: 100%; max-width: 520px; padding: .5em; border: 1px solid var(--as-border); border-radius: 6px; font: inherit; }
.adstand-form .adstand-hint { display: block; font-weight: 400; color: var(--as-muted); font-size: .85em; }
.adstand-availability { display: block; margin-top: .4em; font-size: .95em; }
.adstand-ok { color: var(--as-ok); }
.adstand-no { color: var(--as-no); }
.adstand-use-date { background: none; border: 1px solid currentColor; border-radius: 4px; color: inherit; cursor: pointer; padding: 0 .5em; }
.adstand-notice { padding: .75em 1em; border-radius: 6px; border-left: 4px solid var(--as-accent); background: rgba(37,87,214,.08); margin: 0 0 1em; }
.adstand-notice.error { border-color: var(--as-no); background: rgba(180,35,24,.08); }
.adstand-notice.success { border-color: var(--as-ok); background: rgba(26,127,55,.08); }
.adstand-table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95em; }
.adstand-table th, .adstand-table td { text-align: left; padding: .5em; border-bottom: 1px solid var(--as-border); vertical-align: top; }
.adstand-table-wrap { overflow-x: auto; }
.adstand-badge { display: inline-block; padding: .1em .55em; border-radius: 999px; font-size: .8em; border: 1px solid var(--as-border); white-space: nowrap; }
.adstand-badge.st-active, .adstand-badge.pay-paid { color: var(--as-ok); border-color: currentColor; }
.adstand-badge.st-changes_requested, .adstand-badge.pay-past_due, .adstand-badge.st-draft { color: #b26b00; border-color: currentColor; }
.adstand-badge.st-rejected, .adstand-badge.pay-refunded { color: var(--as-no); border-color: currentColor; }
.adstand-stats { display: flex; gap: 1.5em; flex-wrap: wrap; margin: 1em 0; }
.adstand-stats div { min-width: 110px; }
.adstand-stats strong { display: block; font-size: 1.6em; }
.adstand-preview-box { border: 1px dashed var(--as-border); padding: 1em; border-radius: 8px; margin: 1em 0; }
.adstand-preview-box .adstand-ad { margin: 0 auto; }
.adstand-messages { border-top: 1px solid var(--as-border); margin-top: 1.5em; padding-top: 1em; }
.adstand-msg { margin: 0 0 .8em; padding: .6em .8em; border-radius: 6px; border: 1px solid var(--as-border); }
.adstand-msg.mine { margin-left: 2em; }
.adstand-actions { display: flex; gap: .6em; flex-wrap: wrap; align-items: center; margin: 1em 0; }
.adstand-actions form { margin: 0; }
.adstand-hp { position: absolute !important; left: -9999px !important; }
.adstand-local-preview { display: block; }
.adstand-local-preview img { display: block; margin-top: .5em; border: 1px solid var(--as-border); }
.adstand-form input[type="file"] { display: block; }
