/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* SCOPED VARIABLES for Admin Only to avoid frontend conflict */
.wpcm-admin {
  --wpcm-primary: #10b981; /* Emerald 500 */
  --wpcm-primary-dark: #059669;
  --wpcm-bg-app: #f3f4f6; /* Gray 100 */
  --wpcm-bg-white: #ffffff;
  --wpcm-border: #e5e7eb; /* Gray 200 */
  --wpcm-text-main: #4b5563; /* Gray 600 */
  --wpcm-text-muted: #6b7280; /* Gray 500 */
  --wpcm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --wpcm-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --wpcm-radius: 12px;
}

/* =========================================
   FRONTEND WIDGET STYLES (RESTORED)
   ========================================= */

/* Floating button */
#wpcm-chat-button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  border: 2px solid white;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  background: rgb(32 147 127);
  color: #fff;
  border-radius: 9999px;
  padding: 18px 20px;
  font-weight: 600;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.16),
    0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;

  /* Flexbox for centering */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Firefox Focus Inner Fix */
#wpcm-chat-button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Popup Container */
#wpcm-chat-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 99999;

  /* ANIMATION STATES (Default = Hidden) */
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hidden Button State */
#wpcm-chat-button.wpcm-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: all 0.3s;
}

/* The "Open" State */
#wpcm-chat-popup.wpcm-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 480px) {
  #wpcm-chat-popup {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  #wpcm-chat-button {
    bottom: 20px;
    right: 20px;
  }

  .wpcm-messages {
    flex: 1;
    height: auto;
  }

  /* Prevent iOS Zoom */
  .wpcm-input input[type="text"] {
    font-size: 16px !important;
  }
}

.wpcm-header {
  background: rgb(32 147 127);
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
}

.wpcm-header-title {
  font-size: 0.9em;
  font-weight: normal;
  color: #fff;
}

.wpcm-header-company {
  font-size: 1em;
  font-weight: 700;
}

.wpcm-messages {
  padding: 10px;
  overflow-y: auto;
  height: 260px;
  background: #fafafa;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.wpcm-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fff;
}

.wpcm-input input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  font-size: 14px;
}

.wpcm-input input[type="text"]:focus {
  border-color: rgb(32 147 127);
  box-shadow: 0 0 0 2px rgba(32, 147, 127, 0.12);
}

