/* Brand: RisqueDepot red / black, no external fonts or logos. */
#rdchat-root[hidden], #rdchat-panel[hidden], #rdchat-error[hidden] { display: none !important; }
#rdchat-root { --rd-red: #c40000; --rd-ink: #151515; --rd-line: #e9e9e9; font-family: Arial, Helvetica, sans-serif; color: var(--rd-ink); }
#rdchat-root *, #rdchat-root *::before, #rdchat-root *::after { box-sizing: border-box; }
.rdchat-launcher { position: fixed; z-index: 2147483000; bottom: max(22px, env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); display: flex; align-items: center; justify-content: center; gap: 9px; background: #c40000; color: #fff; border: 0; border-radius: 999px; box-shadow: 0 7px 26px rgba(0,0,0,.22); padding: 14px 20px; font: 700 14px/1.2 Arial,Helvetica,sans-serif; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.rdchat-launcher:hover { background: #990000; transform: translateY(-2px); }
.rdchat-launcher:focus-visible, .rdchat-panel button:focus-visible, .rdchat-panel textarea:focus-visible { outline: 3px solid #f4a8a8; outline-offset: 2px; }
.rdchat-panel { position: fixed; z-index: 2147483001; right: max(20px, env(safe-area-inset-right)); bottom: calc(88px + env(safe-area-inset-bottom)); height: min(510px, calc(100dvh - 115px)); width: min(370px, calc(100vw - 28px)); display: flex; flex-direction: column; background: #fff; border: 1px solid #e1e1e1; border-top: 4px solid #c40000; border-radius: 15px; box-shadow: 0 14px 55px rgba(0,0,0,.23); overflow: hidden; }
.rdchat-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 17px 10px; background: #fff; }
.rdchat-brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rdchat-brand-wordmark { font-size: 26px; line-height: 1.05; font-weight: 800; letter-spacing: -1.2px; color: #c40000; }
.rdchat-brand-tagline { color: #111; font-size: 11px; font-weight: 700; letter-spacing: .15px; }
.rdchat-brand-image { display: block; max-width: 190px; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.rdchat-header-close { border: 0; background: transparent; color: #333; cursor: pointer; padding: 0 6px; font-size: 29px; line-height: 1; }
.rdchat-subheading { display: flex; align-items: center; gap: 7px; font-size: 12px; padding: 3px 18px 12px; border-bottom: 1px solid var(--rd-line); color: #505050; }
.rdchat-online-dot { background: #268a46; width: 8px; height: 8px; border-radius: 50%; }
.rdchat-messages { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 17px; background: #fbfbfb; scrollbar-width: thin; }
.rdchat-welcome { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px 12px 12px 3px; padding: 12px; max-width: 94%; font-size: 13px; line-height: 1.55; }
.rdchat-bubble { max-width: 88%; padding: 10px 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.rdchat-from-visitor { align-self: flex-end; background: #c40000; color: #fff; border-radius: 13px 13px 3px 13px; }
.rdchat-from-admin { align-self: flex-start; background: #fff; color: #222; border: 1px solid #e5e5e5; border-radius: 13px 13px 13px 3px; }
.rdchat-form { display: flex; gap: 9px; padding: 12px 12px 8px; background: #fff; border-top: 1px solid var(--rd-line); align-items: flex-end; }
#rdchat-root .rdchat-form textarea { flex: 1; min-width: 0; resize: none; max-height: 100px; background: #fff; color: #111; font: 13px/1.45 Arial,Helvetica,sans-serif; border-radius: 9px; border: 1px solid #ccc; padding: 9px; margin: 0; box-shadow: none; }
#rdchat-root .rdchat-form button { border: 0; border-radius: 9px; background: #c40000; color: #fff; padding: 11px 13px; font: 700 12px/1 Arial,Helvetica,sans-serif; cursor: pointer; min-height: 41px; }
#rdchat-root .rdchat-form button:disabled { opacity: .6; cursor: wait; }
.rdchat-privacy { text-align: center; color: #696969; font-size: 10px; padding: 2px 10px 10px; background: #fff; }
.rdchat-error { color: #a30000; background: #fff3f3; padding: 5px 12px; font-size: 12px; }
.rdchat-honeypot, .rdchat-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 480px) {
  .rdchat-launcher { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); font-size: 13px; padding: 12px 15px; }
  .rdchat-panel { bottom: calc(70px + env(safe-area-inset-bottom)); right: 10px; width: calc(100vw - 20px); height: min(530px, calc(100dvh - 90px)); }
}
@media (prefers-reduced-motion: reduce) { .rdchat-launcher { transition: none; } }
/* Optional visitor-controlled permanent deletion of their own chat history. */
#rdchat-root .rdchat-privacy .rdchat-erase {
  display: inline; background: transparent; color: #6f0707; border: 0;
  padding: 2px 3px; margin-left: 3px; text-decoration: underline;
  font: inherit; cursor: pointer;
}
#rdchat-root .rdchat-privacy .rdchat-erase[hidden] { display: none !important; }

/* v1.2 boutique styling: approved red wordmark on white, charcoal support bar. */
#rdchat-root { --rd-red:#b5001b; --rd-ink:#1c1b1b; --rd-line:#e9e3e3; }
#rdchat-root .rdchat-panel { border:1px solid #dcd3d3; border-top:3px solid var(--rd-red); border-radius:17px; box-shadow:0 16px 55px rgba(22,9,11,.27); }
#rdchat-root .rdchat-header { padding:17px 18px 14px; background:#fff; }
#rdchat-root .rdchat-brand-wordmark { color:var(--rd-red); letter-spacing:-1px; font-style:normal; }
#rdchat-root .rdchat-brand-tagline { color:#171717; font-style:normal; }
#rdchat-root .rdchat-subheading { background:#1b1b1d; color:#f9f4f4; padding:10px 18px; border-bottom:none; font-size:12px; letter-spacing:.1px; }
#rdchat-root .rdchat-online-dot { flex:0 0 8px; background:#38bc75; box-shadow:0 0 0 2px rgba(56,188,117,.18); }
#rdchat-root .rdchat-header-close { font-size:26px; border-radius:6px; }
#rdchat-root .rdchat-messages { background:#f9f7f7; padding:18px; }
#rdchat-root .rdchat-welcome { border-color:#eee2e4; border-left:3px solid var(--rd-red); padding:12px 13px; line-height:1.58; box-shadow:0 2px 7px rgba(0,0,0,.03); }
#rdchat-root .rdchat-from-visitor { background:var(--rd-red); }
#rdchat-root .rdchat-from-admin { background:#fff; border-color:#e7dfe1; }
#rdchat-root .rdchat-launcher { background:var(--rd-red); position:fixed; padding:14px 19px; box-shadow:0 8px 30px rgba(120,0,25,.24); }
#rdchat-root .rdchat-launcher:hover { background:#90001a; }
#rdchat-root .rdchat-form { border-color:#efe5e6; }
#rdchat-root .rdchat-form textarea { border-color:#d7cacc; }
#rdchat-root .rdchat-form button { background:var(--rd-red); }
#rdchat-root .rdchat-form button:hover:not(:disabled) { background:#8d0016; }
#rdchat-root .rdchat-quick-questions { background:#fff; padding:11px 15px 12px; border-top:1px solid var(--rd-line); }
#rdchat-root .rdchat-quick-questions[hidden], #rdchat-root .rdchat-visitor-unread[hidden] { display:none !important; }
#rdchat-root .rdchat-quick-heading { color:#595052; font-size:11px; font-weight:700; display:block; margin-bottom:8px; }
#rdchat-root .rdchat-quick-list { display:flex; flex-wrap:wrap; gap:6px; }
#rdchat-root .rdchat-quick-button { padding:6px 9px; min-height:31px; border:1px solid #d9b4bd; background:#fff; color:#871028; border-radius:20px; font:600 11px/1.35 Arial,Helvetica,sans-serif; cursor:pointer; text-align:left; }
#rdchat-root .rdchat-quick-button:hover:not(:disabled) { background:#fff2f4; border-color:var(--rd-red); }
#rdchat-root .rdchat-quick-button:disabled { opacity:.6; cursor:wait; }
#rdchat-root .rdchat-visitor-unread { position:absolute; top:-7px; right:-5px; min-width:22px; height:22px; border-radius:11px; padding:3px 5px; background:#1b1b1d; color:white; font:700 11px/16px Arial,Helvetica,sans-serif; border:2px solid white; }
#rdchat-root .rdchat-launcher:focus-visible, #rdchat-root .rdchat-panel button:focus-visible { outline:3px solid #e88296; outline-offset:2px; }
@media (max-width:480px) {
  #rdchat-root .rdchat-panel { bottom:calc(70px + env(safe-area-inset-bottom)); max-height:calc(100dvh - 90px); }
  #rdchat-root .rdchat-quick-questions { padding:9px 12px; }
  #rdchat-root .rdchat-quick-button { font-size:11px; padding:6px 8px; }
}

/* v1.3: offline messaging, product context, verified order support and typing. */
#rdchat-root [hidden] { display:none !important; }
#rdchat-root .rdchat-context { font:600 11px/1.4 Arial,Helvetica,sans-serif; color:#7f1630; background:#fff2f5; padding:9px 15px; border-bottom:1px solid #eedde1; }
#rdchat-root .rdchat-offline-form { display:flex; flex:1; min-height:0; flex-direction:column; gap:8px; padding:19px; overflow-y:auto; background:#fbf8f9; font-size:13px; }
#rdchat-root .rdchat-offline-form strong { font-size:17px; color:#9d001c; }
#rdchat-root .rdchat-offline-form p { margin:0 0 5px; line-height:1.5; }
#rdchat-root .rdchat-offline-form label { font-size:12px; font-weight:700; color:#303030; }
#rdchat-root .rdchat-offline-form input[type=email], #rdchat-root .rdchat-offline-form textarea { display:block; width:100%; background:white; color:#222; border:1px solid #d5c4c8; border-radius:8px; padding:10px; font:13px/1.5 Arial,Helvetica,sans-serif; resize:vertical; }
#rdchat-root .rdchat-offline-form button { background:#b5001b; color:white; border:0; border-radius:8px; padding:12px; font-weight:700; cursor:pointer; }
#rdchat-root .rdchat-offline-form button:disabled { opacity:.65; }
#rdchat-root .rdchat-offline-form .rdchat-offline-note { font-size:10px; line-height:1.5; color:#666; }
#rdchat-root .rdchat-offline-form .rdchat-offline-success { color:#17672e; padding:16px; background:#eff9f1; border-radius:7px; }
#rdchat-root .rdchat-typing { flex:none; background:#f4eef0; padding:6px 15px; font:italic 11px/1.4 Arial,Helvetica,sans-serif; color:#62525a; }
#rdchat-root .rdchat-orders { padding:12px; border-top:1px solid #eadfe2; background:white; overflow-y:auto; max-height:220px; flex:none; font-size:12px; }
#rdchat-root .rdchat-orders strong { display:block; margin-bottom:9px; color:#901527; }
#rdchat-root .rdchat-orders p { margin:5px 0; }
#rdchat-root .rdchat-orders a { color:#8c0921; text-decoration:underline; }
#rdchat-root .rdchat-order-row { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:7px 0; border-bottom:1px solid #eee; }
#rdchat-root .rdchat-order-row button { border:1px solid #ad0b2b; border-radius:6px; background:#fff; color:#971027; padding:5px 7px; cursor:pointer; font-size:11px; }
#rdchat-root .rdchat-product-card { display:flex; gap:10px; align-items:center; min-width:185px; }
#rdchat-root .rdchat-product-card img { width:68px; height:74px; object-fit:cover; border-radius:5px; background:#f6f0f1; }
#rdchat-root .rdchat-product-card div { display:flex; flex:1; flex-direction:column; gap:5px; }
#rdchat-root .rdchat-product-card strong { line-height:1.3; font-size:12px; }
#rdchat-root .rdchat-product-card span { font-size:12px; }
#rdchat-root .rdchat-product-card a { font-size:11px; font-weight:700; color:#84051c; text-decoration:underline; }
#rdchat-root .rdchat-bubble.rdchat-from-admin .rdchat-product-card { max-width:100%; }
@media (max-width:480px) { #rdchat-root .rdchat-offline-form { padding:12px; } #rdchat-root .rdchat-orders { max-height:175px; } }

#rdchat-root .rdchat-read-receipt { align-self:flex-end; font:10px/1.2 Arial,Helvetica,sans-serif; color:#797077; margin-top:-5px; }

/* v1.4: discreet sizing help, inline add-to-cart, verified transcript email. */
#rdchat-root .rdchat-sizing-panel[hidden],
#rdchat-root .rdchat-transcript-tools[hidden],
#rdchat-root .rdchat-transcript-tools form[hidden] { display:none !important; }
#rdchat-root .rdchat-sizing-panel { padding:12px 16px; background:#fff9fa; border-bottom:1px solid #e9e2e5; max-height:155px; overflow:auto; display:flex; flex-direction:column; gap:5px; font-size:12px; }
#rdchat-root .rdchat-sizing-panel p { margin:3px 0; line-height:1.35; }
#rdchat-root .rdchat-sizing-panel a { color:#a0001b; text-decoration:underline; padding:3px 0; }
#rdchat-root .rdchat-cart-controls { display:flex; flex-direction:column; align-items:stretch; gap:6px; margin-top:8px; font-size:12px; }
#rdchat-root .rdchat-cart-controls select { width:100%; min-width:0; padding:5px; border:1px solid #c9c9c9; border-radius:5px; font:inherit; background:white; color:#222; }
#rdchat-root .rdchat-cart-controls button { background:#a9001b; border:0; border-radius:5px; color:#fff; font-weight:700; cursor:pointer; min-height:34px; padding:7px; }
#rdchat-root .rdchat-cart-controls button:disabled { opacity:.55; }
#rdchat-root .rdchat-cart-controls span, #rdchat-root .rdchat-cart-controls span a { font-size:11px; }
#rdchat-root .rdchat-transcript-tools { flex-shrink:0; padding:7px 14px; border-top:1px solid #eee; background:#fdfbfc; font-size:11px; }
#rdchat-root #rdchat-transcript-open { display:inline-block; border:0; background:none; font:inherit; padding:3px; color:#87001a; text-decoration:underline; cursor:pointer; }
#rdchat-root #rdchat-transcript-form { display:flex; flex-direction:column; gap:5px; padding-top:5px; }
#rdchat-root #rdchat-transcript-email { border:1px solid #bbb; background:white; color:#222; font:12px Arial,sans-serif; padding:7px; width:100%; border-radius:5px; }
#rdchat-root #rdchat-transcript-submit { background:#a9001b; color:white; border:0; border-radius:5px; padding:7px; font-weight:600; cursor:pointer; }
#rdchat-root #rdchat-transcript-result { color:#4c3038; font-size:11px; margin:4px 0; line-height:1.4; }
@media(max-width:480px) {
 #rdchat-root .rdchat-panel { height:min(680px, calc(100dvh - 90px)); }
 #rdchat-root .rdchat-transcript-tools { padding:5px 12px; }
}

#rdchat-root .rdchat-assistant-toolbar { flex-shrink:0; padding:5px 14px; background:#fff; border-top:1px solid #eee; font-size:11px; }
#rdchat-root #rdchat-sizing-open { background:none; border:0; font:inherit; color:#98001b; text-decoration:underline; cursor:pointer; padding:2px; }
#rdchat-root .rdchat-sizing-panel button { cursor:pointer; background:white; border:1px solid #ead9dd; color:#8f0820; border-radius:6px; padding:6px 9px; font-size:11px; text-align:left; }
#rdchat-root .rdchat-sizing-choices { display:flex; flex-direction:column; gap:5px; }
#rdchat-root .rdchat-sizing-choices a { background:white; padding:6px 9px; border:1px solid #ead9dd; border-radius:5px; text-decoration:underline; }

/* v1.4.6: preserve WooCommerce sale-price semantics in chat product cards. */
#rdchat-root .rdchat-product-card .rdchat-product-price del { opacity:.73; text-decoration:line-through; text-decoration-thickness:1px; }
#rdchat-root .rdchat-product-card .rdchat-product-price ins { text-decoration:none; font-weight:700; color:inherit; }
#rdchat-root .rdchat-product-card .rdchat-product-price { display:inline; white-space:normal; }

/* v1.4.9: theme-resistant, actual sale-price presentation; scoped to chat. */
#rdchat-root .rdchat-product-card .rdchat-product-price del.rdchat-regular-price { display:inline !important; text-decoration:line-through !important; text-decoration-line:line-through !important; text-decoration-thickness:1.5px !important; opacity:.75; }
#rdchat-root .rdchat-product-card .rdchat-product-price ins.rdchat-sale-price { display:inline; text-decoration:none !important; font-weight:700; }
