/* Add Watermark to Photo — page-specific styles on top of ui.css (editor shell) and site.css. */

/* Mode picker: single vs tiled */
.wm-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wm-mode {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 8px 10px;
    border: 2px solid transparent; border-radius: 16px; background: var(--surface-container-low-color); color: var(--text-color);
    font: 600 .875rem/1.2 var(--md-ref-typeface-plain); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.wm-mode:hover { border-color: var(--outline-variant-color); }
.wm-mode.is-active { border-color: var(--primary-color); background: var(--primary-container-color); color: var(--on-primary-container-color); }
.wm-mode__art {
    position: relative; display: block; width: 100%; max-width: 132px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px;
    background: linear-gradient(#2f5f96, #e9a77f 60%, #4a4b72 60%, #272a45);
}
.wm-mode__art i { position: absolute; height: 8%; border-radius: 2px; background: rgba(255,255,255,.85); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.wm-mode__art--single i { right: 8%; bottom: 9%; width: 38%; }
.wm-mode__art--tiled { --r: -30deg; }
.wm-mode__art--tiled i { width: 34%; opacity: .7; transform: rotate(var(--r)); }
.wm-mode__art--tiled i:nth-child(1) { left: -6%; top: 14%; }
.wm-mode__art--tiled i:nth-child(2) { left: 40%; top: 6%; }
.wm-mode__art--tiled i:nth-child(3) { left: 14%; top: 46%; }
.wm-mode__art--tiled i:nth-child(4) { left: 62%; top: 38%; }
.wm-mode__art--tiled i:nth-child(5) { left: -4%; top: 80%; }
.wm-mode__art--tiled i:nth-child(6) { left: 44%; top: 74%; }

#wm-single-body, #wm-tiled-body { margin-top: 12px; }

/* Disabled groups (text switched off, no logo yet) */
#wm-text-body.is-off, #wm-logo-size-row.is-off { opacity: .45; pointer-events: none; }

/* The tiled pattern cannot be dragged */
#ts-canvas.is-tiled { cursor: default; }

/* Confirm dialog (reuses the privacy dialog look) */
.wm-confirm { width: min(400px, calc(100% - 32px)); }
.wm-confirm .pd__lead { margin: 4px 0 8px; font-size: 1rem; color: var(--text-color); text-align: start; }