.wpcm-input button {
  background: rgb(32 147 127);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.wpcm-bubble {
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  width: fit-content;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.wpcm-bubble.user {
  background: #e2fbe8;
  margin-left: auto;
  border-bottom-right-radius: 2px;
  border: 1px solid #bbf7d0;
}

.wpcm-bubble.admin {
  background-color: #c2e2f4;
  margin-right: auto;
  border-bottom-left-radius: 2px;
  border: 1px solid #bae6fd;
}

/* Clickable Links in Bubbles */
.wpcm-bubble a {
  color: inherit;
  text-decoration: underline;
}
.wpcm-bubble a:hover {
  opacity: 0.8;
}

/* =========================================
   ADMIN INTERFACE STYLES (NEW - SCOPED)
   ========================================= */

/* Base Reset for WPCM elements */
.wpcm-admin *,
.wpcm-admin *::before,
.wpcm-admin *::after {
  box-sizing: border-box;
}

/* 1. Container where H1 is with lightgray background */
.wpcm-admin {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--wpcm-text-main);
  line-height: 1.5;
  padding: 0px;
  background-color: #f3f4f6; /* Light Gray Background */
  min-height: calc(100vh - 32px);
}

/* 2. Container that has the chat list and the chats with white background and shadow */
.wpcm-admin .wpcm-panel {
  display: flex;
  background: #ffffff; /* White Main Container */
  border-radius: var(--wpcm-radius);
  box-shadow: var(--wpcm-shadow);
  height: 60vh; /* Restored height */
  min-height: 600px;
  overflow: hidden;
  border: 1px solid #e5e7eb; /* Subtle outer border */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* 3. The chat list with a lightgray background */
.wpcm-admin .wpcm-list-panel {
  width: 320px;
  border-right: none; /* NO BORDER */
  display: flex;
  flex-direction: column;
  background-color: #f9fafb; /* Light Gray for Sidebar */
  padding: 16px; /* Add padding to contain the items nicely */
  margin: 20px;
  border-radius: var(--wpcm-radius);
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.wpcm-admin .wpcm-sidebar-header {
  padding: 0 0 16px 0; /* Adjust padding inside the padded container */
  border-bottom: none; /* NO BORDER */
  background-color: transparent;
}

/* Tabs */
.wpcm-admin .wpcm-sidebar-tabs {
  display: flex;
  background: #e5e7eb;
  padding: 4px;
  border-radius: 9999px;
  margin-bottom: 8px; /* Spacing */
}

.wpcm-admin .wpcm-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wpcm-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wpcm-admin .wpcm-tab:hover {
  color: var(--wpcm-text-main);
}

.wpcm-admin .wpcm-tab.active {
  background: #ffffff;
  color: var(--wpcm-primary-dark);
  box-shadow: var(--wpcm-shadow-sm);
  font-weight: 600;
}

.wpcm-admin .wpcm-badge {
  background: #d1d5db;
  color: #374151;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}

.wpcm-admin .wpcm-tab.active .wpcm-badge {
  background: #d1fae5;
  color: #065f46;
}

/* List Area */
.wpcm-admin .wpcm-list-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 0 0; /* Remove side padding as container has it */
}

/* 4. The individual list items (White cards) */
.wpcm-admin .wpcm-list-item {
  background: #ffffff; /* White Cards */
  border: 1px solid #e5e7eb;
  border-radius: 12px; /* Softer rounded corners */
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* WhatsApp-style reorder: Item bubbling to top */
.wpcm-admin .wpcm-list-item.wpcm-reorder-up {
  animation: wpcmBubbleUp 0.5s ease-out;
  z-index: 10;
}

/* Animation: bubble up with fade-in effect - MORE NOTICEABLE */
@keyframes wpcmBubbleUp {
  0% {
    opacity: 0.3;
    transform: scale(0.92) translateY(10px);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.96) translateY(5px);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
  }
}

/* Items being pushed down slide smoothly */
.wpcm-admin .wpcm-list-item.wpcm-pushed-down {
  animation: wpcmSlideDown 0.4s ease-out;
}

@keyframes wpcmSlideDown {
  0% {
    transform: translateY(-10px);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.wpcm-admin .wpcm-list-item:hover {
  border-color: var(--wpcm-primary);
  transform: translateY(-1px);
  box-shadow: var(--wpcm-shadow-sm);
}

.wpcm-admin .wpcm-list-item.active {
  background-color: #edf8f2; /* Active logic remains */
  border-color: var(--wpcm-primary);
}

.wpcm-admin .wpcm-item-info {
  display: flex;
  flex-direction: column;
}

.wpcm-admin .wpcm-item-info small strong {
  font-size: 14px;
  color: var(--wpcm-text-main);
  display: block;
  margin-bottom: 4px;
}

.wpcm-admin .wpcm-url {
  font-size: 11px;
  color: #6366f1;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  margin: 4px 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wpcm-admin .wpcm-item-info small:last-child {
  font-size: 11px;
  color: var(--wpcm-text-muted);
}

/* Status Dots (Generic Component) */
.wpcm-admin .wpcm-status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: transparent;
  border: 4px solid #ccc;
  box-sizing: border-box;
  flex-shrink: 0;
}

.wpcm-admin .wpcm-item-info {
  margin-left: 32px;
}

/* State 1: Red Dot / Green Border (Active Unread) */
.wpcm-admin .wpcm-status-dot.wpcm-state-blue-green {
  background-color: #f82020;
  border-color: #81d666;
}

/* State 2: Red Dot / Grey Border (Inactive Unread) */
.wpcm-admin .wpcm-status-dot.wpcm-state-blue-grey {
  background-color: #f82020;
  border-color: #e5e7eb;
}

/* State 3: Empty Dot / Green Border (Active Read) -> The "Active/Available" status */
.wpcm-admin .wpcm-status-dot.wpcm-state-empty-green {
  background-color: transparent;
  border-color: #81d666; /* Green Outline */
  border-width: 3px;
}

/* State 4: Empty Dot / Grey Border (Inactive Read) */
.wpcm-admin .wpcm-status-dot.wpcm-state-empty-grey {
  background-color: transparent;
  border-color: #e5e7eb;
  border-width: 3px;
}

/* Compatibility with list-item pseudo-element */
.wpcm-admin .wpcm-list-item::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: transparent;
  border: 4px solid #ccc;
  box-sizing: border-box;
  z-index: 1;
}

.wpcm-admin .wpcm-list-item.wpcm-state-blue-green::after {
  background-color: #f82020;
  border-color: #81d666;
}
.wpcm-admin .wpcm-list-item.wpcm-state-blue-grey::after {
  background-color: #f82020;
  border-color: #e2e5eb;
}
.wpcm-admin .wpcm-list-item.wpcm-state-empty-green::after {
  background-color: transparent;
  border-color: #81d666;
}
.wpcm-admin .wpcm-list-item.wpcm-state-empty-grey::after {
  background-color: transparent;
  border-color: #e2e5eb;
}

/* Empty State */
.wpcm-admin .wpcm-empty-msg {
  text-align: center;
  color: var(--wpcm-text-muted);
  font-size: 13px;
  padding: 40px 0;
  font-style: italic;
}

/* --- Right Side: Chat Area (Seamless White) --- */
.wpcm-admin .wpcm-room {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: none;
  border-radius: 0;
  margin: 20px;
  /* padding: 16px; Optional: Add general padding if "floating" feel is desired, but keeping standard layout first */
}

/* Header Container */
.wpcm-admin .wpcm-header {
  height: auto;
  /* min-height: 80px; Removed to let content dictate */
  border-bottom: none; /* NO BORDER */
  display: flex;
  flex-direction: column; /* Stack Top and Bottom */
  justify-content: center;
  padding: 12px 16px;
  gap: 8px; /* Gap between rows */
  background: #edf8f2;
  color: var(--wpcm-text-main);
  border-radius: var(--wpcm-radius);
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Row 1: Top */
.wpcm-admin .wpcm-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.wpcm-admin #wpcm-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1; /* Take remaining space */
  line-height: 1.4;
}

/* Row 2: Bottom */
.wpcm-admin .wpcm-header-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.wpcm-admin #wpcm-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* Push to right */
  flex-shrink: 0;
}

/* Metadata Stack */
.wpcm-admin #wpcm-header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

.wpcm-admin #wpcm-status-btn {
  background: #ffffff;
  border: 1px solid var(--wpcm-border);
  color: var(--wpcm-text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.wpcm-admin #wpcm-status-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.wpcm-admin #wpcm-status-btn.wpcm-status-closed {
  border: 1px solid #fca5a5; /* Red-00 */
  color: var(--wpcm-text-main);
  background: #ffffff;
}

.wpcm-admin #wpcm-status-btn.wpcm-status-closed:hover {
  background: #f9fafb;
  border-color: #ef4444; /* Red-500 */
}

/* Back Button (Mobile Only) */
.wpcm-admin #wpcm-back-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 25px;
  color: var(--wpcm-text-main);
  cursor: pointer;
  padding: 0;
  margin-right: 8px;
}

