/*
Plugin Name:  Plug Chat
Plugin URI: http://themeplugs.com/plugin/plugchat/
Author: Themeplugs
Author URI: http://themeplugs.com/
Version: 3.0.0
Text Domain: plugchat
Description: Add Meta (Facebook) Messenger chat widget to your WordPress website.
*/

.wp-menu-image {
  &.dashicons-before {
    img {
      width: 20px;
      height: auto;
      padding: 8px 0 5px 0 !important;
    }
  }
}

/* Status box */
.plugchat-status-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin: 20px 0;
  border-left: 4px solid #ccc;
  background: #f9f9f9;
  font-size: 14px;

  &.status-active {
    border-left-color: #00a32a;
    background: #f0faf0;

    .plugchat-status-icon {
      color: #00a32a;
    }
  }

  &.status-legacy {
    border-left-color: #dba617;
    background: #fff8e5;

    .plugchat-status-icon {
      color: #dba617;
    }
  }

  &.status-inactive {
    border-left-color: #999;
    background: #f6f6f6;

    .plugchat-status-icon {
      color: #999;
    }
  }
}

/* Card layout */
.plugchat-card {
  background: #fff;
  border: 1px solid #ccd0d4;
  padding: 20px 24px;
  margin: 16px 0;
  max-width: 720px;

  h2 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 8px;
    padding: 0;
  }

  .description {
    color: #646970;
    font-style: italic;
    margin-bottom: 12px;
  }
}

/* Steps list */
.plugchat-steps {
  margin: 12px 0 12px 20px;
  line-height: 1.8;

  li {
    margin-bottom: 4px;
  }

  a {
    color: #2271b1;
    text-decoration: underline;
  }
}

/* Embed textarea */
.plugchat-embed-textarea {
  width: 100%;
  max-width: 680px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  padding: 12px;
  border: 1px solid #8c8f94;
  background: #f6f7f7;
  resize: vertical;
  tab-size: 2;

  &:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
    background: #fff;
  }
}

/* Position select */
#plugchat_position {
  min-width: 200px;
  padding: 6px 8px;
}

/* Legacy section */
.plugchat-legacy-card {
  border-color: #dba617;
  background: #fffdf5;
}

.plugchat-toggle-legacy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 0;
  color: #1d2327;
  display: flex;
  align-items: center;
  gap: 4px;

  &:hover {
    color: #2271b1;
  }

  .dashicons {
    transition: transform 0.2s;
  }

  &.open .dashicons {
    transform: rotate(180deg);
  }
}

.plugchat-legacy-notice {
  background: #fff8e5;
  border-left: 3px solid #dba617;
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}

.plugchat-legacy-content {
  .form-table th {
    width: 180px;
  }

  .plugs-input {
    height: 40px;
    padding: 10px 15px;
  }

  .plugs-reply {
    width: 400px;
  }
}