.ads-controls{display:flex;gap:20px;align-items:end;flex-wrap:wrap;margin-top:18px}.ads-controls label{flex:1;min-width:180px}.ads-controls select{width:100%;max-width:100%}.ad-preview-card{margin-top:20px}.ad-preview-card .card-head{align-items:start}.ad-search-preview{background:#fff;border:1px solid #e7e7e7;border-radius:18px;padding:26px 30px;max-width:760px;margin:22px 0;font-family:Arial,sans-serif;overflow-wrap:anywhere}.ad-search-domain{font-size:15px;color:#222}.ad-search-domain span{font-size:12px;color:#777;margin-left:12px}.ad-search-path{font-size:12px;color:#777;margin-top:4px}.ad-search-preview .ad-search-title{font-size:21px;line-height:1.35;font-weight:400;color:#174ea6;margin:12px 0 8px}.ad-search-preview .ad-search-text{font-size:15px;line-height:1.55;color:#222;margin:0}.ads-mobile .ad-search-preview{max-width:375px;padding:20px}.ads-mobile .ad-search-title{font-size:20px}.ad-preview-card details{margin-top:20px;overflow-wrap:anywhere}.ad-preview-card details p{margin:12px 0}@media(max-width:600px){.ad-search-preview{padding:18px}.ads-controls{gap:12px}.ad-preview-card .card-head{flex-wrap:wrap}}

.ads-buttons{display:flex;gap:8px;flex-wrap:wrap}.ad-search-preview.has-photo{display:flex;flex-direction:row-reverse;align-items:center;gap:24px;max-width:850px}.ad-search-copy{flex:1;min-width:0}.ad-search-photo{width:210px;height:170px;object-fit:contain;border-radius:12px;background:#f7f6f2}.ad-photo-unavailable{font-size:12px;color:#777;max-width:180px}.ad-photos-head{display:flex;align-items:center;gap:20px;justify-content:space-between}.ad-photo-strip{display:flex;gap:10px;margin-top:12px;overflow-x:auto;padding-bottom:8px}.ad-photo-choice{flex:0 0 140px;padding:4px;border:2px solid transparent;border-radius:10px;background:#f7f6f2;color:#333;text-align:left}.ad-photo-choice.selected{border-color:var(--accent,#ed5928)}.ad-photo-choice img{display:block;width:128px;height:92px;object-fit:contain;border-radius:6px;background:white}.ad-photo-choice span{display:block;padding:6px 4px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.ad-photo-picker{width:min(940px,calc(100vw - 32px));max-height:90dvh;box-sizing:border-box;border:1px solid #deded8;border-radius:16px;padding:24px;background:#fff;color:#283733}.ad-photo-picker::backdrop{background:#13231a88}.ad-photo-picker .card-head{display:flex;justify-content:space-between;align-items:start;gap:16px}.ad-photo-picker h2{margin:0}.ad-photo-picker input[type=search]{width:100%;margin:8px 0 16px}.ad-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-height:55dvh;overflow:auto;padding:4px}.ad-picker-item{position:relative;padding:8px;border:1px solid #ddd;border-radius:10px;font-size:12px;cursor:pointer;overflow-wrap:anywhere}.ad-picker-item:has(input:checked){border:2px solid #e6592a;padding:7px}.ad-picker-item input{position:absolute;left:12px;top:12px;width:18px;height:18px;accent-color:#e6592a}.ad-picker-item img{width:100%;height:125px;object-fit:contain;display:block;margin-bottom:6px}.ad-photo-picker footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:20px}.ads-mobile .ad-search-preview.has-photo{flex-direction:column;align-items:stretch}.ads-mobile .ad-search-photo{width:100%;height:190px}@media(max-width:600px){.ad-search-preview.has-photo{flex-direction:column;align-items:stretch}.ad-search-photo{width:100%;height:190px}.ad-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-photo-picker{padding:16px}.ad-photo-picker footer{flex-wrap:wrap}.ad-photos-head{gap:10px}}

.ad-photo-choice{display:block;min-width:140px}.ad-photo-picker[open]{display:flex;flex-direction:column;overflow:hidden}.ad-picker-grid{flex:1;min-height:0}.ad-photo-picker>.card-head,.ad-photo-picker>label,.ad-photo-picker>footer{flex-shrink:0}

/* Read-only photo viewer: full Direct image, fitted or at its natural size. */
.ad-search-photo[role="button"]{cursor:zoom-in}
.ad-search-photo[role="button"]:focus-visible{outline:3px solid var(--accent,#ed5928);outline-offset:4px}
.ad-photo-viewer{box-sizing:border-box;width:calc(100vw - 40px);max-width:none;height:calc(100dvh - 40px);max-height:none;margin:auto;padding:0;border:1px solid #deded8;border-radius:16px;background:#fff;color:#283733;overflow:hidden}
.ad-photo-viewer[open]{display:flex;flex-direction:column}
.ad-photo-viewer::backdrop{background:#111c19cc}
.ad-photo-viewer__head{margin:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid #e2e5df;flex-shrink:0}
.ad-photo-viewer__head>div:first-child{min-width:0}
.ad-photo-viewer__head h2{font-family:inherit;font-weight:600;font-size:16px;line-height:1.4;margin:0}
.ad-photo-viewer__head p{font-size:12px;line-height:1.4;margin:3px 0 0;color:#66776e;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:65vw}
.ad-photo-viewer__tools{display:flex;gap:8px;flex-shrink:0}
.ad-photo-viewer button{min-width:44px;min-height:40px;padding:7px 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #deded8;border-radius:9px;background:#fff;color:#283733;font:inherit;cursor:pointer}
.ad-photo-viewer button:hover:not(:disabled){background:#f3f4ef}
.ad-photo-viewer button:focus-visible{outline:3px solid var(--accent,#ed5928);outline-offset:2px}
.ad-photo-viewer button:disabled{opacity:.45;cursor:default}
.ad-photo-viewer [data-photo-close]{font-size:24px;line-height:1}
.ad-photo-viewer__stage{position:relative;flex:1;min-height:0;overflow:auto;background:#f3f4f2;overscroll-behavior:contain}
.ad-photo-viewer__canvas{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.ad-photo-viewer [data-viewer-image]{display:block;flex:none;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;cursor:zoom-in}
.ad-photo-viewer [data-viewer-image][hidden],.ad-photo-viewer [data-photo-status][hidden]{display:none}
.ad-photo-viewer.is-zoomed .ad-photo-viewer__canvas{width:max-content;height:max-content;min-width:100%;min-height:100%}
.ad-photo-viewer.is-zoomed [data-viewer-image]{max-width:none;max-height:none;cursor:zoom-out}
.ad-photo-viewer__status{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:24px;margin:0;font-size:14px;color:#66776e;pointer-events:none}
.ad-photo-viewer__foot{margin:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:18px;padding:10px 20px;border-top:1px solid #e2e5df;font-size:13px;color:#66776e}
.ad-photo-viewer__foot span{display:inline-block;min-width:150px;text-align:center}
@media(max-width:600px){.ad-photo-viewer{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:12px}.ad-photo-viewer__head{padding:10px;gap:8px}.ad-photo-viewer__head h2{font-size:14px}.ad-photo-viewer__head p{max-width:48vw}.ad-photo-viewer__tools{gap:5px}.ad-photo-viewer button{min-height:44px}.ad-photo-viewer__foot{gap:10px;padding:8px}.ad-photo-viewer__foot span{min-width:130px}}
