.sigge-chat-app{display:flex;min-height:620px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}
.sigge-chat-sidebar{width:34%;min-width:260px;border-right:1px solid #e5e7eb;background:#fafafa}
.sigge-chat-sidebar-head{padding:16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5e7eb}
.sigge-chat-plan{font-size:11px;font-weight:700;background:#111827;color:#fff;border-radius:999px;padding:4px 8px}
.sigge-chat-conversations{overflow:auto;max-height:570px}
.sigge-chat-conv{width:100%;border:0;border-bottom:1px solid #eee;background:transparent;padding:12px;text-align:left;display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;cursor:pointer}
.sigge-chat-conv:hover,.sigge-chat-conv.is-active{background:#eef6ff}
.sigge-chat-conv img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.sigge-chat-conv strong,.sigge-chat-conv small{display:block}.sigge-chat-conv small{color:#6b7280;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sigge-unread{background:#dc2626;color:#fff;border-radius:999px;font-size:11px;min-width:20px;height:20px;line-height:20px;text-align:center;padding:0 5px}
.sigge-chat-main{width:66%;display:flex;flex-direction:column}
.sigge-chat-empty{margin:auto;color:#6b7280;padding:40px;text-align:center}
.sigge-chat-thread{display:flex;flex-direction:column;height:620px}
.sigge-chat-thread-head{padding:14px 16px;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}
.sigge-chat-context{font-size:12px;color:#6b7280;margin-top:2px}
.sigge-chat-refresh{border:0;background:#f3f4f6;border-radius:8px;width:34px;height:34px;cursor:pointer}
.sigge-chat-messages{flex:1;overflow:auto;padding:18px;background:#f8fafc}
.sigge-msg{display:flex;margin:8px 0}.sigge-msg.mine{justify-content:flex-end}.sigge-msg.theirs{justify-content:flex-start}
.sigge-bubble{max-width:76%;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:10px 12px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.sigge-msg.mine .sigge-bubble{background:#e8f3ff}
.sigge-bubble small{display:block;color:#6b7280;font-size:10px;margin-top:5px}
.sigge-attachment img{display:block;max-width:220px;max-height:220px;border-radius:8px;margin-top:8px}
.sigge-attachment-file{display:inline-block;margin-top:8px}
.sigge-chat-compose{padding:12px;border-top:1px solid #e5e7eb;background:#fff}
.sigge-chat-compose textarea{width:100%;resize:vertical;min-height:58px;border:1px solid #d1d5db;border-radius:8px;padding:10px;box-sizing:border-box}
.sigge-chat-compose-row{display:flex;gap:8px;align-items:center;margin-top:8px}
.sigge-chat-attachment-wrap{position:relative;overflow:hidden;display:inline-flex;align-items:center;padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;cursor:pointer}
.sigge-chat-attachment{position:absolute;left:-9999px}
.sigge-chat-quick-reply{max-width:250px}
.sigge-chat-send{margin-left:auto!important}
.sigge-chat-notice{font-size:12px;color:#b91c1c;margin-top:6px}
.sigge-chat-loading{padding:18px;color:#6b7280}
.sigge-product-chat{margin-top:10px}
@media(max-width:780px){.sigge-chat-app{display:block;min-height:0}.sigge-chat-sidebar,.sigge-chat-main{width:100%;min-width:0}.sigge-chat-sidebar{border-right:0;border-bottom:1px solid #e5e7eb}.sigge-chat-conversations{max-height:240px}.sigge-chat-thread{height:560px}.sigge-chat-compose-row{flex-wrap:wrap}.sigge-chat-send{margin-left:0!important}.sigge-chat-quick-reply{max-width:100%;flex:1}}

.sigge-guest-identify{background:#fff;padding:18px;border:1px solid #ddd;border-radius:8px;margin-bottom:18px}.sigge-guest-identify input{width:100%;margin-top:5px}.sigge-guest-error{color:#b32d2e;margin-top:10px}


/* Shopee-style floating customer chat */
.sigge-floating-chat{position:fixed;right:22px;bottom:22px;z-index:999999;font-family:inherit}
.sigge-chat-launcher{position:relative;display:flex;align-items:center;gap:8px;border:0;border-radius:24px;padding:11px 16px;background:#ee4d2d;color:#fff;box-shadow:0 6px 24px rgba(0,0,0,.2);font-weight:700;cursor:pointer}
.sigge-chat-launcher:hover{filter:brightness(.97)}
.sigge-chat-launcher-icon{font-size:20px;line-height:1}
.sigge-chat-launcher-badge{position:absolute;right:-5px;top:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#fff;color:#ee4d2d;border:2px solid #ee4d2d;font-size:10px;line-height:16px;text-align:center}
.sigge-chat-popup{position:absolute;right:0;bottom:58px;width:370px;height:520px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.24)}
.sigge-chat-popup-bar{height:56px;background:#ee4d2d;color:#fff;padding:0 10px 0 14px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.sigge-chat-popup-title{min-width:0;display:flex;flex-direction:column}
.sigge-chat-popup-title strong,.sigge-chat-popup-title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sigge-chat-popup-title small{opacity:.9;font-size:11px;margin-top:2px}
.sigge-chat-popup-actions{display:flex;gap:3px}
.sigge-chat-popup-actions button{width:30px;height:30px;border:0;background:transparent;color:#fff;font-size:22px;line-height:28px;cursor:pointer;border-radius:6px}
.sigge-chat-popup-actions button:hover{background:rgba(255,255,255,.16)}
.sigge-chat-popup-body{height:calc(100% - 56px);background:#fff}
.sigge-popup-identify{border:0;border-radius:0;margin:0;padding:16px;height:100%;box-sizing:border-box}
.sigge-popup-identify p{font-size:13px;margin:0 0 14px}
.sigge-popup-identify label{display:block;font-size:12px;font-weight:600;margin:10px 0}
.sigge-popup-identify input{box-sizing:border-box;padding:9px}
.sigge-popup-identify #sigge-guest-start{width:100%;margin-top:8px;background:#ee4d2d;border-color:#ee4d2d;color:#fff}
.sigge-popup-chat-shell,.sigge-chat-app-popup{height:100%}
.sigge-chat-app-popup{min-height:0;border:0;border-radius:0}
.sigge-chat-app-popup .sigge-chat-sidebar{display:none}
.sigge-chat-app-popup .sigge-chat-main{width:100%;height:100%}
.sigge-chat-app-popup .sigge-chat-thread{height:100%}
.sigge-chat-app-popup .sigge-chat-thread-head{padding:9px 12px;min-height:47px;box-sizing:border-box}
.sigge-chat-app-popup .sigge-chat-messages{padding:12px}
.sigge-chat-app-popup .sigge-chat-compose{padding:9px}
.sigge-chat-app-popup .sigge-chat-compose textarea{min-height:46px;max-height:90px}
.sigge-chat-app-popup .sigge-chat-compose-row{margin-top:6px}
.sigge-chat-app-popup .sigge-chat-quick-reply{display:none!important}
.sigge-chat-app-popup .sigge-chat-empty{padding:24px}
.sigge-chat-app-popup .sigge-bubble{max-width:84%}
@media(max-width:600px){
  .sigge-floating-chat{right:12px;bottom:12px}
  .sigge-chat-launcher-label{display:none}
  .sigge-chat-launcher{width:48px;height:48px;padding:0;justify-content:center;border-radius:50%}
  .sigge-chat-popup{position:fixed;left:8px;right:8px;bottom:68px;width:auto;height:min(72vh,560px);border-radius:10px}
}

.sigge-chat-head-actions{display:flex;align-items:center;gap:6px}
.sigge-chat-head-actions button{cursor:pointer}
.sigge-chat-notify-enable{border:0;background:transparent;font-size:16px;opacity:.6}
.sigge-chat-notify-enable.is-enabled{opacity:1}
.sigge-chat-notice.sigge-safety-warning{margin-top:7px;padding:8px 10px;border-radius:6px;background:#fff3cd;color:#664d03;font-weight:600}

.sigge-chat-notify-enable{padding:6px 9px!important;border-radius:6px!important;font-size:12px!important;font-weight:700!important;opacity:1!important;color:#fff!important}
.sigge-chat-notify-enable.sigge-notify-off{background:#dc3545!important;border:1px solid #b02a37!important}
.sigge-chat-notify-enable.sigge-notify-on{background:#198754!important;border:1px solid #146c43!important}
.sigge-chat-notify-enable span{white-space:nowrap}
.sigge-admin-notify-off{background:#dc3545!important;border-color:#b02a37!important;color:#fff!important}
.sigge-admin-notify-on{background:#198754!important;border-color:#146c43!important;color:#fff!important}

.sigge-chat-notify-enable{
  position:relative!important;
  z-index:20!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  user-select:none!important;
  min-height:32px!important;
}

.sigge-chat-product-picker{margin-top:8px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;overflow:hidden}
.sigge-chat-product-picker[hidden]{display:none}
.sigge-chat-product-picker-head{display:grid;grid-template-columns:1fr 36px;gap:8px;padding:9px;border-bottom:1px solid #e5e7eb}
.sigge-chat-product-search{width:100%!important;height:38px!important;border:1px solid #d1d5db!important;border-radius:9px!important;padding:0 10px!important}
.sigge-chat-product-picker-close{border:0;border-radius:8px;background:#f3f4f6;font-size:20px;cursor:pointer}
.sigge-chat-product-results{max-height:250px;overflow:auto;padding:7px}
.sigge-chat-product-result{width:100%;display:grid;grid-template-columns:50px 1fr;gap:10px;align-items:center;border:0;background:#fff;padding:7px;border-radius:9px;text-align:left;cursor:pointer}
.sigge-chat-product-result:hover{background:#fff3ef}
.sigge-chat-product-result img,.sigge-chat-product-noimg{display:block;width:50px;height:50px;border-radius:8px;object-fit:cover;background:#f3f4f6}
.sigge-chat-product-result strong,.sigge-chat-product-result small{display:block}.sigge-chat-product-result strong{font-size:12px;color:#111827}.sigge-chat-product-result small{margin-top:3px;font-size:11px;color:#ee4d2d}
.sigge-chat-product-none{padding:18px;text-align:center;color:#737b86;font-size:12px}
.sigge-chat-product-card{display:grid;grid-template-columns:64px 1fr;gap:10px;width:260px;max-width:100%;margin-top:7px;padding:8px;border:1px solid rgba(0,0,0,.1);border-radius:12px;background:#fff;text-decoration:none!important}
.sigge-chat-product-card img,.sigge-chat-product-card .sigge-chat-product-noimg{width:64px;height:64px;border-radius:9px;object-fit:cover;background:#f3f4f6}
.sigge-chat-product-card-text{min-width:0}.sigge-chat-product-card-text strong,.sigge-chat-product-card-text small,.sigge-chat-product-card-text em{display:block}
.sigge-chat-product-card-text strong{font-size:12px;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sigge-chat-product-card-text small{margin-top:4px;font-size:11px;color:#ee4d2d}.sigge-chat-product-card-text em{margin-top:6px;font-size:10px;font-style:normal;color:#6b7280}
.sigge-chat-link-product{border-radius:8px!important}


/* v1.0.15 compact chat tools + product dropdown */
.sigge-chat-compose-row{
  align-items:center;
}
.sigge-chat-icon-btn{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  padding:0!important;
  border:1px solid #d8dde3!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#4b5563!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  position:relative;
  box-shadow:none!important;
}
.sigge-chat-icon-btn:hover{
  border-color:#ee4d2d!important;
  background:#fff7f3!important;
  color:#ee4d2d!important;
}
.sigge-chat-icon-btn .dashicons{
  width:18px;
  height:18px;
  font-size:18px;
  line-height:18px;
}
.sigge-chat-attachment-wrap input[type=file]{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
.sigge-chat-product-picker-head{
  grid-template-columns:1fr 36px;
}
.sigge-chat-product-select{
  width:100%!important;
  min-height:40px!important;
  border:1px solid #d1d5db!important;
  border-radius:9px!important;
  padding:0 10px!important;
  background:#fff!important;
}
.sigge-chat-product-preview{
  padding:0 8px 8px;
}
.sigge-chat-product-choice-card{
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:9px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fafafa;
}
.sigge-chat-product-choice-card img,
.sigge-chat-product-choice-card .sigge-chat-product-noimg{
  width:54px;
  height:54px;
  border-radius:8px;
  object-fit:cover;
  background:#f3f4f6;
}
.sigge-chat-product-choice-text{
  min-width:0;
}
.sigge-chat-product-choice-text strong,
.sigge-chat-product-choice-text small{
  display:block;
}
.sigge-chat-product-choice-text strong{
  font-size:12px;
  color:#111827;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sigge-chat-product-choice-text small{
  margin-top:3px;
  color:#ee4d2d;
  font-size:11px;
}
.sigge-chat-product-insert{
  border-radius:8px!important;
}


/* v1.0.17 Dokan vendor dashboard floating live chat */
.sigge-chat-notify-enable,
.sigge-notify-on,
.sigge-notify-off{
  display:none!important;
}

.sigge-vendor-dashboard-floating{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:999999;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.sigge-vendor-dashboard-launcher{
  position:relative;
  height:52px;
  min-width:138px;
  border:0;
  border-radius:26px;
  background:#ee4d2d;
  color:#fff;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.22);
}
.sigge-vendor-dashboard-launcher:hover{
  background:#d94427;
  color:#fff;
}
.sigge-vendor-dashboard-launcher-icon{font-size:20px}
.sigge-vendor-dashboard-launcher-badge{
  position:absolute;
  right:-4px;
  top:-6px;
  min-width:22px;
  height:22px;
  padding:0 5px;
  border:2px solid #fff;
  border-radius:11px;
  background:#dc2626;
  color:#fff;
  font-size:11px;
  line-height:18px;
  text-align:center;
}
.sigge-vendor-dashboard-popup{
  position:absolute;
  right:0;
  bottom:64px;
  width:760px;
  height:560px;
  max-width:calc(100vw - 46px);
  max-height:calc(100vh - 100px);
  background:#fff;
  border:1px solid #dfe3e8;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(17,24,39,.28);
}
.sigge-vendor-dashboard-popup[hidden]{display:none!important}
.sigge-vendor-dashboard-popup-bar{
  height:60px;
  padding:0 14px 0 18px;
  background:#ee4d2d;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.sigge-vendor-dashboard-popup-bar strong,
.sigge-vendor-dashboard-popup-bar small{display:block}
.sigge-vendor-dashboard-popup-bar small{
  margin-top:2px;
  color:rgba(255,255,255,.82);
  font-size:10px;
}
.sigge-vendor-dashboard-minimize{
  width:32px;
  height:32px;
  border:0;
  border-radius:8px;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:20px;
  cursor:pointer;
}
.sigge-vendor-dashboard-popup-body{
  height:calc(100% - 60px);
  min-height:0;
}
.sigge-vendor-dashboard-popup .sigge-chat-app{
  height:100%;
  min-height:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  margin:0;
}
.sigge-vendor-dashboard-popup .sigge-chat-sidebar{
  min-height:0;
}
.sigge-vendor-dashboard-popup .sigge-chat-main{
  min-height:0;
}
.sigge-vendor-dashboard-popup .sigge-chat-thread{
  height:100%;
  min-height:0;
}
.sigge-vendor-dashboard-popup .sigge-chat-messages{
  min-height:0;
}
.sigge-vendor-dashboard-launcher.is-open{display:none}

@media(max-width:782px){
  .sigge-vendor-dashboard-floating{
    right:10px;
    bottom:10px;
  }
  .sigge-vendor-dashboard-popup{
    position:fixed;
    left:8px;
    right:8px;
    top:58px;
    bottom:8px;
    width:auto;
    height:auto;
    max-width:none;
    max-height:none;
  }
  .sigge-vendor-dashboard-launcher{
    min-width:54px;
    width:54px;
    padding:0;
  }
  .sigge-vendor-dashboard-launcher-label{display:none}
  .sigge-vendor-dashboard-popup .sigge-chat-app{
    grid-template-columns:115px minmax(0,1fr);
  }
}


/* v1.0.18 compact Quick Reply icon */
.sigge-chat-compose-row{position:relative}
.sigge-chat-quick-reply-btn{
  flex:0 0 34px!important;
}
.sigge-chat-quick-reply-menu{
  position:absolute;
  left:0;
  bottom:44px;
  width:280px;
  max-width:calc(100vw - 40px);
  padding:6px;
  border:1px solid #e1e5ea;
  border-radius:11px;
  background:#fff;
  box-shadow:0 12px 30px rgba(17,24,39,.16);
  z-index:50;
}
.sigge-chat-quick-reply-menu[hidden]{display:none!important}
.sigge-chat-quick-reply-menu button{
  display:block;
  width:100%;
  border:0;
  border-radius:8px;
  background:#fff;
  color:#374151;
  padding:9px 10px;
  text-align:left;
  font-size:11px;
  line-height:1.35;
  cursor:pointer;
}
.sigge-chat-quick-reply-menu button:hover{
  background:#fff3ef;
  color:#ee4d2d;
}


/* v1.0.19 vendor-managed Quick Replies */
.sigge-chat-quick-reply-menu{
  max-height:360px;
  overflow:hidden;
}
.sigge-chat-quick-reply-list{
  max-height:260px;
  overflow:auto;
}
.sigge-chat-quick-reply-custom-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 30px;
  gap:4px;
  align-items:center;
}
.sigge-chat-quick-reply-item{
  overflow:hidden;
}
.sigge-chat-quick-reply-item span{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sigge-chat-quick-reply-delete{
  width:28px!important;
  height:28px!important;
  padding:0!important;
  border:0!important;
  border-radius:7px!important;
  background:#f3f4f6!important;
  color:#6b7280!important;
  text-align:center!important;
  font-size:16px!important;
  cursor:pointer!important;
}
.sigge-chat-quick-reply-delete:hover{
  background:#fee2e2!important;
  color:#b91c1c!important;
}
.sigge-chat-quick-reply-add{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  gap:6px;
  padding:7px 6px 4px;
  margin-top:4px;
  border-top:1px solid #e5e7eb;
}
.sigge-chat-quick-reply-new{
  width:100%!important;
  min-width:0!important;
  height:34px!important;
  border:1px solid #d1d5db!important;
  border-radius:8px!important;
  padding:0 9px!important;
  font-size:11px!important;
}
.sigge-chat-quick-reply-save{
  width:34px!important;
  height:34px!important;
  border:0!important;
  border-radius:8px!important;
  background:#ee4d2d!important;
  color:#fff!important;
  font-size:20px!important;
  line-height:34px!important;
  text-align:center!important;
  cursor:pointer!important;
}
.sigge-chat-quick-reply-empty{
  padding:12px 8px;
  text-align:center;
  color:#737b86;
  font-size:11px;
}


/* v1.0.20 Dokan-purple conversation list for better readability */
.sigge-chat-sidebar,
.sigge-vendor-dashboard-popup .sigge-chat-sidebar{
  background:#7047eb!important;
  border-right-color:#6139d6!important;
}
.sigge-chat-sidebar-head,
.sigge-vendor-dashboard-popup .sigge-chat-sidebar-head{
  color:#fff!important;
  border-bottom-color:rgba(255,255,255,.16)!important;
}
.sigge-chat-sidebar-head strong,
.sigge-chat-sidebar-head h3,
.sigge-chat-sidebar-head span{
  color:#fff!important;
}
.sigge-chat-conversations{
  background:#7047eb!important;
}
.sigge-chat-conversation,
.sigge-chat-conversations button{
  color:#fff!important;
  border-bottom-color:rgba(255,255,255,.12)!important;
}
.sigge-chat-conversation:hover,
.sigge-chat-conversations button:hover{
  background:rgba(255,255,255,.12)!important;
}
.sigge-chat-conversation.active,
.sigge-chat-conversation.is-active,
.sigge-chat-conversations button.active,
.sigge-chat-conversations button.is-active{
  background:#fff!important;
  color:#5b32c7!important;
}
.sigge-chat-conversation strong,
.sigge-chat-conversations button strong{
  color:#fff!important;
  font-weight:700!important;
}
.sigge-chat-conversation small,
.sigge-chat-conversation .sigge-chat-preview,
.sigge-chat-conversation .sigge-chat-context,
.sigge-chat-conversations button small{
  color:rgba(255,255,255,.78)!important;
}
.sigge-chat-conversation.active strong,
.sigge-chat-conversation.is-active strong,
.sigge-chat-conversations button.active strong,
.sigge-chat-conversations button.is-active strong{
  color:#5b32c7!important;
}
.sigge-chat-conversation.active small,
.sigge-chat-conversation.is-active small,
.sigge-chat-conversations button.active small,
.sigge-chat-conversations button.is-active small{
  color:#75699a!important;
}
.sigge-chat-conversation .sigge-unread,
.sigge-chat-conversations .sigge-unread{
  background:#fff!important;
  color:#7047eb!important;
}

/* Also improve the custom floating Dokan conversation list if rendered. */
.sigge-dokan-vendor-chat-list,
.sigge-dokan-vendor-chat-list-inner{
  background:#7047eb!important;
}
.sigge-dokan-vendor-conv{
  color:#fff!important;
}
.sigge-dokan-vendor-conv:hover{
  background:rgba(255,255,255,.12)!important;
}
.sigge-dokan-vendor-conv.is-active{
  background:#fff!important;
}
.sigge-dokan-vendor-conv strong{
  color:#fff!important;
  font-weight:700!important;
}
.sigge-dokan-vendor-conv small{
  color:rgba(255,255,255,.78)!important;
}
.sigge-dokan-vendor-conv.is-active strong{
  color:#5b32c7!important;
}
.sigge-dokan-vendor-conv.is-active small{
  color:#75699a!important;
}


/* v1.0.21 clean product display: hide internal/technical product details */
.sigge-chat-product-card-text small,
.sigge-chat-product-choice-text small,
.sigge-dokan-vendor-product-card small,
.sigge-dokan-vendor-product-choice small{
  display:none!important;
}
.sigge-chat-product-card-text strong,
.sigge-chat-product-choice-text strong{
  white-space:normal!important;
  line-height:1.3!important;
}


/* v1.0.22 Link Order + Video Upload */
.sigge-chat-video-wrap input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  overflow:hidden!important;
}
.sigge-chat-order-picker{
  position:absolute;
  left:0;
  bottom:44px;
  width:340px;
  max-width:calc(100vw - 40px);
  padding:8px;
  border:1px solid #e1e5ea;
  border-radius:11px;
  background:#fff;
  box-shadow:0 12px 30px rgba(17,24,39,.16);
  z-index:55;
}
.sigge-chat-order-picker[hidden]{display:none!important}
.sigge-chat-order-picker-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  gap:7px;
}
.sigge-chat-order-select{
  width:100%;
  min-width:0;
  min-height:40px;
  border:1px solid #d1d5db;
  border-radius:9px;
  padding:0 9px;
  background:#fff;
}
.sigge-chat-order-picker-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:8px;
  background:#f3f4f6;
  color:#4b5563;
  font-size:20px;
  cursor:pointer;
}
.sigge-chat-order-choice{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding-top:8px;
}
.sigge-chat-order-choice strong,
.sigge-chat-order-choice small{display:block}
.sigge-chat-order-choice small{
  margin-top:3px;
  color:#6b7280;
  font-size:10px;
}
.sigge-chat-order-insert{
  border:0;
  border-radius:8px;
  background:#7047eb;
  color:#fff;
  padding:8px 12px;
  cursor:pointer;
}
.sigge-chat-order-card{
  margin-top:7px;
  min-width:210px;
  max-width:280px;
  padding:10px 12px;
  border:1px solid #ddd6fe;
  border-radius:12px;
  background:#f7f5ff;
  color:#3f2a7a;
}
.sigge-chat-order-card strong,
.sigge-chat-order-card span,
.sigge-chat-order-card small{display:block}
.sigge-chat-order-card span{
  margin-top:3px;
  font-size:10px;
}
.sigge-chat-order-card small{
  margin-top:3px;
  font-size:10px;
  color:#7047eb;
}
.sigge-chat-video{
  display:block;
  width:100%;
  max-width:320px;
  max-height:240px;
  margin-top:7px;
  border-radius:10px;
  background:#111;
}


/* v1.1.5 — polished vendor Messages dashboard.
   Intentionally scoped to the chat content only: Dokan/Sigge Menu shell is untouched. */
.sigge-chat-vendor-page{
  --sigge-purple:#7047eb;
  --sigge-purple-dark:#5d35df;
  --sigge-purple-soft:#f3efff;
  --sigge-border:#e6e8ef;
  --sigge-text:#172033;
  --sigge-muted:#748096;
  max-width:none;
  padding:4px 0 28px;
}
.sigge-chat-vendor-page .sigge-chat-page-heading{
  display:flex;align-items:center;gap:14px;margin:0 0 20px;
}
.sigge-chat-vendor-page .sigge-chat-page-icon{
  width:46px;height:46px;border-radius:13px;display:flex;align-items:center;justify-content:center;
  color:#fff;background:linear-gradient(145deg,var(--sigge-purple),#8b5cf6);
  box-shadow:0 8px 22px rgba(112,71,235,.22);
}
.sigge-chat-vendor-page .sigge-chat-page-icon .dashicons{font-size:24px;width:24px;height:24px}
.sigge-chat-vendor-page .sigge-chat-page-heading h1{
  margin:0;color:var(--sigge-text);font-size:30px;line-height:1.12;font-weight:750;letter-spacing:-.5px;
}
.sigge-chat-vendor-page .sigge-chat-page-heading p{
  margin:4px 0 0;color:var(--sigge-muted);font-size:14px;
}
.sigge-chat-vendor-page .sigge-chat-app{
  min-height:640px;height:calc(100vh - 290px);max-height:780px;
  border:1px solid var(--sigge-border);border-radius:15px;
  background:#fff;box-shadow:0 8px 30px rgba(24,32,51,.06);overflow:hidden;
}
.sigge-chat-vendor-page .sigge-chat-sidebar{
  width:34%;min-width:310px;background:#fff;border-right:1px solid var(--sigge-border);
  display:flex;flex-direction:column;
}
.sigge-chat-vendor-page .sigge-chat-sidebar-head{
  min-height:64px;padding:16px 18px;background:#fff;border-bottom:1px solid var(--sigge-border);
}
.sigge-chat-vendor-page .sigge-chat-sidebar-head strong{font-size:17px;color:var(--sigge-text)}
.sigge-chat-vendor-page .sigge-chat-plan{
  background:#171c2d;color:#fff;padding:5px 9px;font-size:10px;letter-spacing:.4px;
}
.sigge-chat-vendor-page .sigge-chat-conversations{max-height:none;flex:1;background:#fff}
.sigge-chat-vendor-page .sigge-chat-conv{
  grid-template-columns:48px minmax(0,1fr) auto;gap:11px;padding:14px 16px;
  min-height:76px;border-bottom:1px solid #f0f1f5;transition:.15s ease;
}
.sigge-chat-vendor-page .sigge-chat-conv:hover{background:#faf8ff}
.sigge-chat-vendor-page .sigge-chat-conv.is-active{
  background:linear-gradient(90deg,#f2edff 0%,#faf8ff 100%);
  box-shadow:inset 3px 0 0 var(--sigge-purple);
}
.sigge-chat-vendor-page .sigge-chat-conv img{width:48px;height:48px;border:1px solid #e5e7eb}
.sigge-chat-vendor-page .sigge-chat-conv strong{
  color:var(--sigge-text);font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.sigge-chat-vendor-page .sigge-chat-conv small{color:var(--sigge-muted);font-size:12px;line-height:1.35}
.sigge-chat-vendor-page .sigge-unread{background:var(--sigge-purple);box-shadow:0 2px 8px rgba(112,71,235,.22)}
.sigge-chat-vendor-page .sigge-chat-main{width:66%;min-width:0;background:#fff}
.sigge-chat-vendor-page .sigge-chat-thread{height:100%;min-height:0}
.sigge-chat-vendor-page .sigge-chat-thread-head{
  min-height:64px;padding:12px 18px;background:#fff;border-bottom:1px solid var(--sigge-border);
}
.sigge-chat-vendor-page .sigge-chat-peer{font-size:16px;color:var(--sigge-text);font-weight:750}
.sigge-chat-vendor-page .sigge-chat-context{
  max-width:680px;color:var(--sigge-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.sigge-chat-vendor-page .sigge-chat-refresh{
  width:38px;height:38px;background:#fff;border:1px solid #dfe3eb;color:var(--sigge-purple);
  border-radius:10px;font-size:18px;transition:.15s ease;
}
.sigge-chat-vendor-page .sigge-chat-refresh:hover{background:var(--sigge-purple-soft);border-color:#d7cdfb}
.sigge-chat-vendor-page .sigge-chat-messages{
  min-height:0;padding:22px;background:#fbfcfe;
  background-image:linear-gradient(rgba(112,71,235,.018) 1px,transparent 1px);
  background-size:100% 44px;
}
.sigge-chat-vendor-page .sigge-msg{margin:11px 0}
.sigge-chat-vendor-page .sigge-bubble{
  max-width:72%;padding:11px 14px;border:1px solid #e5e8ee;border-radius:14px 14px 14px 4px;
  background:#fff;color:#273246;box-shadow:0 2px 8px rgba(24,32,51,.035);line-height:1.45;
}
.sigge-chat-vendor-page .sigge-msg.mine .sigge-bubble{
  border-color:#e4dcff;border-radius:14px 14px 4px 14px;
  background:linear-gradient(135deg,#f0ebff,#e9e2ff);
}
.sigge-chat-vendor-page .sigge-bubble small{color:#8a94a6;font-size:10px;text-align:right}
.sigge-chat-vendor-page .sigge-chat-empty{
  color:var(--sigge-muted);font-size:14px;background:#fbfcfe;width:100%;box-sizing:border-box;
}
.sigge-chat-vendor-page .sigge-chat-compose{
  padding:13px 14px 14px;background:#fff;border-top:1px solid var(--sigge-border);
}
.sigge-chat-vendor-page .sigge-chat-compose textarea{
  min-height:62px;max-height:150px;padding:12px 14px;border:1px solid #dce1e9!important;border-radius:11px!important;
  background:#fff!important;box-shadow:none!important;font-size:14px;
}
.sigge-chat-vendor-page .sigge-chat-compose textarea:focus{
  border-color:#b9a8f8!important;box-shadow:0 0 0 3px rgba(112,71,235,.08)!important;outline:0;
}
.sigge-chat-vendor-page .sigge-chat-compose-row{gap:8px;margin-top:9px}
.sigge-chat-vendor-page .sigge-chat-icon-btn,
.sigge-chat-vendor-page .sigge-chat-attachment-wrap{
  width:36px;height:36px;padding:0!important;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #dce1e9!important;border-radius:9px!important;background:#fff!important;color:#566176!important;
}
.sigge-chat-vendor-page .sigge-chat-icon-btn:hover,
.sigge-chat-vendor-page .sigge-chat-attachment-wrap:hover{
  border-color:#cbbdfb!important;background:var(--sigge-purple-soft)!important;color:var(--sigge-purple)!important;
}
.sigge-chat-vendor-page .sigge-chat-icon-btn .dashicons,
.sigge-chat-vendor-page .sigge-chat-attachment-wrap .dashicons{font-size:18px;width:18px;height:18px}
.sigge-chat-vendor-page .sigge-chat-send{
  min-width:84px;height:38px;margin-left:auto!important;border:0!important;border-radius:9px!important;
  background:linear-gradient(135deg,var(--sigge-purple),#8155f2)!important;color:#fff!important;
  font-weight:700!important;box-shadow:0 5px 14px rgba(112,71,235,.2)!important;
}
.sigge-chat-vendor-page .sigge-chat-send:hover{background:linear-gradient(135deg,var(--sigge-purple-dark),#7047eb)!important}
.sigge-chat-vendor-page .sigge-chat-product-picker,
.sigge-chat-vendor-page .sigge-chat-order-picker,
.sigge-chat-vendor-page .sigge-chat-quick-reply-menu{
  border-color:var(--sigge-border);box-shadow:0 12px 28px rgba(24,32,51,.10);
}
.sigge-chat-vendor-page .sigge-chat-notice{margin:7px 2px 0}
.sigge-chat-vendor-page ::-webkit-scrollbar{width:8px;height:8px}
.sigge-chat-vendor-page ::-webkit-scrollbar-track{background:transparent}
.sigge-chat-vendor-page ::-webkit-scrollbar-thumb{background:#d7dbe4;border-radius:10px}
.sigge-chat-vendor-page ::-webkit-scrollbar-thumb:hover{background:#bec4d0}

/* Keep vendor dashboard floating live chat aligned with Sigge branding. */
.sigge-vendor-dashboard-floating .sigge-vendor-dashboard-launcher{
  background:linear-gradient(135deg,#7047eb,#8155f2);
  box-shadow:0 9px 24px rgba(112,71,235,.26);
}
.sigge-vendor-dashboard-floating .sigge-vendor-dashboard-launcher:hover{background:#5d35df}

/* Never alter Dokan sidebar/content widths here. */
@media(max-width:980px){
  .sigge-chat-vendor-page .sigge-chat-app{height:auto;max-height:none;min-height:620px}
  .sigge-chat-vendor-page .sigge-chat-sidebar{min-width:270px}
}
@media(max-width:780px){
  .sigge-chat-vendor-page .sigge-chat-page-heading h1{font-size:25px}
  .sigge-chat-vendor-page .sigge-chat-app{display:block;min-height:0}
  .sigge-chat-vendor-page .sigge-chat-sidebar,.sigge-chat-vendor-page .sigge-chat-main{width:100%;min-width:0}
  .sigge-chat-vendor-page .sigge-chat-sidebar{border-right:0;border-bottom:1px solid var(--sigge-border)}
  .sigge-chat-vendor-page .sigge-chat-conversations{max-height:260px}
  .sigge-chat-vendor-page .sigge-chat-thread{height:560px}
  .sigge-chat-vendor-page .sigge-bubble{max-width:86%}
}

.sigge-chat-vendor-page .sigge-chat-head-actions{position:relative}
.sigge-chat-vendor-page .sigge-chat-head-menu{display:none;position:absolute;right:92px;top:46px;z-index:30;width:175px;padding:6px;background:#fff;border:1px solid #e5e8f0;border-radius:10px;box-shadow:0 10px 28px rgba(24,32,51,.12)}
.sigge-chat-vendor-page .sigge-chat-head-menu button{width:100%;padding:9px 10px;border:0;background:#fff;text-align:left;border-radius:7px;color:#273246;font-size:12px}
.sigge-chat-vendor-page .sigge-chat-head-menu button:hover{background:#f4f0ff;color:#7047eb}
