/* HiDEAL V21 — homepage popup theme surfaces. No layout changes. */
/* These variables originate in theme_head.php and are applied dynamically by hdThemeApply(). */
html[data-hd-homepage="true"] #chatBoxContainer,
html[data-hd-theme-scope="site"] #chatBoxContainer{border:1px solid var(--hd-border)!important;box-shadow:0 16px 45px rgba(0,0,0,.20)!important}
html[data-hd-homepage="true"] #chatBoxContainer .chat-main,
html[data-hd-homepage="true"] #chatBoxContainer .chat-sidebar,
html[data-hd-theme-scope="site"] #chatBoxContainer .chat-main,
html[data-hd-theme-scope="site"] #chatBoxContainer .chat-sidebar{background:var(--hd-surface-tint,#f6f9fd)!important}
html[data-hd-homepage="true"] #chatBoxContainer .chat-header,
html[data-hd-homepage="true"] #chatBoxContainer .chat-header-box,
html[data-hd-homepage="true"] #chatBoxContainer .chat-search,
html[data-hd-theme-scope="site"] #chatBoxContainer .chat-header,
html[data-hd-theme-scope="site"] #chatBoxContainer .chat-header-box,
html[data-hd-theme-scope="site"] #chatBoxContainer .chat-search{background:var(--hd-soft,#eaf3fc)!important}
html[data-hd-homepage="true"] #chatBoxContainer .chat-messages,
html[data-hd-theme-scope="site"] #chatBoxContainer .chat-messages{background:var(--hd-page-bg,#eef6ff)!important}
html[data-hd-homepage="true"] #chatBoxContainer .chat-user.active,
html[data-hd-theme-scope="site"] #chatBoxContainer .chat-user.active{background:var(--hd-soft,#e3f0ff)!important;border-left-color:var(--primary)!important}
html[data-hd-homepage="true"] #chatBoxContainer .send-btn,
html[data-hd-homepage="true"] #chatBoxContainer .prop-btn button,
html[data-hd-theme-scope="site"] #chatBoxContainer .send-btn,
html[data-hd-theme-scope="site"] #chatBoxContainer .prop-btn button{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}
html[data-hd-homepage="true"] #chatBoxContainer .prop-price,
html[data-hd-theme-scope="site"] #chatBoxContainer .prop-price{color:var(--primary)!important}
html[data-hd-homepage="true"] #chatBoxContainer .chat-action-btn:hover,
html[data-hd-theme-scope="site"] #chatBoxContainer .chat-action-btn:hover{background:var(--hd-soft)!important}
html[data-hd-homepage="true"] #chatBoxContainer .msg-row.me .msg-bubble,
html[data-hd-theme-scope="site"] #chatBoxContainer .msg-row.me .msg-bubble{background:var(--hd-soft)!important;color:var(--hd-text,#17233c)!important}
/* Existing login dialog and form: repaint only, never change login handlers. */
html[data-hd-homepage="true"] #loginModal .modal-box,
html[data-hd-theme-scope="site"] #loginModal .modal-box{background:#fff!important;border:1px solid var(--hd-border)!important}
html[data-hd-homepage="true"] #loginModal .input-group-custom,
html[data-hd-theme-scope="site"] #loginModal .input-group-custom{border-color:var(--hd-border)!important}
html[data-hd-homepage="true"] #loginModal .btn-login,
html[data-hd-theme-scope="site"] #loginModal .btn-login{background:var(--primary)!important;color:#fff!important}
html[data-hd-homepage="true"] #loginModal .login-footer a,
html[data-hd-homepage="true"] #loginModal .password-toggle:hover,
html[data-hd-theme-scope="site"] #loginModal .login-footer a,
html[data-hd-theme-scope="site"] #loginModal .password-toggle:hover{color:var(--primary)!important}
/* Account role-selection modal (V16). */
html[data-hd-homepage="true"] #hd16RoleDialog,
html[data-hd-theme-scope="site"] #hd16RoleDialog{border-color:var(--hd-border)!important}
html[data-hd-homepage="true"] #hd16RoleDialog button:hover,
html[data-hd-theme-scope="site"] #hd16RoleDialog button:hover{border-color:var(--primary)!important;color:var(--primary)!important}
/* Profile popup shell — note iframe content needs its own theme loader. */
html[data-hd-homepage="true"] #profilePopup .modal-box,
html[data-hd-homepage="true"] #profilePopup [class*="dialog"],
html[data-hd-theme-scope="site"] #profilePopup .modal-box,
html[data-hd-theme-scope="site"] #profilePopup [class*="dialog"]{border-color:var(--hd-border)!important}
html[data-hd-homepage="true"] .hd-profile-dialog,
html[data-hd-theme-scope="site"] .hd-profile-dialog{border:1px solid var(--hd-border)!important}
