.advertising-preferences-panel[hidden], .photocraft-ad-slot[hidden], .photocraft-ad-placeholder[hidden], .advertising-gpc[hidden], .advertising-storage-notice[hidden] { display: none; }
.advertising-preferences { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.advertising-preferences-panel { position: fixed; z-index: 1001; bottom: 20px; right: 20px; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; box-sizing: border-box; padding: 22px; border: 1px solid #dcdde3; border-radius: 14px; color: #292a30; background: #fff; box-shadow: 0 10px 40px #1b23331f; font-size: 14px; line-height: 1.55; }
.advertising-preferences-panel h2 { margin: 0 0 10px; font-size: 20px; }
.advertising-preferences-panel p { margin: 10px 0; }
.advertising-preferences-panel a { color: #4258ec; text-decoration: underline; }
.advertising-withdrawal-note { font-size: 13px; }
.advertising-storage-notice { color: #8b2e20; }
.advertising-gpc { padding: 8px 10px; background: #f2f3f8; }
.advertising-choice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.advertising-choice-actions button { flex: 1 1 180px; padding: 10px 12px; border: 1px solid #4258ec; border-radius: 8px; background: #fff; color: #4258ec; font: inherit; font-weight: 600; cursor: pointer; }
.advertising-choice-actions button:disabled { color: #71717a; border-color: #a5a5ad; cursor: not-allowed; }
.advertising-close, .photocraft-ad-manage { padding: 3px 0; border: 0; background: transparent; color: #4258ec; font: inherit; text-decoration: underline; cursor: pointer; }
.advertising-preferences:focus-visible, .advertising-preferences-panel button:focus-visible, .photocraft-ad-manage:focus-visible { outline: 3px solid #4258ec; outline-offset: 3px; }
.photocraft-ad-slot { box-sizing: border-box; margin: 44px auto; padding: 16px 0; border-top: 1px solid #e4e4e7; border-bottom: 1px solid #e4e4e7; text-align: center; clear: both; }
.photocraft-ad-label { margin: 0 0 10px !important; color: #5b5b66; font: 11px/1.5 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.photocraft-ad-banner { width: 100%; min-width: 300px; min-height: 330px; }
.photocraft-ad-native { min-height: 380px; }
.photocraft-ad-banner .photocraft-ad-content { width: 300px; height: 250px; margin: 0 auto; }
.photocraft-ad-native .photocraft-ad-content, .photocraft-ad-native .photocraft-ad-placeholder { min-height: 300px; }
.photocraft-ad-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; min-height: 250px; padding: 0 12px; color: #62626e; font: 13px/1.5 system-ui, sans-serif; }
.photocraft-ad-placeholder:not([hidden]) + .photocraft-ad-content { display: none; }
@media (max-width: 640px) { .advertising-preferences-panel { bottom: 12px; right: 16px; max-height: calc(100dvh - 24px); padding: 18px; } .photocraft-ad-slot { margin: 32px auto; } }
/* Preserve the provider's 300px Banner on narrow phones. Centre it against the
   article's available width instead of letting min-width push its right edge. */
@media (max-width: 360px) {
  .photocraft-ad-banner { width: 300px; margin-left: calc((100% - 300px) / 2); margin-right: calc((100% - 300px) / 2); }
}

/* Keep a single Native card readable on phones and desktop. */
.photocraft-ad-slot { max-width: 900px; }
.photocraft-ad-native .photocraft-ad-content { width: min(100%, 360px); margin: 0 auto; }
