/* JP Mascot — «estado da encomenda» card in the chat (only loaded with JPMASCOT_ORDER_LOOKUP = 1, shop 1) */
.jpmascot-chat-bot .jpm-ord-form{padding:0;background:transparent;overflow:visible;flex:none}
.jpm-ord-form .jpmascot-chat-cf-row input{min-height:36px;font-size:16px}
.jpm-ord-code .jpmascot-chat-cf-row input{letter-spacing:4px;font-variant-numeric:tabular-nums;text-align:center;max-width:180px}
.jpm-ord-form .jpm-ord-newcode{background:#fff}
.jpm-ord-login{margin:8px 0 0!important;font-size:12px;color:#5f6368}
.jpm-ord-login a{color:#0b5e8a;text-decoration:underline}
.jpm-ord-cards{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.jpm-ord-card{border:1px solid #e3e6ea;border-radius:10px;background:#fafbfc;padding:8px 10px;text-align:left;font-size:13px;color:#222}
.jpm-ord-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 8px;margin-bottom:6px}
.jpm-ord-head strong{font-size:14px}
.jpm-ord-head span{color:#5f6368;font-size:12px}
.jpm-ord-card dl{margin:0;display:flex;flex-direction:column;gap:3px}
.jpm-ord-row{display:flex;gap:8px;align-items:baseline}
.jpm-ord-row dt{flex:0 0 96px;color:#5f6368;font-weight:normal;font-size:12px}
.jpm-ord-row dd{flex:1 1 auto;margin:0;min-width:0;overflow-wrap:anywhere}
.jpm-ord-state{display:inline-block;padding:1px 8px;border-radius:10px;background:color-mix(in srgb,var(--jpm-color) 14%,#fff);font-weight:600}
.jpm-ord-track{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px}
.jpm-ord-card a{color:#0b5e8a;text-decoration:underline}
.jpm-ord-msgs{margin-top:8px;border-top:1px dashed #d7dce1;padding-top:6px}
.jpm-ord-msgs summary{cursor:pointer;font-weight:600;font-size:12px;color:#3c4043}
.jpm-ord-msgs ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto}
.jpm-ord-m{padding:6px 8px;border-radius:8px;background:#fff;border:1px solid #e9ecef}
.jpm-ord-m-shop{border-left:3px solid var(--jpm-color)}
.jpm-ord-m-meta{display:block;font-size:11px;color:#5f6368;margin-bottom:2px}
.jpm-ord-m-text{display:block;overflow-wrap:anywhere;line-height:1.4}
.jpm-ord-note{margin:6px 0 0!important;font-size:12px;color:#5f6368}
.jpm-ord-card .jpmascot-chat-chips{margin-top:8px}
.jpmascot-chat-bot .jpm-ord-card a.jpmascot-chat-chip{text-decoration:none}
@media (max-width:480px){.jpm-ord-row dt{flex-basis:84px}}
/* account actions (1.1.3-conta) */
#jpmascot-chat .jpm-ord-returns { margin: .4em 0 0; }
#jpmascot-chat .jpm-ord-returns ul { list-style: none; margin: .2em 0 0; padding: 0; }
#jpmascot-chat .jpm-ord-returns li { font-size: .92em; padding: .15em 0; }
#jpmascot-chat .jpm-ord-sub { font-weight: 600; margin: 0; font-size: .92em; }
#jpmascot-chat .jpm-ord-card .jpmascot-chat-chips { margin-top: .5em; }
#jpmascot-chat button.jpmascot-chat-chip { cursor: pointer; }
#jpmascot-chat .jpm-ret-lines { display: flex; flex-direction: column; gap: .35em; margin: .4em 0; }
#jpmascot-chat .jpm-ret-line { display: flex; align-items: center; justify-content: space-between; gap: .5em; border: 1px solid #e3e7ea; border-radius: 8px; padding: .35em .5em; }
#jpmascot-chat .jpm-ret-pick { display: flex; align-items: flex-start; gap: .4em; margin: 0; font-weight: 400; flex: 1 1 auto; min-width: 0; }
#jpmascot-chat .jpm-ret-pick span { overflow-wrap: anywhere; }
#jpmascot-chat .jpm-ret-qty { display: flex; align-items: center; gap: .3em; margin: 0; font-size: .88em; flex: 0 0 auto; }

#jpmascot-chat .jpm-ord-form textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 4.2em; font: inherit; padding: .4em; border: 1px solid #c9d1d6; border-radius: 6px; }
#jpmascot-chat .jpm-confirm { margin-top: .5em; padding: .5em; border-radius: 8px; background: #f3f8fb; border: 1px solid #cfe3ee; }
#jpmascot-chat .jpm-confirm ul, #jpmascot-chat .jpm-ro-lines { margin: .3em 0; padding-left: 1.1em; }
#jpmascot-chat .jpm-ord-quote { white-space: normal; margin: .3em 0; padding: .35em .5em; border-left: 3px solid #2fb5d2; background: #fff; overflow-wrap: anywhere; }
#jpmascot-chat .jpm-ro-lines li.is-out { color: #8a8f93; }
#jpmascot-chat .jpm-ro-total { margin: .3em 0; }
/* 1.1.3-v2: theme-consistent controls, AA contrast, no double submit */
#jpmascot-chat .jpmascot-chat-cf-actions{flex-wrap:wrap;align-items:center}
#jpmascot-chat .jpmascot-chat-cf-actions button{white-space:nowrap;line-height:1.2;height:auto;font-size:14px}
#jpmascot-chat .jpm-confirm .jpmascot-chat-cf-actions{justify-content:flex-end}
#jpmascot-chat .jpm-cancel,#jpmascot-chat .jpm-edit,#jpmascot-chat .jpm-ord-newcode{min-height:36px;padding:6px 16px;border:1px solid var(--jpm-strong);border-radius:18px;background:#fff;color:var(--jpm-strong);font-weight:600;cursor:pointer}
#jpmascot-chat .jpm-cancel:hover,#jpmascot-chat .jpm-edit:hover,#jpmascot-chat .jpm-ord-newcode:hover,#jpmascot-chat .jpm-cancel:focus-visible,#jpmascot-chat .jpm-edit:focus-visible{background:#e8f5f8;color:var(--jpm-strong-hover);border-color:var(--jpm-strong-hover)}
#jpmascot-chat .jpmascot-chat-cf-actions button:disabled{opacity:.55;cursor:default}
#jpmascot-chat .jpm-ret-qty select{-webkit-appearance:none;appearance:none;min-height:32px;padding:4px 28px 4px 10px;border:1px solid #c6ccd2;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23137a90' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;font:inherit;font-size:14px;color:#222;cursor:pointer}
#jpmascot-chat .jpm-ret-qty select:hover{border-color:var(--jpm-strong)}
#jpmascot-chat .jpm-ret-qty select:focus{outline:2px solid var(--jpm-strong);outline-offset:1px}
#jpmascot-chat .jpm-ret-pick input[type=checkbox]{accent-color:var(--jpm-strong);width:18px;height:18px;margin:1px 0 0;flex:none;cursor:pointer}
#jpmascot-chat .jpm-ret-line:has(input:checked){border-color:var(--jpm-strong);background:#f2fafc}
#jpmascot-chat .jpm-ord-form textarea:focus,#jpmascot-chat .jpm-ord-form input:focus{outline:2px solid var(--jpm-strong);outline-offset:0;border-color:transparent}
#jpmascot-chat .jpm-v-codebox{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
#jpmascot-chat .jpm-v-code{display:inline-block;padding:3px 10px;border:1.5px dashed var(--jpm-strong);border-radius:6px;background:#eef8fb;color:#0b4f5f;font-family:inherit;font-size:14px;font-weight:700;letter-spacing:.06em;user-select:all}
#jpmascot-chat .jpm-v-copy{min-height:28px;padding:2px 12px;border:1px solid var(--jpm-strong);border-radius:14px;background:#fff;color:var(--jpm-strong);font-size:12px;font-weight:600;cursor:pointer}
#jpmascot-chat .jpm-v-copy:hover{background:#e8f5f8}
#jpmascot-chat .jpm-v-copy.is-done{background:var(--jpm-strong);color:#fff}
#jpmascot-chat .jpm-nowrap,#jpmascot-chat .jpmascot-chat-chip{white-space:nowrap}
#jpmascot-chat .jpm-ord-card a.jpm-ord-tracklink{display:inline-block;margin-left:4px;font-weight:600}

/* v2: «new code sent» notice is a confirmation, not an error */
.jpmascot-chat .jpmascot-chat-cf-err.is-ok{color:#1d6b3a}

/* 19:02 review: no orphan prices / split code boxes / stacked code buttons / right-aligned product names */
#jpmascot-chat .jpm-ro-lines{list-style:none;padding:0;margin:.3em 0;display:flex;flex-direction:column;gap:4px}
#jpmascot-chat .jpm-ro-lines li{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
#jpmascot-chat .jpm-ro-name{flex:1 1 auto;min-width:0}
#jpmascot-chat .jpm-ro-sum{flex:none;white-space:nowrap}
#jpmascot-chat .jpm-v-coderow{display:flex;align-items:center;gap:8px;margin:2px 0 6px}
#jpmascot-chat .jpm-v-label{color:#5f6368;font-size:12px}
#jpmascot-chat .jpm-v-codebox{flex-wrap:nowrap}
#jpmascot-chat .jpm-v-code{letter-spacing:.04em;padding:2px 8px;white-space:nowrap}
#jpmascot-chat .jpm-v-copy{white-space:nowrap}
#jpmascot-chat .jpm-voucher dl{display:grid;grid-template-columns:max-content 1fr;column-gap:10px;row-gap:3px}
#jpmascot-chat .jpm-voucher .jpm-ord-row{display:contents}
#jpmascot-chat .jpm-voucher .jpm-ord-row dt{white-space:nowrap}
#jpmascot-chat .jpm-ord-code .jpmascot-chat-cf-actions{flex-wrap:nowrap;justify-content:space-between;align-items:center}
#jpmascot-chat .jpm-ord-code .jpm-ord-newcode{min-height:0;padding:0;border:0;border-radius:0;background:none;color:var(--jpm-strong);font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:2px;white-space:normal;text-align:left}
#jpmascot-chat .jpm-ord-code .jpm-ord-newcode:hover{background:none;color:var(--jpm-strong-hover)}
#jpmascot-chat .jpm-ord-code .jpmascot-chat-cf-send{flex:none}
#jpmascot-chat .jpm-ret-line{flex-wrap:wrap}
#jpmascot-chat .jpm-ret-pick{flex:1 1 150px;text-align:left;justify-content:flex-start}
#jpmascot-chat .jpm-ret-pick span{text-align:left}
#jpmascot-chat .jpm-ret-qty{margin-left:auto;text-align:left}
