/* Shared confirmation dialogs: warm ivory, orange accents, touch-friendly controls. */
.confirm-overlay{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;box-sizing:border-box;padding:20px;background:rgba(35,20,12,.58);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.confirm-overlay *{box-sizing:border-box}
.confirm-overlay .confirm-box{width:min(390px,100%);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #fff3e3;border-radius:22px;background:linear-gradient(155deg,#fffdf9,#fff5e9);color:#59351e;box-shadow:0 24px 80px #25120440,0 4px 16px #2512041a;font-family:inherit;animation:confirm-pop .2s ease-out}
.confirm-overlay .confirm-head{display:flex;align-items:center;gap:13px;padding:23px 22px 0;background:none;color:#472c1c;font-size:19px;font-weight:750;line-height:1.35}
.confirm-overlay .confirm-heading{min-width:0;display:flex;flex-direction:column;gap:5px}
.confirm-overlay .confirm-eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:800;color:#bb7c49}
.confirm-overlay .confirm-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border:1px solid #ffd8b0;border-radius:15px;background:linear-gradient(145deg,#fff1de,#ffe0ba);color:#e87817;box-shadow:0 3px 9px #ed8c1810}
.confirm-overlay .confirm-icon svg{width:25px;height:25px;display:block}
.confirm-overlay .confirm-message{margin:0;padding:17px 22px 21px;font-size:14px;font-weight:500;line-height:1.65;color:#83634e;overflow-wrap:anywhere}
.confirm-overlay .confirm-actions{display:flex;gap:10px;margin:0;padding:16px 22px 22px;border-top:1px solid #f3e3d2;background:#fff9f266}
.confirm-overlay .confirm-actions button{min-width:0;min-height:44px;height:auto;padding:11px 16px;border-radius:12px;font-family:inherit;font-size:14px;font-weight:700;line-height:1.35;cursor:pointer;transition:background .15s,box-shadow .15s,transform .15s;-webkit-tap-highlight-color:transparent}
.confirm-overlay .confirm-cancel{flex:0 0 30%;border:1px solid #ead8c5!important;background:#fffaf4;color:#94735b;box-shadow:none}
.confirm-overlay .confirm-accept{flex:1;border:1px solid #e97818;background:linear-gradient(135deg,#f69d36,#eb7419);color:#fff;box-shadow:0 5px 12px #e77a2526}
.confirm-overlay .confirm-actions button:hover{filter:none;transform:translateY(-1px)}
.confirm-overlay .confirm-accept:hover{box-shadow:0 7px 16px #e77a2540}
.confirm-overlay .confirm-actions button:active{transform:translateY(0)}
.confirm-overlay .confirm-actions button:focus-visible,.confirm-overlay .zalo-download-link:focus-visible{outline:3px solid #f9a54f80;outline-offset:3px}
.confirm-overlay.zalo-download-dialog .confirm-box{width:min(370px,100%)}
.confirm-overlay.zalo-download-dialog .confirm-message{padding-bottom:10px;color:#704728;font-weight:650}
.confirm-overlay .zalo-download-help{margin:0 22px 18px;padding:13px;border:1px solid #f2dfc6;border-radius:12px;background:#fff1df80;color:#916d50;font-size:12px;line-height:1.65}
.confirm-overlay .zalo-download-help[hidden]{display:none}
.confirm-overlay .zalo-download-help p{margin:0 0 11px}
.confirm-overlay .zalo-download-help strong{color:#754b2d;font-weight:650}
.confirm-overlay .zalo-download-link{width:100%;min-width:0;padding:10px;border:1px solid #e9d7bf;border-radius:8px;background:#fffdf8;color:#805c40;font-family:inherit;font-size:12px;user-select:text;-webkit-user-select:text}
.confirm-overlay .zalo-download-help .zalo-copy-status{margin:10px 0 0;color:#377350;font-size:12px;font-weight:600;line-height:1.5}
.confirm-overlay .zalo-copy-status:empty{display:none}
@keyframes confirm-pop{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:360px){.confirm-overlay{padding:14px}.confirm-overlay .confirm-head{padding:20px 17px 0;font-size:17px;gap:10px}.confirm-overlay .confirm-message{padding-left:17px;padding-right:17px}.confirm-overlay .confirm-actions{padding:14px 17px 18px;gap:8px}.confirm-overlay .confirm-actions button{padding:10px;font-size:13px}.confirm-overlay .zalo-download-help{margin-left:17px;margin-right:17px}}
@media(prefers-reduced-motion:reduce){.confirm-overlay .confirm-box{animation:none}.confirm-overlay .confirm-actions button{transition:none}}
.confirm-overlay.open{display:flex}

/* Higher contrast text and stronger accents. */
.confirm-overlay .confirm-box{background:linear-gradient(145deg,#fffaf2,#ffedda);border-color:#f3b46f;color:#48240f}
.confirm-overlay .confirm-head{color:#71320d}
.confirm-overlay .confirm-eyebrow{color:#9b4b17}
.confirm-overlay .confirm-icon{background:linear-gradient(145deg,#ffe2b4,#ffc777);border-color:#efa347;color:#a94308}
.confirm-overlay .confirm-message{color:#63381e;font-weight:600}
.confirm-overlay .confirm-actions{background:#ffe4c7;border-top-color:#efbf90}
.confirm-overlay .confirm-cancel{background:#fff7ec;border-color:#d68e47!important;color:#713a17}
.confirm-overlay .confirm-accept{background:linear-gradient(135deg,#cf550b,#a93806);border-color:#9f3304;color:#fff;box-shadow:0 5px 13px #a93b0733}
.confirm-overlay.zalo-download-dialog .confirm-message{color:#62300e}
.confirm-overlay .zalo-download-help{background:#ffe7c8;border-color:#e9b77d;color:#663c20}
.confirm-overlay .zalo-download-help strong{color:#713009;font-weight:750}
.confirm-overlay .zalo-download-link{background:#fffcf7;border-color:#c58b4c;color:#512a12}
.confirm-overlay .zalo-download-help .zalo-copy-status{color:#175b32}
/* Richer heading and message area. */
.confirm-overlay .confirm-head{padding-bottom:17px;background:linear-gradient(120deg,#ffd29a,#ffb967);border-bottom:1px solid #e8a15b;color:#632705}
.confirm-overlay .confirm-eyebrow{color:#86400f}
.confirm-overlay .confirm-icon{background:#fff0d6;border-color:#d98b36;color:#9c3906;box-shadow:0 3px 10px #9c390618}
.confirm-overlay .confirm-message{background:#ffecd3;color:#54290f;font-weight:650;padding-top:18px}
.confirm-overlay.zalo-download-dialog .confirm-message{color:#54290f}

/* Blue check beside the download/open confirmation action. */
.confirm-overlay .confirm-accept::before{content:"";display:inline-block;width:22px;height:22px;margin-right:8px;border-radius:50%;background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='a' x2='0' y2='1'%3E%3Cstop stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23ccefff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='10.5' fill='url(%23a)' stroke='%2397ddff'/%3E%3Cpath d='m7.5 12 3 3 6-6' fill='none' stroke='%23008ed6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;vertical-align:middle;box-shadow:0 2px 5px #003d642e;pointer-events:none;transform:translateY(-1px)}
