/* ================================================================
   HILLS TRENDS – CHAT & MESSAGING SYSTEM
   ================================================================ */

/* ── SHARED: MESSAGE BUBBLES ─────────────────────────────────── */

.ht-msg-row {
    display: flex;
    margin-bottom: 0.6rem;
    align-items: flex-end;
    gap: 0.45rem;
}
.ht-msg-row.by-customer { flex-direction: row-reverse; }
.ht-msg-row.by-admin    { flex-direction: row; }

.ht-msg-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700;
}
.ht-msg-avatar.admin-av    { background: linear-gradient(135deg,#c8972a,#e0b94d); color: #fff; }
.ht-msg-avatar.customer-av { background: #1a1a2e; color: #c8972a; }

.ht-msg-content { max-width: 72%; }

.ht-msg-bubble {
    padding: 0.6rem 0.85rem;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.55;
    word-wrap: break-word;
    word-break: break-word;
}
.ht-msg-row.by-customer .ht-msg-bubble {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.ht-msg-row.by-admin .ht-msg-bubble {
    background: #fff;
    color: #1a1a2e;
    border: 1px solid #e8e4dc;
    border-bottom-left-radius: 4px;
}

.ht-msg-time {
    font-size: 0.68rem;
    color: #adb5bd;
    margin-top: 0.2rem;
}
.ht-msg-row.by-customer .ht-msg-time { text-align: right; }

/* ── SHARED: ATTACHMENTS ─────────────────────────────────────── */

.ht-attachment-img {
    border-radius: 10px;
    max-width: 220px; max-height: 200px;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
    margin-top: 0.35rem;
}

.ht-attachment-file {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.14);
    margin-top: 0.35rem;
    text-decoration: none;
    font-size: 0.76rem;
    max-width: 220px;
    transition: opacity 0.2s;
}
.ht-attachment-file:hover { opacity: 0.82; text-decoration: none; }
.by-admin .ht-attachment-file { background: #f0ece4; color: #1a1a2e; }
.by-customer .ht-attachment-file { color: rgba(255,255,255,0.9); }
.ht-attachment-file i { font-size: 1.05rem; flex-shrink: 0; }
.ht-attachment-file .fn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

/* ── SHARED: FILE INPUT PREVIEW ──────────────────────────────── */

.ht-file-preview-list {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    padding: 0.35rem 0;
}
.ht-file-preview-item { position: relative; display: inline-block; }
.ht-file-preview-item img {
    width: 52px; height: 52px; object-fit: cover;
    border-radius: 8px; border: 2px solid #e8e4dc;
}
.ht-file-preview-item .fp-name {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: #f0ece4; border-radius: 8px; border: 2px solid #e8e4dc;
    font-size: 0.58rem; text-align: center; padding: 3px;
    word-break: break-all; color: #555;
}
.ht-file-preview-item .fp-remove {
    position: absolute; top: -5px; right: -5px;
    width: 17px; height: 17px;
    background: #dc3545; border-radius: 50%; color: #fff;
    border: none; font-size: 0.6rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* ── SHARED: DATE SEPARATOR ──────────────────────────────────── */

.msg-date-sep {
    text-align: center; font-size: 0.7rem; color: #adb5bd;
    margin: 0.7rem 0;
    display: flex; align-items: center; gap: 0.6rem;
}
.msg-date-sep::before, .msg-date-sep::after {
    content: ''; flex: 1; height: 1px; background: #e8e4dc;
}

/* ── TOAST NOTIFICATIONS ─────────────────────────────────────── */

.ht-toast-container {
    position: fixed; bottom: 86px; right: 20px;
    z-index: 99999;
    display: flex; flex-direction: column-reverse; gap: 0.5rem;
}
.ht-toast {
    background: #fff; border: 1px solid #e8e4dc;
    border-left: 4px solid #c8972a; border-radius: 12px;
    padding: 0.7rem 0.9rem;
    min-width: 270px; max-width: 340px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 0.7rem;
    animation: htToastIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
}
.ht-toast-icon {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg,#c8972a,#e0b94d);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.95rem; flex-shrink: 0;
}
.ht-toast-body { flex: 1; min-width: 0; }
.ht-toast-title { font-weight: 700; font-size: 0.8rem; color: #1a1a2e; }
.ht-toast-text  { font-size: 0.75rem; color: #7a7a7a; margin-top: 0.05rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes htToastIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ── IMAGE LIGHTBOX ──────────────────────────────────────────── */

.ht-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
}
.ht-lightbox img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain; border-radius: 8px;
    cursor: default;
}
.ht-lightbox-close {
    position: absolute; top: 1rem; right: 1rem;
    background: #fff; border: none; border-radius: 50%;
    width: 36px; height: 36px; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* ================================================================
   CUSTOMER — FLOATING CHAT WIDGET
   ================================================================ */

.ht-chat-widget {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 9000;
}

.ht-chat-toggle {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg,#c8972a,#e0b94d);
    border: none; color: #fff; font-size: 1.35rem; cursor: pointer;
    box-shadow: 0 6px 24px rgba(200,151,42,0.55);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease; position: relative;
}
.ht-chat-toggle:hover { transform: scale(1.08); }
.ht-chat-toggle .chat-badge {
    position: absolute; top: 1px; right: 1px;
    min-width: 18px; height: 18px; padding: 0 4px;
    background: #dc3545; border-radius: 9px;
    font-size: 0.62rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; color: #fff; line-height: 1;
}

.ht-chat-popup {
    position: absolute; bottom: 70px; right: 0;
    width: 345px; height: 470px;
    background: #fff; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    display: flex; flex-direction: column; overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.ht-chat-popup.hidden {
    transform: scale(0.8) translateY(10px);
    opacity: 0; pointer-events: none;
}

.ht-chat-popup-header {
    background: linear-gradient(135deg,#1a1a2e,#0f3460);
    padding: 0.9rem 1rem;
    display: flex; align-items: center; gap: 0.65rem;
}
.ht-chat-popup-header .hicon {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(200,151,42,0.18);
    border: 1.5px solid rgba(200,151,42,0.35);
    display: flex; align-items: center; justify-content: center;
    color: #c8972a; font-size: 1rem; flex-shrink: 0;
}
.ht-chat-popup-header .brand   { font-weight: 800; font-size: 0.9rem; color: #fff; }
.ht-chat-popup-header .brand span { color: #c8972a; }
.ht-chat-popup-header .sub     { font-size: 0.7rem; color: rgba(255,255,255,0.55); margin-top: 1px; }
.ht-chat-popup-header .close-popup {
    margin-left: auto; background: none; border: none;
    color: rgba(255,255,255,0.55); font-size: 1.1rem; cursor: pointer; padding: 0;
}
.ht-chat-popup-header .close-popup:hover { color: #fff; }

.ht-chat-popup-msgs {
    flex: 1; overflow-y: auto; padding: 0.85rem;
    background: #fafaf8; display: flex; flex-direction: column;
}
.ht-chat-popup-msgs::-webkit-scrollbar { width: 3px; }
.ht-chat-popup-msgs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.ht-popup-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #adb5bd; text-align: center; padding: 1.25rem;
}
.ht-popup-empty i   { font-size: 2.5rem; margin-bottom: 0.6rem; display: block; }
.ht-popup-empty p   { font-size: 0.78rem; }

.ht-chat-popup-footer {
    padding: 0.65rem 0.85rem;
    border-top: 1px solid #e8e4dc; background: #fff;
}
.ht-popup-view-all {
    display: block; text-align: center;
    font-size: 0.74rem; color: #c8972a; font-weight: 600;
    margin-bottom: 0.45rem; text-decoration: none;
}
.ht-popup-view-all:hover { text-decoration: underline; }

.ht-chat-input-row {
    display: flex; align-items: center; gap: 0.4rem;
    background: #f5f3ee; border: 1.5px solid #e8e4dc;
    border-radius: 22px; padding: 0.35rem 0.5rem 0.35rem 0.75rem;
    transition: border-color 0.2s;
}
.ht-chat-input-row:focus-within { border-color: #c8972a; }
.ht-chat-input {
    flex: 1; border: none; background: transparent; outline: none;
    font-family: inherit; font-size: 0.82rem;
    resize: none; max-height: 72px; line-height: 1.45;
}
.ht-chat-attach-btn {
    background: none; border: none; color: #7a7a7a;
    font-size: 1rem; cursor: pointer; padding: 0;
    transition: color 0.2s; flex-shrink: 0;
}
.ht-chat-attach-btn:hover { color: #c8972a; }
.ht-chat-send-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg,#c8972a,#e0b94d);
    border: none; color: #fff; font-size: 0.9rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
.ht-chat-send-btn:hover { transform: scale(1.1); }
.ht-chat-send-btn:disabled { opacity: 0.5; transform: none; }

/* ================================================================
   CUSTOMER — FULL MESSAGES PAGE
   ================================================================ */

.shop-messages-wrap {
    max-width: 720px; margin: 2rem auto;
    padding: 0 1rem 3rem;
}
.shop-messages-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.09);
    overflow: hidden; display: flex; flex-direction: column;
    height: calc(100vh - 160px); min-height: 480px;
}
.shop-messages-header {
    background: linear-gradient(135deg,#1a1a2e,#0f3460);
    padding: 1.1rem 1.4rem;
    display: flex; align-items: center; gap: 0.9rem;
}
.shop-messages-header .support-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(200,151,42,0.15);
    border: 1.5px solid rgba(200,151,42,0.3);
    display: flex; align-items: center; justify-content: center;
    color: #c8972a; font-size: 1.25rem; flex-shrink: 0;
}
.shop-messages-header .title    { color: #fff; font-weight: 700; font-size: 0.98rem; }
.shop-messages-header .subtitle { color: rgba(255,255,255,0.52); font-size: 0.75rem; margin-top: 1px; }
.shop-messages-header .back-link {
    margin-left: auto; color: rgba(255,255,255,0.6);
    font-size: 0.78rem; text-decoration: none; display: flex;
    align-items: center; gap: 0.3rem;
}
.shop-messages-header .back-link:hover { color: #fff; }

.shop-messages-body {
    flex: 1; overflow-y: auto; padding: 1.25rem;
    background: #fafaf8;
    display: flex; flex-direction: column; gap: 0.1rem;
}
.shop-messages-body::-webkit-scrollbar { width: 4px; }
.shop-messages-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.shop-no-messages {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #adb5bd; text-align: center; padding: 2rem;
}
.shop-no-messages .no-icon {
    font-size: 3.5rem; margin-bottom: 1rem; display: block;
    color: #c8972a; opacity: 0.35;
}

.shop-messages-footer {
    border-top: 1px solid #e8e4dc; background: #fff;
    padding: 0.9rem 1.25rem;
}
.shop-msg-input-wrap {
    display: flex; align-items: flex-end; gap: 0.55rem;
    background: #f8f5f0; border: 1.5px solid #e8e4dc;
    border-radius: 16px; padding: 0.55rem 0.75rem;
    transition: border-color 0.2s;
}
.shop-msg-input-wrap:focus-within { border-color: #c8972a; }
.shop-msg-input-wrap textarea {
    flex: 1; border: none; background: transparent; outline: none;
    font-family: inherit; font-size: 0.88rem;
    resize: none; max-height: 100px; line-height: 1.5;
}
.shop-attach-label {
    color: #7a7a7a; font-size: 1.1rem; cursor: pointer;
    transition: color 0.2s; flex-shrink: 0;
}
.shop-attach-label:hover { color: #c8972a; }
.shop-send-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg,#c8972a,#e0b94d);
    border: none; color: #fff; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
.shop-send-btn:hover   { transform: scale(1.06); }
.shop-send-btn:disabled { opacity: 0.5; transform: none; }

/* ================================================================
   ADMIN — MESSAGES INBOX (SPLIT PANE)
   ================================================================ */

.admin-msg-wrap {
    display: flex;
    height: calc(100vh - 210px); min-height: 500px;
    background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

/* ── Left: Conversation List ── */
.admin-conv-list {
    width: 295px; flex-shrink: 0;
    border-right: 1px solid #e9ecef;
    display: flex; flex-direction: column; background: #fff;
}
.admin-conv-list-header {
    padding: 0.9rem 1.1rem; border-bottom: 1px solid #e9ecef;
    display: flex; align-items: center; justify-content: space-between;
}
.admin-conv-list-header h6 { margin: 0; font-weight: 700; font-size: 0.9rem; color: #1a1a2e; }

.admin-conv-search { padding: 0.55rem 1rem; border-bottom: 1px solid #e9ecef; }
.admin-conv-search input {
    width: 100%; padding: 0.38rem 0.7rem;
    border: 1.5px solid #e9ecef; border-radius: 20px;
    font-size: 0.8rem; outline: none; transition: border-color 0.2s;
}
.admin-conv-search input:focus { border-color: #c8972a; }

.admin-conv-items { flex: 1; overflow-y: auto; }
.admin-conv-items::-webkit-scrollbar { width: 3px; }
.admin-conv-items::-webkit-scrollbar-thumb { background: #e0e0e0; }

.admin-conv-item {
    padding: 0.78rem 1.05rem; border-bottom: 1px solid #f5f3f0;
    cursor: pointer; display: flex; align-items: flex-start; gap: 0.65rem;
    transition: background 0.15s; text-decoration: none; color: inherit;
}
.admin-conv-item:hover  { background: #fafaf8; }
.admin-conv-item.active { background: #fef9f0; border-left: 3px solid #c8972a; }
.admin-conv-item.active .admin-conv-name { color: #c8972a; }

.admin-conv-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg,#1a1a2e,#0f3460);
    display: flex; align-items: center; justify-content: center;
    color: #c8972a; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.admin-conv-info { flex: 1; min-width: 0; }
.admin-conv-name    { font-size: 0.83rem; font-weight: 600; color: #1a1a2e;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-conv-preview { font-size: 0.73rem; color: #7a7a7a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.12rem; }
.admin-conv-meta    { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; flex-shrink: 0; }
.admin-conv-time    { font-size: 0.67rem; color: #adb5bd; }
.admin-conv-unread  {
    background: #c8972a; color: #fff; font-size: 0.6rem;
    border-radius: 9px; padding: 0.08rem 0.38rem; font-weight: 700;
}

/* ── Right: Chat Panel ── */
.admin-chat-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.admin-chat-panel-header {
    padding: 0.85rem 1.2rem; border-bottom: 1px solid #e9ecef;
    display: flex; align-items: center; gap: 0.75rem; background: #fff;
    flex-shrink: 0;
}
.admin-chat-panel-header .customer-info { flex: 1; min-width: 0; }
.admin-chat-panel-header .customer-name  { font-weight: 700; font-size: 0.93rem; color: #1a1a2e; }
.admin-chat-panel-header .customer-email { font-size: 0.75rem; color: #7a7a7a; }

.admin-chat-panel-body {
    flex: 1; overflow-y: auto; padding: 1.1rem;
    background: #fafaf8; display: flex; flex-direction: column; gap: 0.1rem;
}
.admin-chat-panel-body::-webkit-scrollbar { width: 4px; }
.admin-chat-panel-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.admin-chat-panel-footer {
    border-top: 1px solid #e9ecef; padding: 0.8rem 1.2rem;
    background: #fff; flex-shrink: 0;
}
.admin-msg-input-wrap {
    display: flex; align-items: flex-end; gap: 0.55rem;
    background: #f8f9fa; border: 1.5px solid #e9ecef;
    border-radius: 12px; padding: 0.55rem 0.75rem;
    transition: border-color 0.2s;
}
.admin-msg-input-wrap:focus-within { border-color: #c8972a; }
.admin-msg-input-wrap textarea {
    flex: 1; border: none; background: transparent; outline: none;
    font-family: inherit; font-size: 0.86rem;
    resize: none; max-height: 96px; line-height: 1.5;
}
.admin-attach-btn {
    background: none; border: none; color: #7a7a7a; font-size: 1.1rem;
    cursor: pointer; padding: 0; transition: color 0.2s; flex-shrink: 0;
}
.admin-attach-btn:hover { color: #c8972a; }
.admin-send-btn {
    background: linear-gradient(135deg,#c8972a,#e0b94d);
    border: none; color: #fff; border-radius: 8px;
    padding: 0.45rem 1rem; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 0.35rem;
    white-space: nowrap; transition: all 0.2s; flex-shrink: 0;
}
.admin-send-btn:hover     { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200,151,42,0.4); }
.admin-send-btn:disabled  { opacity: 0.5; transform: none; box-shadow: none; }

/* Empty state */
.admin-chat-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #adb5bd; text-align: center; padding: 2rem;
}
.admin-chat-empty i    { font-size: 4rem; margin-bottom: 0.9rem; display: block; opacity: 0.35; }
.admin-chat-empty h5   { font-size: 1rem; color: #1a1a2e; opacity: 0.5; margin-bottom: 0.4rem; }
.admin-chat-empty p    { font-size: 0.8rem; }

/* ── Product Card inside message bubble ── */
.msg-product-card {
    display: flex; align-items: center; gap: 0.65rem;
    background: rgba(255,255,255,0.13);
    border: 1.5px solid rgba(200,151,42,0.45);
    border-radius: 10px; padding: 0.55rem 0.75rem;
    margin-bottom: 0.4rem; text-decoration: none;
    transition: background 0.15s; max-width: 280px;
}
.msg-product-card:hover { background: rgba(255,255,255,0.22); }
.by-admin .msg-product-card {
    background: rgba(200,151,42,0.06);
    border-color: rgba(200,151,42,0.3);
}
.msg-product-card img {
    width: 54px; height: 54px; object-fit: cover;
    border-radius: 7px; flex-shrink: 0;
    border: 1.5px solid rgba(200,151,42,0.25);
}
.msg-product-card-info { flex: 1; min-width: 0; }
.msg-product-card-tag  { font-size: 0.64rem; opacity: 0.65; color: inherit; margin-bottom: 0.1rem; }
.msg-product-card-name {
    font-size: 0.8rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.by-admin .msg-product-card-name { color: #1a1a2e; }
.msg-product-card-price { font-size: 0.75rem; color: #c8972a; font-weight: 600; margin-top: 0.1rem; }

/* ── Product context bar (above chat input) ── */
.ht-product-context {
    display: flex; align-items: center; gap: 0.55rem;
    background: rgba(200,151,42,0.08);
    border: 1.5px solid rgba(200,151,42,0.3);
    border-radius: 10px; padding: 0.42rem 0.65rem;
    margin-bottom: 0.4rem;
}
.ht-product-context img {
    width: 36px; height: 36px; object-fit: cover;
    border-radius: 6px; flex-shrink: 0;
}
.ht-product-context-info { flex: 1; min-width: 0; }
.ht-product-context-name {
    font-size: 0.76rem; font-weight: 700; color: #1a1a2e;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ht-product-context-price { font-size: 0.7rem; color: #c8972a; font-weight: 600; }
.ht-product-context-remove {
    background: none; border: none; color: #aaa;
    cursor: pointer; font-size: 1rem; padding: 0; line-height: 1;
    flex-shrink: 0; transition: color 0.15s;
}
.ht-product-context-remove:hover { color: #dc3545; }

/* ── Create Order modal tweaks ── */
.order-product-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0; border-bottom: 1px solid #f0ece4;
}
.order-product-row:last-child { border-bottom: none; }
.order-product-thumb {
    width: 40px; height: 40px; object-fit: cover;
    border-radius: 6px; flex-shrink: 0;
}
.order-product-name { flex: 1; font-size: 0.82rem; font-weight: 600; min-width: 0; }
.order-product-price { font-size: 0.8rem; color: #c8972a; font-weight: 700; white-space: nowrap; }
.order-product-qty-input {
    width: 60px; text-align: center; font-size: 0.82rem;
    border: 1.5px solid #e0ddd8; border-radius: 6px; padding: 0.3rem;
}
.order-product-remove { background: none; border: none; color: #dc3545; cursor: pointer; font-size: 1rem; }
.order-product-price-input {
    width: 100%; text-align: right; font-size: 0.82rem; font-weight: 700;
    border: 1.5px solid #e0ddd8; border-radius: 6px; padding: 0.28rem 0.45rem;
    color: #1a1a2e; outline: none; transition: border-color 0.15s;
}
.order-product-price-input:focus { border-color: #c8972a; }

/* Responsive */
@media (max-width: 768px) {
    .ht-chat-popup { width: 300px; height: 420px; }
    .shop-messages-wrap { margin: 1rem auto; padding: 0 0.5rem 2rem; }

    .admin-msg-wrap { flex-direction: column; }
    .admin-conv-list { width: 100%; height: 260px; border-right: none; border-bottom: 1px solid #e9ecef; }
    .admin-chat-panel { flex: 1; }
}
@media (max-width: 480px) {
    .ht-chat-widget  { bottom: 16px; right: 16px; }
    .ht-chat-popup   { width: calc(100vw - 32px); right: -16px; }
}
