/*
 * Traveling Dojo Admin -- save in place (tda-inplace.js), 1.45.0 (store and account pages 1.46.0).
 * Loaded with the script by tda_enqueue_inplace() (assets.php), so the
 * store pages get it too. (1.44.0 kept these rules in tda-admin.css.)
 */

/* Save-in-place note (tda-inplace.js, 1.44.0): a bubble floating over the page by the pressed
   button, so nothing around it moves. The pointer's position comes from --tda-note-arrow. */
.tda-inplace-note { position:absolute; z-index:9998; max-width:min(420px, calc(100vw - 32px)); padding:6px 12px; border-radius:6px; background:#eafaf1; color:#1e7e44; border:1px solid #b7e4c7; box-shadow:0 2px 8px rgba(0,0,0,.15); font-size:14px; font-weight:700; line-height:1.4; transition:opacity .9s ease; pointer-events:none; }
.tda-inplace-note::after { content:""; position:absolute; left:var(--tda-note-arrow, 20px); bottom:-6px; width:10px; height:10px; margin-left:-5px; background:inherit; border:inherit; border-width:0 1px 1px 0; transform:rotate(45deg); }
.tda-inplace-note.is-below::after { bottom:auto; top:-6px; border-width:1px 0 0 1px; }
.tda-inplace-note--error { background:#fdf2f2; color:#8c0003; border-color:#f1b5b5; }
.tda-inplace-note.is-fading { opacity:0; }
/* A link from the message (e.g. "View cart", 1.46.0): the bubble ignores the mouse except here. */
.tda-inplace-note a { pointer-events:auto; color:inherit; text-decoration:underline; white-space:nowrap; }
/* The area while another view of it loads (a store category, a sort order, a search). */
[data-tda-inplace-loading] { opacity:.55; pointer-events:none; }
/* The pressed button while its form is being sent. */
.tda-btn.tda-is-busy, .tda-icon-btn.tda-is-busy, .tda-btn-store.tda-is-busy, .button.tda-is-busy { opacity:.6; cursor:progress; }
