@font-face { font-family:JdrAlbumAsap; src:url('/lib/fonts/v3/Asap-Regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:JdrAlbumAsap; src:url('/lib/fonts/v3/Asap-Bold.woff2') format('woff2'); font-weight:700; font-display:swap; }

dialog.jdr-stickers {
    --pine:#164d3c; --ink:#213e32; --gold:#bda267; --muted:#586b60;
    box-sizing:border-box; width:min(586px,calc(100vw - 20px)); max-width:none; max-height:calc(100dvh - 18px);
    margin:auto; padding:0; overflow:auto; color:var(--ink); text-align:left;
    border:1px solid var(--gold); border-radius:14px; background:#f5f2e8;
    box-shadow:0 18px 70px #051b1790,0 0 0 3px #102e25;
    font:15px/1.4 JdrAlbumAsap,Arial,sans-serif;
}
dialog.jdr-stickers::backdrop { background:rgba(8,27,23,.76); }
.jdr-stickers *, .jdr-stickers *::before, .jdr-stickers *::after { box-sizing:border-box; }
.jdr-stickers [hidden] { display:none !important; }
.jdr-stickers button { font:inherit; color:inherit; cursor:pointer; }
.jdr-stickers button:focus-visible,.jdr-upload-label:focus-within { outline:3px solid #cf941b; outline-offset:2px; }
.jdr-stickers h2,.jdr-stickers h3,.jdr-stickers h4,.jdr-stickers p { padding:0; margin:0; background:none; border:0; text-shadow:none; color:inherit; text-align:left; width:auto; height:auto; }
.jdr-album-cover {
    isolation:isolate; position:relative; display:flex; align-items:center; min-height:112px; overflow:hidden;
    padding:16px 150px 16px 26px; color:#fff8df; border-bottom:3px double #c6ad70;
    background:radial-gradient(ellipse at 78% 80%,#49745b66,transparent 50%),repeating-linear-gradient(110deg,#ffffff02 0 2px,transparent 2px 8px),linear-gradient(115deg,#0e392f,#205e49 66%,#123c33);
}
.jdr-album-cover::after { content:""; position:absolute; z-index:-1; pointer-events:none; inset:0 34px 0 auto; width:160px; background:url('/liga/images/rei-positivo-1.png') no-repeat center 4px/auto 145px; }
.jdr-album-cover::before { content:""; position:absolute; inset:7px; border:1px solid #e3ca8038; border-radius:8px 8px 2px 2px; pointer-events:none; }
.jdr-stickers h2 { font:bold clamp(25px,4vw,34px)/1.06 Georgia,serif; letter-spacing:-.025em; text-shadow:0 2px 3px #08291e; color:#fff7df; }
.jdr-album-plan { display:block; font-weight:bold; font-size:12px; color:#f3d894; margin:0 0 6px; }
.jdr-album-plan:empty { display:none; }
.jdr-stickers .jdr-album-close { position:absolute; top:12px; right:12px; width:30px; height:30px; padding:0; line-height:24px; font-size:22px; color:#f6edd0; border:1px solid #cabd87a6; border-radius:50%; background:#143f35; }
.jdr-album-page { padding:20px; min-height:52px; }
.jdr-album-page h3 { font:bold 19px/1.2 JdrAlbumAsap,Arial,sans-serif; color:var(--pine); }
.jdr-sticker-mark { display:block; width:30px; height:30px; opacity:.68; background:url('/images/chat-sticker-icon.svg') center/contain no-repeat; }
.jdr-album-summary { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:13px; }
.jdr-album-summary span { color:var(--muted); font-size:13px; }
.jdr-sticker-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.jdr-sticker-cell { min-width:0; text-align:center; }
.jdr-stickers .jdr-slot-action {
    position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    width:100%; height:89px; padding:12px 3px 4px; border:1px solid #a3b89e; border-radius:9px;
    color:#27543f; background:linear-gradient(145deg,#fffcf1,#e4eddd); font-size:12px; font-weight:bold;
    box-shadow:inset 0 0 0 2px #fff9,0 2px 0 #cdd1c1;
}
.jdr-stickers .is-locked .jdr-slot-action { color:#837149; border-color:#cfc4a6; background:linear-gradient(145deg,#f2eddf,#e6decc); }
.jdr-stickers .is-empty .jdr-slot-action { border-style:dashed; }
.jdr-stickers .jdr-slot-action:hover { border-color:#a5813c; box-shadow:inset 0 0 0 2px #f3d588,0 2px 0 #c5bc9d; }
.jdr-slot-position { position:absolute; top:4px; left:7px; font-size:11px; font-variant-numeric:tabular-nums; }
.jdr-sticker-cell img { width:100%; max-width:70px; height:48px; object-fit:contain; }
.jdr-lock-mark { position:relative; width:17px; height:13px; border:2px solid currentColor; border-radius:3px; }
.jdr-lock-mark::before { content:""; position:absolute; bottom:10px; left:1px; width:11px; height:9px; border:2px solid currentColor; border-bottom:0; border-radius:7px 7px 0 0; }
.jdr-lock-mark::after { content:""; position:absolute; top:3px; left:5px; width:3px; height:4px; border-radius:2px; background:currentColor; }
.jdr-stickers .jdr-album-replace { margin-top:3px; padding:4px 6px; border:0; background:transparent; color:var(--pine); font-size:13px; text-decoration:underline; }
.jdr-stickers .jdr-slot-note,.jdr-stickers .jdr-upload-controls p { margin-top:12px; font-size:14px; color:var(--muted); }
.jdr-stickers .jdr-upload-controls p { margin:5px 0 12px; }
.jdr-album-footer { padding:12px 20px; display:flex; justify-content:flex-end; align-items:center; gap:8px; border-top:1px solid #cbd1c2; background:#e5eae1; }
.jdr-album-footer button,.jdr-upload-label,.jdr-album-page>button { display:inline-block; padding:8px 16px; font:700 14px/1.3 JdrAlbumAsap,Arial,sans-serif; border:1px solid #93a899; border-radius:7px; background:linear-gradient(#fffefa,#ebf0e6); color:#275442; cursor:pointer; box-shadow:0 1px 0 #bfcabe; }
.jdr-album-footer .jdr-album-primary { color:#fff; background:linear-gradient(#307b5e,#1b5b46); border-color:#154536; }
.jdr-album-footer button:disabled { opacity:.55; cursor:default; }
.jdr-stickers .jdr-album-status:not(:empty) { margin:0 20px 14px; padding:9px 12px; border-left:3px solid #bc9847; border-radius:3px; background:#fff9e8; color:#624c22; font-size:14px; }
.jdr-stickers .jdr-album-status[data-kind="error"] { border-color:#a75f51; background:#fbefe7; color:#784635; }
.jdr-stickers .jdr-album-status[data-kind="busy"] { border-color:#79a58b; background:#e9efe5; color:#325941; }
.jdr-album-status[data-kind="busy"]::before { content:""; display:inline-block; margin-right:8px; width:12px; height:12px; vertical-align:-2px; border:2px solid #a9bba8; border-right-color:#38684b; border-radius:50%; }
@media(prefers-reduced-motion:no-preference) {
    .jdr-album-status[data-kind="busy"]::before { animation:jdr-album-wait .8s linear infinite; }
    @keyframes jdr-album-wait { to { transform:rotate(360deg); } }
}
.jdr-upload-editor { display:grid; grid-template-columns:minmax(130px,1fr) minmax(0,1.65fr); align-items:stretch; gap:18px; }
.jdr-chat-preview { display:grid; place-content:center; justify-items:center; gap:9px; min-height:157px; background:radial-gradient(at top,#f2f4e8,#dce7dc); border:1px solid #bbcaba; border-radius:9px; color:#3a5f49; font-size:12px; }
.jdr-preview-bubble { position:relative; display:grid; place-items:center; width:100px; height:96px; border:1px solid #bfcab9; background:#fffdf5; border-radius:12px 12px 12px 2px; box-shadow:0 2px 3px #1c44301a; }
.jdr-preview-bubble img,.jdr-chat-sticker { width:80px; height:80px; object-fit:contain; vertical-align:middle; }
.jdr-upload-editor .jdr-chat-preview { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:9px 3px; }
.jdr-upload-editor .jdr-preview-bubble { display:block; box-sizing:border-box; width:min(94%,146px); height:auto; padding:6px; }
.jdr-crop-viewport { position:relative; overflow:hidden; display:grid; place-items:center; width:100%; aspect-ratio:1; }
.jdr-crop-viewport img { position:absolute; inset:0 auto auto 0; width:100%; height:100%; max-width:none; max-height:none; pointer-events:none; }
.jdr-crop-viewport.is-cropping { touch-action:none; user-select:none; cursor:grab; }
.jdr-crop-viewport.is-cropping:active { cursor:grabbing; }
.jdr-crop-viewport.is-cropping img { object-fit:fill; }
.jdr-crop-options { grid-column:1 / -1; min-width:0; margin:0; padding:12px 14px; border:1px solid #bbcaba; border-radius:8px; }
.jdr-crop-options label { display:grid; gap:4px; min-width:0; color:var(--pine); font:700 13px JdrAlbumAsap,Arial,sans-serif; }
.jdr-crop-options select { width:100%; padding:6px 8px; border:1px solid #93a899; border-radius:5px; background:#fffdf5; color:var(--ink); font:inherit; }
.jdr-crop-sliders { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:12px; }
.jdr-crop-sliders input { width:100%; margin:0; min-height:26px; accent-color:var(--pine); }
.jdr-upload-controls { min-width:0; align-self:center; }
.jdr-upload-label { position:relative; background:linear-gradient(#ffdf86,#efbd52); color:#463913; border-color:#c29a42; }
.jdr-upload-label input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.jdr-upload-name { display:block; overflow-wrap:anywhere; color:var(--muted); font-size:12px; margin-top:5px; }
dialog.jdr-stickers-checkout { width:min(940px,calc(100vw - 16px)); }
.jdr-stickers-checkout .jdr-album-cover { min-height:75px; }
.jdr-stickers-checkout .jdr-album-cover::after { background-size:auto 105px; }
.jdr-stickers-checkout .jdr-album-page { padding:10px; }
.jdr-stickers-checkout h3 { margin:0 5px 8px; }
.jdr-stickers iframe { display:block; width:100%; height:clamp(180px,calc(100dvh - 218px),580px); border:1px solid #c9cebf; border-radius:8px; background:white; }
dialog.jdr-stickers-payment[open] {
    position:fixed; inset:0; display:grid; grid-template-rows:auto minmax(0,1fr); width:100%; max-width:none;
    height:100vh; height:100dvh; max-height:none; margin:0; padding:0; overflow:hidden;
    border:0; border-radius:0; box-shadow:none; background:white;
}
.jdr-stickers-payment .jdr-album-cover,.jdr-stickers-payment .jdr-album-status,.jdr-stickers-payment .jdr-album-page h3 { display:none; }
.jdr-stickers-payment .jdr-album-page { grid-row:2; padding:0; min-height:0; }
.jdr-stickers-payment .jdr-album-page iframe { display:block; width:100%; height:100%; border:0; border-radius:0; }
.jdr-stickers-payment .jdr-album-footer {
    grid-row:1; justify-content:flex-start; padding:3px 8px; border:0; border-bottom:1px solid #cbd1c2;
}
.jdr-stickers-payment .jdr-album-footer button { min-height:36px; padding:5px 12px; }
.chatDialog .chatStickerBtn { vertical-align:top; display:inline-block; width:23px; height:23px; margin:3px 0 0 2px; padding:0; border:0; cursor:pointer; border-radius:4px; background:transparent url('/images/chat-sticker-icon.svg') center/18px no-repeat; }
.chatDialog .chatStickerBtn[hidden] { display:none; }
.chatDialog form:has(.chatStickerBtn:not([hidden])) input[name=message] { width:190px; }
.chatDialog .chatSubscriptionBar { display:flex; justify-content:center; align-items:center; gap:7px; background:#d9e6f7; height:32px; margin:-20px 0 -11px 3px; width:244px; font-weight:bold; }
.jdr-sticker-notice { position:fixed; z-index:2147483647; bottom:12px; left:50%; transform:translateX(-50%); background:#234b3b; color:#fff; border-radius:7px; padding:9px 16px; font:15px JdrAlbumAsap,Arial,sans-serif; }
@media(max-width:460px) {
    .jdr-album-cover { min-height:91px; padding:14px 118px 14px 16px; }
    .jdr-album-cover::after { right:23px; width:110px; background-size:auto 119px; }
    .jdr-album-page { padding:14px; }
    .jdr-sticker-grid { gap:5px; }
    .jdr-stickers .jdr-slot-action { height:68px; font-size:11px; }
    .jdr-sticker-cell img { height:32px; }
    .jdr-upload-editor { grid-template-columns:minmax(106px,.8fr) minmax(0,1.15fr); gap:12px; }
    .jdr-album-footer { padding:10px 14px; }
}
@media(max-height:440px) {
    .jdr-album-cover,.jdr-stickers-checkout .jdr-album-cover { min-height:60px; padding-block:9px; }
    .jdr-album-cover::after { background-size:auto 82px; }
    .jdr-album-cover h2 { font-size:24px; }
    .jdr-stickers iframe { height:55dvh; }
}