/* Chat Window */
.wpcm-admin .wpcm-messages {
  flex: 1;
  padding: 16px 32px; /* Match header padding */
  overflow-y: auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0px;
  height: auto;
  border-radius: var(--wpcm-radius);
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Bubbles */
.wpcm-admin .wpcm-bubble {
  max-width: 65%;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
}

.wpcm-admin .wpcm-bubble.admin {
  background: #e0f2fe;
  color: #0c4a6e;
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
  border-bottom-right-radius: 2px;
  border: 1px solid #bae6fd;
}

.wpcm-admin .wpcm-bubble.user {
  background: #caf6d7;
  color: #14532d;
  align-self: flex-start;
  margin-right: auto;
  margin-left: 0;
  border-bottom-left-radius: 2px;
  border: 1px solid #8ce0a9;
}

/* Input Text Container */
.wpcm-admin .wpcm-input {
  border-top: none; /* NO BORDER */
  display: flex;
  gap: 12px;
  background: #ffffff;
  align-items: center;
}

.wpcm-admin .wpcm-input input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--wpcm-border);
  border-radius: 12px;
  outline: none;
  font-size: 14px;
  transition: border 0.2s;
  background: #ffffff;
}

.wpcm-admin .wpcm-input input:focus {
  border-color: var(--wpcm-primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.wpcm-admin .wpcm-input button {
  background: var(--wpcm-primary);
  color: white;
  border: none;
  border-radius: 99px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.wpcm-admin .wpcm-input button:hover {
  background: var(--wpcm-primary-dark);
}

/* Responsive Mobile for Admin */
@media (max-width: 768px) {
  .wpcm-admin {
    padding: 0;
    display: flex; /* Changed from default block */
    flex-direction: column;
    min-height: calc(100vh - 46px);
    overflow: visible;
  }

  /* --- Default Mobile View (List) --- */

  /* Compact Headers */
  .wpcm-admin h1,
  .wpcm-admin p {
    flex-shrink: 0;
    padding: 0 16px;
    margin-bottom: 8px;
  }

  /* Visible Compact Legend */
  .wpcm-admin .wpcm-legend {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 10px;
    padding: 8px 12px;
    margin: 0;
    border-radius: 0;
    border-top: 1px solid #eee;
    background: #f9fafb;
    flex-shrink: 0;
  }

  /* Main Container */
  #wpcm-admin-root {
    flex: initial;
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 0;
    position: relative;
  }

  /* The Panel (Wrapper for List/Room) */
  .wpcm-admin .wpcm-panel {
    position: relative;
    border: none;
    height: auto;
    max-height: 80dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  /* List Side: Visible by default */
  .wpcm-admin .wpcm-list-panel {
    width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    display: flex;
    padding: 12px;
    height: auto;
    flex: none;
    overflow: hidden;
  }

  /* Room Side: Hidden by default */
  .wpcm-admin .wpcm-room {
    display: none; /* JS toggles this */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    z-index: 20;
    background: #f3f4f6; /* Gray background for "App" feel */
    flex-direction: column;
    padding: 10px; /* Slight padding container for floating feel */
    gap: 10px;
  }

  /* --- FULL SCREEN CHAT MODE (Triggered by JS Class) --- */

  /* Reset WP Wrap Margins/Padding for Full Screen */
  .wpcm-admin.wpcm-mobile-chat-view {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;

    /* FIXED: Use dvh for iOS Safari to handle address bar resizing correctly */
    height: 100vh !important; /* Force full height .Fallback for older browsers (iOS 14 and below) */
    height: 100dvh !important; /* Modern fix for iOS Safari address bar issues */

    position: fixed !important; /* Break out of flow */
    overflow: hidden !important;
    top: 0;
    left: 0;
    z-index: 99999; /* On top of WP Admin Bar if needed, or just below */
    background: #f3f4f6;
  }

  /* Hide Siblings when Chat is Open */
  .wpcm-admin.wpcm-mobile-chat-view > h1,
  .wpcm-admin.wpcm-mobile-chat-view > p,
  .wpcm-admin.wpcm-mobile-chat-view > .wpcm-legend,
  .wpcm-admin.wpcm-mobile-chat-view .wpcm-list-panel {
    display: none !important;
  }

  /* Ensure Root takes full height */
  .wpcm-admin.wpcm-mobile-chat-view #wpcm-admin-root {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .wpcm-admin.wpcm-mobile-chat-view .wpcm-panel {
    height: 100%;
    max-height: none;
    flex: 1;
  }

  /* Force Room Display & Styling */
  .wpcm-admin.wpcm-mobile-chat-view .wpcm-room {
    display: flex !important;
    flex-direction: column; /* Explicitly define column direction */
    position: relative; /* Not absolute anymore, it fills the space */
    flex: 1;
    margin: 0 !important; /* Force no margin */
    height: 100%;
    padding: 12px;
    box-sizing: border-box; /* Ensure padding doesn't expand width */
    background: #f3f4f6;
    overflow: hidden !important;
    background: #f3f4f6;
  }

  /* 1. Header with Round Borders */
  .wpcm-admin.wpcm-mobile-chat-view .wpcm-header {
    flex: 0 0 auto; /* Don't grow or shrink */
    border-radius: 16px;
    background: #ffffff;
    padding: 8px 16px;
    margin-bottom: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  /* 2. Message Window with Round Borders */
  .wpcm-admin.wpcm-mobile-chat-view .wpcm-messages {
    flex: 1 1 auto; /* Grow to fill space */
    border-radius: 16px;
    background: #ffffff;
    margin: 0;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-height: 0; /* Crucial for scrolling */

    /* Enable scrolling inside this element only */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 3. Input Area (Nothing else) */
  .wpcm-admin.wpcm-mobile-chat-view .wpcm-input {
    flex: 0 0 auto; /* Don't grow or shrink */
    border-radius: 16px;
    background: #ffffff;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
    margin-bottom: 24px;
  }

  .wpcm-admin.wpcm-mobile-chat-view .wpcm-input input {
    min-width: 0;
    font-size: 16px !important;
  }

  .wpcm-admin #wpcm-back-btn {
    display: block !important;
  }
}
