body {
  .happy-problem-form-wrap-container,
  .happy-problem-form-container,
  #happy_list_tickets,
  #happy-threads,
  #happy-primary,
  .happy-auth-container {
    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }
  }
}

.happy-tag {
  color: var(--happy-tag-color);
  background-color: var(--happy-tag-bg);
}

.happy-user-country-flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

/* Style settings → CSS variables from Enqueue::frontend_script */
#happy_list_tickets .happy_wrap_content_list_ticket .happy_table {
  .happy_thead,
  .happy_thead .happy_th {
    color: var(--happy-table-header-color) !important;
    background-color: var(--happy-table-header-bg) !important;
  }

  .happy_tfoot,
  .happy_tfoot .happy_th {
    color: var(--happy-table-footer-color) !important;
    background-color: var(--happy-table-footer-bg) !important;
  }
}

@mixin happy-pagination-theme($prefix) {
  .happy-pagination-links .page-numbers,
  &.happy-pagination-compact .happy-pagination-links .happy-page-nav {
    color: var(--happy-pag-#{$prefix}-color) !important;
    background-color: var(--happy-pag-#{$prefix}-bg) !important;
    border-color: var(--happy-pag-#{$prefix}-color) !important;
  }

  .happy-pagination-links .page-numbers:not(.current):not(.disabled):hover,
  &.happy-pagination-compact .happy-pagination-links .happy-page-nav:not(.disabled):hover {
    color: var(--happy-pag-#{$prefix}-hover-color) !important;
    background-color: var(--happy-pag-#{$prefix}-hover-bg) !important;
    border-color: var(--happy-pag-#{$prefix}-hover-color) !important;
  }

  .happy-pagination-links .page-numbers.current {
    color: var(--happy-pag-#{$prefix}-current-color) !important;
  }
}

.happy-pagination.happy-pagination-tickets {
  @include happy-pagination-theme(tickets);
}

.happy-pagination.happy-pagination-replies {
  @include happy-pagination-theme(replies);
}

#happy-primary {
  width: 100%;
  padding: 28px 0 80px 0;
}

.happy-hidden {
  display: none !important;
}

.happy-button {
  border-radius: 5px !important;
  padding: 5px 10px !important;
  cursor: pointer;
  line-height: normal;

  &.small {
    font-size: 12px !important;
    min-height: 30px !important;
  }

  &.normal {
    font-size: 14px !important;
  }

  &.big {
    font-size: 16px !important;
  }
}

.happy_loading_animation {
  position: relative;
  transition: all 0s linear, opacity .1s ease;
  width: 26px;
  height: 26px;

  &.happy_loading {
    color: transparent !important;
    display: flex;
    cursor: default;

    &:before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;

      width: 23px;
      height: 23px;
      border-radius: 100%;
      border: 3px solid rgba(0, 0, 0, .15);
    }

    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 23px;
      height: 23px;
      -webkit-animation: rotation_loading .6s linear;
      animation: rotation_loading .6s linear;
      -webkit-animation-iteration-count: infinite;
      animation-iteration-count: infinite;
      border-radius: 100%;
      border-color: #fff transparent transparent;
      border-style: solid;
      border-width: 3px;
      -webkit-box-shadow: 0 0 0 1px transparent;
      box-shadow: 0 0 0 1px transparent;
    }
  }
}

@keyframes rotation_loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#happy_list_tickets {
  display: flex;
  -webkit-box-align: stretch;
  align-items: stretch;
  align-content: stretch;
  width: 100%;
  min-height: 100%;

  .happy_wrap_content_list_ticket > .happy-list-tickets-widgets {
    width: 100%;
    margin: 0 0 1rem;
    box-sizing: border-box;

    .happy-list-tickets-widget {
      margin: 0 0 0.75rem;

      &:last-child {
        margin-bottom: 0;
      }
    }

    .happy-list-tickets-widget-title {
      margin: 0 0 0.5rem;
      font-size: 1.05em;
      line-height: 1.3;
    }
  }

  .happy_ticket_loading {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgb(51 50 50 / 60%);
    z-index: 999;

    .happy_loading_icon {
      display: inline-block;
      width: 48px;
      height: 48px;
      border: 5px solid #FFF;
      border-bottom-color: transparent;
      border-radius: 50%;
      box-sizing: border-box;
      animation: rotation_loading 1s linear infinite;
    }

  }

  &.happy_loading {
    position: relative;
    .happy_ticket_loading {
      display: flex;
    }
  }

  input[type=email],
  input[type=date],
  input[type=search],
  input[type=number],
  input[type=text],
  input[type=tel],
  input[type=url],
  input[type=password],
  textarea,
  select {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 2.507em;
    font-size: .97em;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    vertical-align: middle;
    background-color: #fff;
    color: #333;
    -webkit-box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%);
    -webkit-transition: color .3s, border .3s, background .3s, opacity .3s;
    -o-transition: color .3s, border .3s, background .3s, opacity .3s;
    transition: color .3s, border .3s, background .3s, opacity .3s;
    outline: none !important;
  }

  ul, li {
    margin: 0;
    padding: 0;
    list-style-type: none;
  }

  .happy_header_list_ticket {
    background-color: #F5F5F5;
    color: rgb(66, 77, 87);
    min-height: 100%;
    border-left: none;
    min-width: 280px;
    -webkit-box-flex: 1;
    flex: 1 1 9.09091%;

    + .happy-filter-drawer-overlay {
      // Desktop: overlay only used on mobile drawer.
      @media (min-width: 783px) {
        display: none !important;
      }
    }

    .happy-title-filter-tickets {
      display: flex;
      -webkit-box-pack: justify;
      justify-content: space-between;
      width: 100%;
      height: 52px;
      position: relative;
      text-align: center;
      box-sizing: border-box;
      font-size: 20px;
      font-weight: 600;
      color: rgb(66, 77, 87);
      letter-spacing: 0.3px;
      -webkit-box-align: center;
      align-items: center;
      padding: 0 16px;

      .happy-title {
        display: flex;
        align-items: center;

        .happy-icon {
          font-size: 22px;
        }
      }

      .happy-action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;

        .happy-btn-close-filter {
          display: none;
          align-items: center;
          justify-content: center;
          width: 32px;
          height: 32px;
          padding: 0;
          margin: 0;
          border: none;
          background: transparent;
          color: inherit;
          cursor: pointer;
          border-radius: 4px;

          .happy-icon {
            font-size: 18px;
            line-height: 1;
          }

          &:hover {
            background: rgba(0, 0, 0, 0.06);
          }
        }

        a {
          font-size: 22px;
          text-decoration: none;

          &.happy-home-url {

          }

          &.happy-menu {


          }
        }

        .happy-wrap-menu {
          margin-left: 3px;
          font-size: 30px;
          margin-top: 6px;
          position: relative;

          .happy-dropdown-submenu {
            position: absolute;
            opacity: 0;
            visibility: hidden;
            top: calc(100% + 10px);
            background-color: #fff;
            border-radius: 6px;
            box-shadow: 0px 0px 6px #ccc;
            padding: 10px;
            width: 180px;
            font-size: 16px;
            font-weight: 400;
            left: 50%;
            transform: translateX(-50%);

            &:before {
              content: "";
              position: absolute;
              width: 0;
              height: 0;
              top: -8px;
              left: 50%;
              transform: translateX(-50%);
              border-left: 8px solid transparent;
              border-right: 8px solid transparent;
              border-bottom: 8px solid #fff;
            }

            li {
              a {
                font-size: 14px;
                font-weight: 400;
              }
            }
          }

          &:hover {
            .happy-dropdown-submenu {
              opacity: 1;
              visibility: visible;
            }
          }
        }
      }
    }

    .happy-row {
      display: flex;
      width: 100%;
      justify-content: space-between;

      .happy-wrap-action {
        display: flex;
        flex: 1 0 100%;
        margin: 0;
        align-items: flex-start;
        flex-wrap: wrap;
        width: 100%;

        .happy-field-group {
          padding: 0 10px;
          flex: 1 0 100%;
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          align-items: flex-start;
          margin-bottom: 20px;

          .input-group-text {
            text-transform: uppercase;
            color: rgba(66, 77, 87, 0.5);
            font-size: 16px;
          }

          .happy-control-field {
            display: flex;
            width: 100%;

          }
          .happy-show-all-filters{
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-top: 4px;
            color: #4384f5;
            font-size: 14px;
            line-height: 20px;
            text-decoration: none;
            cursor: pointer;
            outline: none;
            padding-left: 10px;
            &:hover {
              color: #2f6de0;
              text-decoration: underline;
            }
            .happy-icon{
              font-size: 12px;
              line-height: 1;
            }
          }

          li {
            padding: 10px 0;

            a.happy-link {
              cursor: pointer;
              display: flex;
              gap: 5px;
              -webkit-box-align: center;
              align-items: center;
              font-size: 14px;
              line-height: 20px;
              color: rgb(66, 77, 87);
              outline: none;
              text-decoration: none;
              transition: color 0.2s ease-in-out 0s;

              input[type=checkbox] {
                width: 16px;
                height: 16px;
                line-height: 20px;
              }

              .happy-category-ticket-count,
              .happy-problem-ticket-count,
              .happy-status-ticket-count {
                margin-left: auto;
                flex-shrink: 0;
                color: rgb(132, 146, 166);
                font-size: 14px;
              }

              &.happy_active {
                font-weight: bold;
                cursor: default;
              }
            }
          }

          &.happy-search-tickets {
            margin-top: 15px;

            .happy-control-field {
              display: flex;
              width: 100%;
              padding: 0;
              font-size: 14px;
              color: rgb(66, 77, 87);
              text-align: left;
              border-radius: 4px;
              border: 1px solid rgb(221, 226, 230);
              background-color: rgb(255, 255, 255);
              box-sizing: border-box;
              transition: border 0.2s ease-in-out 0s;

              .happy-btn-search {
                background: transparent;
                padding: 0 10px;
              }

              .happy-field-search {
                min-height: 100%;
                border: none;
                box-shadow: none;
                line-height: 1;
                background-color: transparent;
              }
            }

          }

          .happy-btn-clear {
            padding: 6px 16px;
            min-width: 32px;
            height: 32px;
            display: inline-flex;
            position: relative;
            align-items: center;
            justify-content: center;
            transition-duration: .2s;
            transition-property: opacity, border, color, background-color, box-shadow;
            transition-timing-function: cubic-bezier(.64, 0, .35, 1);
            border: 1px solid #4384f5;
            color: #4384f5;
            background-color: #ffffff;
            border-radius: 6px;
            cursor: pointer;
            text-align: center;
            text-transform: none;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            user-select: none;

            &:hover {
              border-color: #ffffff;
              color: #ffffff;
              background-color: #4384f5;
            }
          }

        }

        .happy-wrap-filters-group {
          margin: 0;
          padding: 0px 24px 10px 10px;
          max-height: 100%;
          overflow-y: auto;
          width: 100%;
          display: flex;
          flex-wrap: wrap;

        }
      }
    }
  }

  .happy_wrap_content_list_ticket {
    min-height: 100%;
    min-width: 0;
    -webkit-box-flex: 10;
    flex: 10 1 90%;
    padding: 2px 25px 5px 40px;
    background-color: white;

    .happy_list_tickets_paginate{
      margin: 10px 0 10px;
      font-size: 14px;
    }

    .happy_no_data {
      text-align: center;
      font-size: 1.125em;
      margin: 15px 0;
    }

    .happy-title-body-list-ticket {
      display: flex;
      -webkit-box-pack: justify;
      justify-content: space-between;
      width: 100%;
      height: 52px;
      position: relative;
      text-align: center;
      box-sizing: border-box;
      background-color: rgb(255, 255, 255);
      font-size: 26px;
      font-weight: 400;
      color: rgb(66, 77, 87);
      letter-spacing: 0.3px;
      -webkit-box-align: end;
      align-items: flex-end;
      padding: 0;
      margin-bottom: 20px;
      gap: 10px;

      .happy-btn-open-filter {
        display: none;
      }

      .happy-title {
        line-height: 1;
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
      }

      .happy-action-btn {
        flex-shrink: 0;
      }

      .happy-btn {
        color: #ffffff;
        background-color: #4384f5;
        border-radius: 6px;
        cursor: pointer;
        text-align: center;
        text-transform: none;
        text-decoration: none;
        font-size: 15px;
        padding: 6px 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;

        .happy-icon {
          margin-right: 3px;
          font-size: 15px;
          line-height: 1;
        }
      }
    }

    /*&.happy_list_ticket_customer {
      justify-content: center;
      align-items: center;

      .happy-wrap-body-list-ticket {
        max-width: 1200px;
        height: auto;
        margin: 50px auto 0;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
      }
    }*/

    .happy_table {
      display: flex;
      flex-direction: column;

      .happy_thead {
        border-radius: 6px 6px 0 0;
      }

      .happy_tfoot {
        border-radius: 0 0 6px 6px;
      }

        .happy_thead,
      .happy_tfoot {
        display: flex;
        align-items: center;
        background-color: #f0f0f0;

        &.happy-bulk-active {
          .happy_th:not(.happy_th_check) {
            display: none !important;
          }

          .happy_bulk_action {
            display: flex !important;
          }
        }

        .happy_bulk_action {
          display: none;
          flex: 1 1 auto;
          min-width: 0;

          .happy-wrap-bulk-action {
            display: flex;
            margin: 0;
            padding: 8px 0;
            align-items: center;
            justify-content: flex-start;

            .happy-field-group {
              display: flex;
              align-items: center;
              padding: 0 10px;
              flex-direction: row;
              flex-wrap: nowrap;
              width: 100%;
              flex: 1 1 auto;
              max-width: 100%;
              min-width: 0;

              .input-group-text {
                text-transform: uppercase;
                font-size: 15px;
                white-space: nowrap;
                flex-shrink: 0;
              }

              .happy-control-field {
                display: flex;
                padding: 2px 10px;
                min-width: 0;
                flex: 1 1 auto;

                .happy-wrap-bulk-field {
                  border-radius: 6px;
                  background-color: white;
                  display: flex;
                  align-items: center;
                  flex-wrap: nowrap;
                  gap: 0;
                  min-width: 0;
                  width: 100%;
                  flex: 1 1 auto;

                  .ticket-bulk-action-dropdown {
                    height: 30px;
                    font-size: 15px;
                    min-height: 30px;
                    border-radius: 4px 0 0 4px;
                    border: 1px solid #4384F5;
                    flex: 0 0 auto;
                    max-width: 220px;
                  }

                  .happy-bulk-categories-wrap,
                  .happy-bulk-assign-wrap {
                    display: inline-flex;
                    align-items: center;
                    flex: 1 1 auto;
                    min-width: 280px;
                    max-width: none;
                    height: 30px;

                    &[hidden] {
                      display: none !important;
                    }

                    .ticket-bulk-categories-dropdown,
                    .ticket-bulk-assign-dropdown,
                    .ViSelect2-container {
                      width: 100% !important;
                      min-width: 0;
                      max-width: none;
                    }

                    .ViSelect2-container {
                      height: 30px;

                      .ViSelect2-selection--multiple {
                        min-height: 30px !important;
                        height: 30px !important;
                        max-height: 30px;
                        overflow: hidden;
                        border: 1px solid #4384F5;
                        border-left: 0;
                        border-radius: 0;
                        display: flex;
                        align-items: center;

                        .ViSelect2-selection__rendered {
                          display: flex;
                          flex-wrap: nowrap;
                          align-items: center;
                          overflow: hidden;
                          padding: 0 8px;
                          white-space: nowrap;
                          width: 100%;
                        }

                        .ViSelect2-selection__choice {
                          margin: 2px 4px 2px 0;
                          max-width: 220px;
                          overflow: hidden;
                          text-overflow: ellipsis;
                          white-space: nowrap;
                        }

                        .ViSelect2-search--inline {
                          float: none;
                          flex: 1 1 auto;
                          min-width: 80px;

                          .ViSelect2-search__field {
                            margin-top: 0;
                            height: 24px;
                            width: 100% !important;
                          }
                        }
                      }
                    }
                  }

                  .happy-btn-bulk-action {
                    outline: none !important;
                    border: none;
                    cursor: pointer;
                    min-height: 30px;
                    font-size: 15px;
                    padding: 5px 10px;
                    background-color: #4384F5;
                    color: white;
                    border-radius: 0 4px 4px 0;
                    flex-shrink: 0;
                    white-space: nowrap;
                  }
                }

              }
            }
          }
        }

        .happy_th {
          padding: 15px 10px;
          font-weight: 400;
          text-transform: uppercase;
          flex: 0 0 auto;
          font-size: 13px;
          display: flex;

          &.happy_th_check {
            flex-basis: 20px;

            input {
              margin: 0;
              width: 16px;
              height: 16px;
            }
          }

          &.happy_th_supporter {
            flex-basis: 160px;
            max-width: 160px;
          }

          &.happy_th_author {
            flex-basis: 160px;
            max-width: 160px;
          }

          &.happy_th_status {

            flex: 0 0 70px;
            justify-content: flex-start;
          }

          &.happy_th_id {
            flex: 0 0 70px;
            justify-content: flex-start;
          }

          &.happy_th_subject {
            flex: 1 1 auto;
            padding-left: 10px;
          }

          &.happy_th_problem {
            flex: 0 0 250px;
          }

          &.happy_th_date_modified {
            flex-basis: 240px;
          }
        }
      }

      .happy_tbody {
        .happy_tr {
          display: flex;
          width: 100%;
          background-color: #FFF9EE;
          &.happy-status-pending {
            background-color: #fff;
          }
          &.happy-status-resolved{
            background-color: #edfaff;
          }
          .happy_td {
            padding: 8px 10px;
            color: #010701;
            font-size: 14px;
            border: none;
            border-bottom: 1px solid rgb(221, 226, 230);
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            line-height: 20px;

            &.happy_td_check {
              flex-basis: 30px;

              input {
                margin: 0;
                width: 16px;
                height: 16px;
              }
            }

            &.happy_td_status {
              flex-basis: 70px;
              justify-content: center;
            }

            &.happy_td_id {
              flex-basis: 70px;
              color: #6b7280;
              font-variant-numeric: tabular-nums;
            }

            &.happy_td_supporter {
              flex-basis: 160px;
              max-width: 160px;
              word-wrap: break-word;
              overflow: hidden;
            }

            &.happy_td_author {
              flex-basis: 160px;
              max-width: 160px;
              word-wrap: break-word;

              a {
                width: 100%;
              }
            }

            &.happy_td_subject {
              flex: 1 1 auto;

              a {
                text-decoration: none;
              }
            }

            &.happy_td_categories {
              flex: 0 0 25%;
            }

            &.happy_td_problem {
              flex: 0 0 250px;
            }

            &.happy_td_date_modified {
              flex-basis: 240px;

              .happy_last_reply_meta {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                max-width: 100%;
                min-width: 0;
              }

              .happy_last_reply_user {
                flex: 0 1 auto;
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                font-weight: 500;
                color: #444;
              }

              .happy_date_modified {
                flex: 0 0 auto;
                white-space: nowrap;
                color: #666;
              }
            }

            .happy-label-priority {
              align-items: center;
              border: none;
              display: inline-flex;
              justify-content: center;
              outline: none;
              position: relative;
              z-index: 0;
              height: 20px;
              margin: 0;
              padding: 0;
              width: 20px;
              background-image: url("../images/star.png");
              opacity: 0.35;
              cursor: pointer;

              &.active {
                background-image: url("../images/star_active.png");
                opacity: 0.7;
              }
            }

            .happy_icon_status {
              margin-right: 5px;
              display: flex;

              .happy-tag {
                border-radius: 50%;
                font-size: 12px;
                z-index: 9;
                position: relative;
                display: flex;
                width: 20px;
                height: 20px;
                align-items: center;
                justify-content: center;

                .happy-icon {
                  padding: 0;
                  margin: 0;
                }
              }
            }

            .happy_status {
              margin-right: 5px;
              display: flex;

              .happy-tag {
                border-radius: 5px;
                font-size: 12px;
                z-index: 9;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 2px 5px;
              }
            }

            .happy_item_subject_wrap {
              .happy_subject_title {
                font-size: 1.1em;
                margin-bottom: 5px;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                gap: 4px;

                .happy_ticket_categories {
                  display: inline-flex;
                  flex-wrap: wrap;
                  gap: 4px;

                  .happy_ticket_category {
                    display: inline-flex;
                    align-items: center;
                    font-size: 0.7em;
                    line-height: 1;
                    padding: 3px 6px;
                    border-radius: 3px;
                    color: #2271b1;
                    background-color: #e5f1fb;
                    border: 1px solid #c3ddf5;
                    white-space: nowrap;
                  }
                }
              }

              .happy_subject_info {
                display: flex;
                align-items: center;
                color: #666;
                font-size: 0.85em;

                .happy_date_modified {
                  margin-right: 5px;
                }

                .happy_user_modified {
                  display: flex;
                  align-items: center;

                  .happy-author-avatar {
                    display: flex;
                    margin-right: 2px;
                  }
                }
              }
            }
          }

          &.no_replied {
            background-color: #fff;

            .happy_td {
              font-weight: 300;

            }
          }

          &.happy-ticket-overdue {
            box-shadow: inset 3px 0 0 #e67e22;
          }

          &.happy-ticket-unanswered-overdue {
            background-color: #fff8f0;
          }

          &.happy-ticket-awaiting-customer-overdue {
            background-color: #f7fafc;
          }
        }
      }
    }
  }

}


#happy_list_tickets_paginate {
  margin-top: -1px;
  display: flex;
  width: 100%;

  .paginate_button {
    cursor: pointer;
    display: inline-block;
    min-height: 1em;
    outline: 0;
    border: none;
    vertical-align: baseline;
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    margin: 0 0.25em 0 0;
    padding: 10px 15px;
    text-transform: none;
    text-shadow: none;
    font-weight: 700;
    line-height: 1em;
    font-style: normal;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgb(34 36 38 / 15%) inset;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: opacity .1s ease, background-color .1s ease, color .1s ease, box-shadow .1s ease, background .1s ease;
    -webkit-tap-highlight-color: transparent;

  }
}

.happy-row {
  .happy-wrap-action {
    display: flex;
    margin: 0 -10px;
    align-items: end;
    justify-content: flex-end;

    .happy-field-group {
      padding: 0 10px;
      flex-basis: 250px;
      display: flex;
      flex-direction: column;

      .input-group-prepend {
        .input-group-text {

        }
      }

      .happy-control-field {
        display: flex;
      }

      .form-control {

      }
    }

    .happy-btn,
    .happy-button {
      display: inline-flex;
      padding: 0 15px;
      min-height: 38px;
      border-radius: 4px;
      line-height: 1;
      align-items: center;
      outline: none !important;
      border: none;
    }

    select,
    .ViSelect2-container .ViSelect2-selection--single {
      min-height: 38px;
      line-height: 1;
      border: 1px solid #dde2e6;
      border-radius: 4px;
      outline: none !important;
    }
  }
}

.happy_submit_form_error {
  padding: 10px;
  background-color: #ffff008c;
  color: red;
  border: solid 1px red;
  border-radius: 6px;
  font-size: 1.16em;
  text-align: center;
}

.happy_submit_completed {
  padding: 28px 20px;
  color: #1f2937;
  border-radius: 8px;
  font-size: 1em;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);


  .happy_thank_you_icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    background: #ecfdf5;
    border-radius: 50%;
  }

  .happy_thank_you_title {
    margin: 0 0 10px;
    font-size: 1.5em;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
  }

  .happy_thank_you_message {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 24px;

    p {
      margin: 0 0 0.75em;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .happy_navigator_thank_you_page {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .happy-thank-you-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: opacity .15s ease, background-color .15s ease, color .15s ease;

    &:hover {
      opacity: .92;
      text-decoration: none;
    }
  }

  .happy-thank-you-btn-primary {
    background-color: #4384F5;
    border: 1px solid #4384F5;
    color: #fff;
  }

  .happy-thank-you-btn-secondary {
    background-color: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
  }
}


.happy-wrap-reply-form {
  background: #fbfbfb;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 2px;

  .happy-button {
    margin: 1em 0 0 0;
  }

  .happy-the-content-wrapper {
    position: relative;

    .autocomplete-list {
      position: absolute;
      background-color: #ffffff;
      width: 100%;
      z-index: 999999;
      box-shadow: 0 0 5px;
      padding: 10px;
      list-style-type: none;
      margin: 0;

      & > li {
        margin-left: 0px;
      }
    }
  }
}

.happy-selected-attachments-container {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0 0 0;

  .happy-selected-image {
    max-width: 128px;
    margin: 0 10px 0 0;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;

    img {
      width: 100%;
    }
  }
}

.happy-share-modal {
  .happy-wrap-modal-content {
    max-width: 520px;
    padding: 24px;
  }

  &.happy_loading {
    .happy-wrap-modal-content {
      &::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.55);
        border-radius: 6px;
        z-index: 2;
        pointer-events: none;
      }

      &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 36px;
        height: 36px;
        margin: -18px 0 0 -18px;
        border-radius: 50%;
        border: 3px solid rgba(67, 132, 245, 0.25);
        border-top-color: #4384F5;
        animation: rotation_loading 0.6s linear infinite;
        z-index: 3;
        pointer-events: none;
      }
    }

    .happy-share-status-options {
      position: relative;
      z-index: 4;
    }
  }

  .happy-share-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;

    h3 {
      margin: 0;
      font-size: 20px;
    }

    .happy-share-modal-desc {
      margin: 0;
      color: #4b5563;
      font-size: 14px;
    }
  }

  .happy-share-status-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .happy-share-status-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #dbe1e8;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;

    &.is-active {
      border-color: #4384F5;
      background-color: #f3f8ff;
    }

    input {
      margin-top: 3px;
    }

    span {
      display: flex;
      flex-direction: column;
      gap: 2px;

      strong {
        font-size: 14px;
      }

      small {
        color: #6b7280;
        font-size: 12px;
        line-height: 1.4;
      }
    }
  }

  .happy-share-link-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;

    &[hidden] {
      display: none !important;
    }

    label {
      font-size: 13px;
      font-weight: 600;
    }
  }

  .happy-share-link-row {
    display: flex;
    gap: 8px;
    align-items: center;

    .happy-share-url-input {
      flex: 1 1 auto;
      min-width: 0;
      height: 36px;
      border: 1px solid #dbe1e8;
      border-radius: 4px;
      padding: 0 10px;
      font-size: 13px;
    }

    .happy-copy-share-url {
      flex-shrink: 0;
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      background-color: #f3f8ff;
      border: 1px solid #b7d0fb;
      color: #4384F5;
      border-radius: 4px !important;
      padding: 0 14px !important;
      height: 36px;
      min-height: 36px;
      line-height: 1 !important;
      font-weight: 600;
      box-sizing: border-box;

      &:hover {
        background-color: #e8f1ff;
        border-color: #4384F5;
        color: #2f6de0;
      }
    }
  }

  .happy-share-modal-error {
    color: #b42318;
    font-size: 13px;
  }

  @media (max-width: 640px) {
    .happy-wrap-modal-content {
      max-width: calc(100vw - 32px);
      width: calc(100vw - 32px);
      margin: 0 16px;
      padding: 18px 16px;
    }

    .happy-share-modal-body {
      gap: 12px;

      h3 {
        font-size: 18px;
      }

      .happy-share-modal-desc {
        font-size: 13px;
      }
    }

    .happy-share-status-option {
      padding: 10px;
    }

    .happy-share-link-row {
      flex-direction: column;
      align-items: stretch;

      .happy-share-url-input {
        width: 100%;
      }

      .happy-copy-share-url {
        width: 100%;
      }
    }
  }
}

.happy-modal-overlay {
  position: fixed;
  opacity: 1;
  z-index: 999999999;
  overflow: visible;
  background-color: rgb(0 0 0 / 45%);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
  padding: 16px;
  box-sizing: border-box;

  &.happy-active {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .happy-wrap-modal-content {
    max-width: 550px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 10px;
    position: relative;

    .happy-close-modal {
      position: absolute;
      top: -18px;
      right: -18px;
      width: 36px;
      height: 36px;
      cursor: pointer;
      z-index: 8040;
      background-image: url("../images/icon_sprite.png");
    }

    .happy-wrap-modal-form {
      display: none;

      &.happy-active {
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    .happy-wrap-modal-loading {
      display: none;
      text-align: center;
      font-weight: 700;
      font-size: 18px;

      &.happy-active {
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

  }
}

.happy-helpdesk-working-hour {
  --happy-wh-accent: #38bdf8;
  --happy-wh-text: #334155;
  --happy-wh-muted: #64748b;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  background: transparent;
  color: var(--happy-wh-text);
  font-size: 15px;
  line-height: 1.5;

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  &__inner {
    position: relative;
    padding: 0.85rem 0 0.85rem 1rem;
    border-left: 3px solid var(--happy-wh-accent);
  }

  &__status {
    margin: 0 0 0.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
    color: var(--happy-wh-text);
  }

  &__badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border: 1px solid var(--happy-wh-accent);
    border-radius: 3px;
    background: transparent;
    color: var(--happy-wh-accent);
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    line-height: 1.35;
  }

  &.is-offline {
    --happy-wh-accent: #94a3b8;

    .happy-helpdesk-working-hour__badge {
      border-color: #94a3b8;
      color: #64748b;
      background: transparent;
    }

    .happy-helpdesk-working-hour__inner {
      border-left-color: #94a3b8;
    }
  }

  &__hours {
    margin: 0 0 0.65rem;
    color: var(--happy-wh-muted);
  }

  &__divider {
    margin: 0 0 0.65rem;
    border: 0;
    border-top: 1px solid #e2e8f0;
  }

  &__clocks {
    margin: 0;
    color: var(--happy-wh-text);

    strong {
      font-weight: 700;
    }
  }

  &__clocks-sep {
    margin: 0 0.35rem;
    color: var(--happy-wh-muted);
  }
}

// Legacy class hooks (kept empty-safe if old markup cached).
.happy-helpdesk-working-hour-offline,
.happy-helpdesk-working-hour-online {
  display: none;
}

#happy-helpdesk-author-page {
  max-width: 1170px;
  margin: 50px auto;
  width: 100%;

  .happy-helpdesk-author-page-menu {
    width: 150px;

    .happy-author-profile {
      text-align: left;
      .happy-author-avatar {
        img {
          border: none;
          height: 150px;
          padding: 0;
          margin: 0 0 20px;
          width: 150px;
        }

        &.happy-circle {
          img {
            border-radius: 50%;
          }
        }
      }

      .happy-author-name {
        font-size: 20px;
        margin: 10px 0;
        width: 100%;
        word-break: break-word;
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }
    }


    li {
      list-style: none;
    }
  }

  .happy-helpdesk-author-page-content {
    flex: 0 0 calc(100% - 180px);

    .happy-entry-title {
      margin-bottom: 10px;
    }

    .happy-author-section {
      p {
        margin-bottom: 10px;
      }
    }

    #happy_list_tickets.happy_list_tickets_author {
      width: 100%;
      margin-top: 1.5rem;

      .happy_wrap_content_list_ticket {
        flex: 1 1 100%;
        padding-left: 16px;
        padding-right: 16px;
        min-width: 0;
      }

      .happy-title-body-list-ticket {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        height: 52px;
        margin-bottom: 20px;

        .happy-title {
          margin-left: 0;
          flex: 1 1 auto;
          min-width: 0;
          text-align: left;
          white-space: nowrap;
        }

        .happy-action-btn {
          flex-shrink: 0;
        }
      }

      .happy-wrap-body-list-ticket {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      .happy_table {
        min-width: 900px;

        .happy_thead,
        .happy_tfoot,
        .happy_tbody .happy_tr {
          display: flex;
          flex-direction: row;
          flex-wrap: nowrap;
          align-items: stretch;
          width: 100%;
        }

        .happy_tbody .happy_tr {
          .happy_td {
            display: flex;
            align-items: center;
          }

          &.happy-status-pending {
            background-color: #fff;
          }
        }
      }
    }

    .happy_wrap_edit_canned {
      h2 {
        margin-bottom: 10px;
      }

      .happy-canned-shortcodes-help {
        margin: 0 0 16px;
        padding: 12px 14px;
        border: 1px solid #dde2e6;
        background-color: #f8fafc;
        font-size: 14px;
        line-height: 1.5;
        color: #374151;
        text-align: left;

        .happy-canned-shortcodes-help-intro,
        .happy-canned-shortcodes-help-example {
          margin: 0 0 8px;
        }

        .happy-canned-shortcodes-help-example {
          margin-bottom: 0;
        }

        .list_prefix_canned {
          list-style: none;
          margin: 0 0 8px;
          padding: 0;

          li {
            margin: 0 0 6px;
            padding: 0;
          }

          code {
            font-size: 13px;
            padding: 1px 4px;
            background: #fff;
            border: 1px solid #e5e7eb;
          }
        }
      }

      .happy-edit-canned-items {
        list-style-type: none;
        margin: 0;
        padding: 0;

        .happy-edit-canned-item-title {
          padding: 10px 15px;
          text-decoration: none;
          color: #555;
          font-weight: 600;
          border-bottom: 1px solid #ddd;
          -webkit-transition: all 0.2s linear;
          -moz-transition: all 0.2s linear;
          transition: all 0.2s linear;
          display: flex;
          justify-content: space-between;
          cursor: pointer;
          background-color: #fff;

          &.happy-active {
            background-color: #00be5f;
            color: #fff;
          }

          .happy-accordion-icon {
            font-size: 20px;
          }
        }

        .happy-edit-canned-item-content {
          display: none;
          padding: 10px 15px;
          background-color: #fff;
          text-align: center;
          box-shadow: 0 0 5px #ddd;

          .happy-save-canned {
            color: #ffffff;
            border: 1px solid #4384f5;
            background-color: #4384f5;
            margin: 25px 0 0 0;
            font-size: 15px !important;
            padding: 10px 16px !important;
            line-height: 1;
            text-transform: none;
            height: auto;
            min-height: auto;

            text-align: center;
            justify-content: center;
            border-radius: 4px;
            cursor: pointer;

            &.happy-disabled {
              opacity: 0.5;
              cursor: no-drop;
              font-size: 0 !important;

              &:before {
                content: 'Loading...';
                font-size: 15px !important;
              }
            }
          }

          .happy-save-canned-error {
            font-size: 20px;
            color: red;
            text-align: left;
          }
        }
      }

      .happy-canned-pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 16px;
        align-items: center;

        .page-numbers {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          min-width: 32px;
          height: 32px;
          padding: 0 8px;
          text-decoration: none;
          border: 1px solid #ddd;
          color: #555;
          background: #fff;
          line-height: 1;

          &.current {
            background: #4384f5;
            border-color: #4384f5;
            color: #fff;
            pointer-events: none;
          }

          &:hover:not(.current) {
            border-color: #4384f5;
            color: #4384f5;
          }
        }
      }
    }

    #happy_list_tickets {
      height: auto;
      min-height: unset;

      .happy_wrap_content_list_ticket {
        padding: 2px 0px 5px 0px;
      }
    }
  }
}

#happy-threads {
  display: flex;
  -webkit-box-align: stretch;
  align-items: stretch;
  align-content: stretch;
  width: 100%;
  min-height: 100%;
  overflow: hidden;

  .happy-wrap-list-tickets {
    box-sizing: border-box;
    border-left: none;
    min-width: 0;
    -webkit-box-flex: 3;
    flex: 3 1 75%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    .happy-subject-container {
      display: flex;
      flex: 0 0 70px;
      position: relative;
      text-align: center;
      box-sizing: border-box;
      border-bottom: 1px solid rgb(221, 226, 230);
      background-color: rgb(255, 255, 255);
      align-items: center;

      .happy-previous-link {
        .happy-previous-button {
          font-size: 16px;
          cursor: pointer;
          height: 100%;
          color: rgb(66, 77, 87);
          text-decoration: none;
          display: flex;
          -webkit-box-pack: center;
          justify-content: center;
          -webkit-box-align: center;
          align-items: center;
          margin-left: 0px;
          padding: 0px 17px;
        }
      }

      h2 {
        margin: 0;
        font-size: 28px;
        width: 100%;
        text-align: center;
      }

      .happy-ticket-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: 17px;
        flex-shrink: 0;
      }

      .happy-btn-open-ticket-info {
        display: none;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        color: #4384F5;
        cursor: pointer;
        border-radius: 4px;
        line-height: 1;

        .happy-icon {
          font-size: 20px;
          line-height: 1;
        }

        &:hover {
          background: rgba(67, 132, 245, 0.08);
        }
      }

      .happy-share-link {
        .happy-share-button {
          text-decoration: none;
          display: inline-flex;
          align-items: center;
          justify-content: center;

          svg {
            width: 22px;
            height: 22px;
            fill: #4384F5;
          }
        }
      }

      .happy-closed-link {
        margin-right: 0;

        .happy-closed-button {
          text-decoration: none;

          svg {
            width: 22px;
            fill: #ef1b1b;
          }
        }
      }
    }

    .happy-replies-container {
      flex: 1 1 auto;
      overflow: auto;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      background-color: #ffffff;

      &::-webkit-scrollbar {
        width: 7px;
      }

      &::-webkit-scrollbar-track {
        background: #f1f1f1;
        margin-top: 2px;
        margin-bottom: 2px;
      }

      &::-webkit-scrollbar-thumb {
        background: #cecece;
        border-radius: 3px;
      }

      &::-webkit-scrollbar-thumb:hover {
        background: #a6a6a6;
      }

      .happy-replies-body {

        overflow: auto;
        width: 100%;
        max-width: 90%;

        .happy-reply-item {
          margin: 30px 0;
          width: 90%;
          max-width: 90%;
          box-sizing: border-box;

          &.happy-reply-from-customer {
            margin-left: 0;
            margin-right: 10%;
            border: 1px solid #dde2e6;
            border-radius: 8px;
            overflow: hidden;

            .happy-reply-content {
              border-color: #dde2e6;
            }
          }

          &.happy-reply-from-supporter {
            margin-left: 10%;
            margin-right: 0;
            border: 1px solid #87ceeb;
            border-radius: 8px;
            overflow: hidden;

            .happy-reply-content {
              border-color: #edfaff;
            }
            .happy-reply-header{
              background: #edfaff;
            }
          }

          .happy-reply-header {
            display: flex;
            flex-direction: row;
            -webkit-box-pack: justify;
            justify-content: space-between;
            font-size: 14px;
            line-height: 1.43em;
            min-height: 1.43em;
            background: #E6E6E6;
            color: rgb(66, 77, 87);
            padding: 12px;
            border-radius: 8px 8px 0 0;

            .happy-reply-info {
              .happy-author-name {
                display: inline-flex;
                align-items: center;
                gap: 6px;

                a.happy-author-link {
                  color: inherit;
                  text-decoration: none;

                  &:hover,
                  &:focus {
                    text-decoration: underline;
                  }
                }
              }

              .happy-author-role {
                padding: 3px 5px;
                font-size: 11px;
                background-color: #10C810;
                color: white;
                border-radius: 10px;

              }
            }

            .happy-meta {
              display: flex;

              .happy-reply-actions {
                display: flex;
                align-items: center;

                .happy-reply-edit-link {
                  font-size: 16px;
                  text-decoration: none;
                  margin-left: 6px;
                }

                .happy-reply-quote-wrap {
                  display: inline-flex;
                  align-items: center;

                  .happy-reply-quote-link {
                    display: inline-flex;
                    align-items: center;
                    text-decoration: none;
                    margin-left: 6px;

                    svg {
                      width: 16px;
                      height: 16px;
                      fill: rgb(67, 132, 245);
                    }
                  }
                }
              }
            }


          }

          .happy-reply-content {
            font-size: 15px;
            font-style: normal;
            line-height: 1.33;
            padding: 12px;
            border-width: 0 1px 1px;
            border-style: solid;
            border-color: rgb(221, 226, 230);
            border-image: initial;
            border-radius: 0 0 8px 8px;
            overflow: auto;
            overflow-wrap: break-word;
            color: rgb(66, 77, 87);

            .happy-reply-body {
              blockquote,
              blockquote.happy-reply-quote {
                font-size: 80%;
                margin: 0.5em 0;
                padding-left: 1em;
                border-left: 3px solid #ccc;
              }

              a {
                color: #4384f5;
              }
            }

            .happy-reply-attachments {
              h6 {
                margin: 10px 0 20px;
                font-size: 20px;
                font-weight: bold;
              }

              .happy-list-attachments {
                display: flex;
                margin: 0;
                padding: 0;
                list-style-type: none;
                flex-wrap: wrap;
                gap: 5px;
                img {
                  max-width: 90px;
                }
              }
            }
          }

        }
      }
    }

    .happy-replies-form-container {
      position: relative;

      .happy-replies-form-content {
        box-sizing: border-box;
        padding: 0;
        width: 100%;
        display: flex;
        //align-items: center;
        justify-content: center;
        //height: 0;
        //overflow: hidden;
        transition: all ease 0.3s;
      }

      &.happy_show {
        .happy-replies-form-content {
          min-height: 600px;
          //overflow: auto;
        }
      }

      #happy-form-reply-ticket {
        width: 100%;
        max-width: 750px;
      }

      .happy-wrap-reply-form {
        padding: 10px;
        border: 1px solid #bcc6d0;
        border-radius: 8px;
        transition: background-color 0.2s ease 0s;
        background-color: #ffffff;

        .wp-editor-container {
          border: none;

          .quicktags-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-start;
            gap: 4px;
            box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 6px;
            border-radius: 4px;
            padding: 4px 8px;
            background-color: #ffffff;

            .ed_button {
              display: inline-block;
              margin: 0;
              padding: 4px 8px;
              border: 1px solid #c3c4c7;
              border-radius: 3px;
              background-color: #f6f7f7;
              color: #3c434a;
              font-size: 13px;
              font-weight: 600;
              line-height: 1.4;
              text-shadow: none;
              min-height: unset !important;
              cursor: pointer;
            }
          }


          #happy_reply_content {
            min-height: 130px;
            font-size: 14px;
          }
        }

        .happy-wrap-attachments {
          display: flex;
          align-items: flex-start;
          justify-content: space-between;
          flex-direction: column;
          margin-top: 10px;

          .happy-attachments-form {
            width: 100%;
            display: flex;
            flex-wrap: wrap;

            .happy-wrap-btn-attachment {
              width: 100%;

              .happy_upload_button {
                margin: 0;
                font-size: 15px !important;
                padding: 10px 16px !important;
                line-height: 1;
                text-transform: none;
                height: auto;
                min-height: auto;
                outline: none;
                color: #ffffff;
                border: 1px solid #4384f5;
                background-color: #4384f5;
              }
            }

            .happy-wrap-btn-attachment-url-field {
              display: flex;
              flex-wrap: wrap;
              width: 100%;

              .happy-attachment-url-field {
                display: flex;
                width: 100%;
                align-items: center;
                margin: 5px 0;

                .happy-attachment-url-field-item {
                  display: flex;
                  width: 100%;
                  align-items: center;
                  border: 1px solid #bcc6d0;
                  border-radius: 6px;

                  label {
                    background-color: #e5e5e5;
                    width: 100px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                    height: 40px;
                    border-radius: 6px 0 0 6px;
                    margin: 0;
                  }

                  .happy_attachments_url {
                    flex: 1 0 auto;
                    padding: 10px;
                    border: none !important;
                    border-radius: 0 6px 6px 0;
                    transition: background-color 0.2s ease 0s;
                    background-color: #ffffff;
                    height: 40px;
                    outline: none !important;
                    width: auto;
                  }

                  .happy-add-more-url {
                    font-size: 35px;
                    padding: 5px 10px;
                    height: 40px;
                    border-radius: 0 6px 6px 0;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    color: #ffffff;
                    background-color: #4384f5;
                    opacity: 0;
                    visibility: hidden;

                    &.happy-show {
                      opacity: 1;
                      visibility: visible;
                    }
                  }
                }


                .happy-delete-url {
                  font-size: 21px;
                  padding: 5px 10px;
                  color: red;
                  //border: solid 2px #2dcf2d;
                  margin-left: 10px;
                  border-radius: 50%;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  cursor: pointer;
                  opacity: 0;
                  visibility: hidden;

                  &.happy-show {
                    opacity: 1;
                    visibility: visible;
                  }
                }


              }

              .wrap-attachment-error {
                width: 100%;
                color: #f20b0b;
                font-size: 15px;
                margin: -10px 0 5px 0;

              }
            }
          }
        }

        .happy-submit-wrapper {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-top: 10px;

          .happy-canned-wrapper {
            .happy-choose-canned {
              border: 1px solid #bcc6d0;
              border-radius: 6px;
              transition: background-color 0.2s ease 0s;
              background-color: #ffffff;
              height: 37px;
              outline: none;
            }

            .happy-canned-list {
              display: none !important;
            }
          }

          .happy-submit-reply {
            color: #ffffff;
            border: 1px solid #4384f5;
            background-color: #4384f5;
            margin: 0;
            font-size: 15px !important;
            padding: 10px 16px !important;
            line-height: 1;
            text-transform: none;
            height: auto;
            min-height: auto;

            &.happy-disabled {
              opacity: 0.5;
              cursor: no-drop;
            }
          }
        }

        .happy-form-error-wraps {
          margin-top: 15px;
        }
      }

    }

    .happy-ticket-closed {
      text-align: center;
      margin: 20px 0;
      font-size: 20px;
    }
  }

  .happy-wrap-action {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0;

    h2, h3, h4 {
      margin: 0;
    }

    ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
    }

    li {
      list-style-type: none;
      margin: 0 0 6px 0;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;

      span.happy_label_detail {
        font-weight: bold;
        margin-right: 2px;
        /*font-size: 15px;*/

      }
    }

    .happy-row {
      padding: 16px 40px 16px 40px;
    }

    .happy-field-group {
      flex: 1 0 auto;
      width: 100%;
      padding: 0 0 16px;

      .happy-ticket-update {
        color: #ffffff;
        border: 1px solid #4384f5;
        background-color: #4384f5;
        margin: 0;
        font-size: 15px !important;
        padding: 10px 16px !important;
        line-height: 1;
        text-transform: none;
        height: auto;
        min-height: auto;
        width: 120px;
        text-align: center;
        justify-content: center;
      }
    }
  }

  &.happy_hidden_detail_content {
    .happy-wrap-list-tickets {
      flex: 1 0 100%;
      animation: 0.2s ease;
    }

    .happy-wrap-detail-content {
      flex: 0 0 0;
      animation: 0.2s ease;


      .happy-button-toggle-detail-content {
        transform: rotate(180deg);
      }
    }
  }
}

#happy-form-edit-reply {
  .happy-submit-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;

    .happy-canned-wrapper {
      flex: 1 0 100%;
      margin-bottom: 10px;
    }

    .happy-submit-reply {
      color: #ffffff;
      border: 1px solid #4384f5;
      background-color: #4384f5;
      margin: 0;
      font-size: 15px !important;
      padding: 10px 16px !important;
      line-height: 1;
      text-transform: none;
      height: auto;
      min-height: auto;
    }
  }
}

.happy-wrap-detail-content {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  background: #F5F5F5;
  min-width: 320px;
  -webkit-box-flex: 1;
  flex: 1 1 25%;
  font-size: 14px;

  .happy-button-toggle-detail-content {
    width: 50px;
    height: 50px;
    position: absolute;
    left: -40px;
    top: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 50px;
    font-size: 25px;
    border-radius: 4px;
    background-color: #F5F5F5;
    z-index: 20;
    transform: translateY(-50%);
  }

  .happy-row {
    &.happy-detail-title {
      height: 70px;
      padding: 0 40px !important;
      align-items: center;
      justify-content: space-between;
      display: flex;

      h3 {
        font-size: 28px;
        font-weight: 400;
      }

      .happy-btn-close-ticket-info {
        display: none;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        color: inherit;
        cursor: pointer;
        border-radius: 4px;
        flex-shrink: 0;

        .happy-icon {
          font-size: 18px;
          line-height: 1;
        }

        &:hover {
          background: rgba(0, 0, 0, 0.06);
        }
      }
    }

    .happy-ticket-info,
    .happy-ticket-tools {
      h4 {
        margin: 0 0 12px 0 !important;
        font-size: 23px;
        font-weight: bold;

      }

      select,
      .ViSelect2-container .ViSelect2-selection--single {
        min-height: 35px;
        line-height: 1;
        border: 1px solid #4384F5;
        border-radius: 4px;
        outline: none !important;
      }
    }

    .happy-ticket-info {
      #happy_subcribe_ticket_detail {
        align-items: flex-start;

        .happy_value_detail_assign {
          flex: 1 1 auto;
          min-width: 0;
          width: 100%;

          .ViSelect2-container {
            width: 100% !important;
          }
        }
      }
    }
  }

  .happy-tag {
    border-radius: 10px;
    font-size: 12px;
    padding: 3px 10px;
    z-index: 9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    .happy-icon {
      padding: 0;
      margin: 0 5px 0 0;
    }
  }
}


.happy-list-kb {
  list-style-type: none;
  padding: 0;
  margin: 0;

  li {
    margin-left: 0 !important;
    margin-bottom: 10px;
    list-style: none;
    line-height: 25px;
    position: relative;

    .happy-kb-category {
      margin: 5px 0 0 0;
      display: block;
      color: #9b9a9a;
    }

    .happy-kb-tags {
      margin: 4px 0 0 0;
      display: block;
      color: #9b9a9a;

      .happy-kb-tag {
        display: inline-block;
        margin: 0 4px 0 0;
        text-decoration: none;

        &.is-active {
          font-weight: 600;
          color: #2271b1;
        }
      }
    }

  }
}

.happy-kb-archive {
  --happy-kb-accent: var(--wp--preset--color--primary, currentColor);
  --happy-kb-muted: #8a8a8a;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;

  .happy-kb-archive-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto 2.25rem;
  }

  .happy-kb-archive-heading {
    min-width: 0;
    width: 100%;
  }

  .happy-kb-archive-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .happy-kb-archive-subtitle {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--happy-kb-muted);
  }
}

.happy-kb-directory-wrap {
  width: 100%;

  .happy-kb-search {
    position: relative;
    max-width: 520px;
    margin: 0 auto 2rem;
  }

  .happy-kb-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    color: #9a9a9a;
    pointer-events: none;

    svg {
      display: block;
    }
  }

  .happy-kb-search-input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 20px 14px 46px;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    background: #fff;
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    outline: none;

    &:focus {
      border-color: #cfcfcf;
      box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    }

    &::placeholder {
      color: #9a9a9a;
    }
  }

  .happy-kb-search-empty {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--happy-kb-muted, #8a8a8a);

    &.happy-hidden,
    &[hidden] {
      display: none !important;
    }
  }

  .happy-kb-search-results {
    margin: 0 0 2rem;

    &.happy-hidden,
    &[hidden] {
      display: none !important;
    }
  }

  .happy-kb-search.is-loading .happy-kb-search-input {
    opacity: 0.7;
  }

  .happy-kb-directory.happy-hidden {
    display: none !important;
  }
}

.happy-kb-directory-back {
  margin: 0 0 1.25rem;
  text-align: left;

  a {
    text-decoration: none;
  }
}

.happy-kb-archive .happy-kb-directory-back {
  margin: 0 0 1.5rem;
}

.happy-kb-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;

  &.is-filtered {
    grid-template-columns: 1fr;
  }

  @media (max-width: 782px) {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.happy-kb-directory-category {
  min-width: 0;

  &.happy-hidden {
    display: none !important;
  }
}

.happy-kb-directory-category-title {
  margin: 0 0 1rem;
  padding: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    background: var(--happy-kb-accent, var(--wp--preset--color--primary, currentColor));
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

.happy-kb-directory-category-count {
  font-weight: 500;
  color: var(--happy-kb-muted, #8a8a8a);
}

.happy-kb-directory-articles {
  list-style: none;
  margin: 0;
  padding: 0;

  li {
    margin: 0 0 10px;
    list-style: none;

    &.happy-hidden {
      display: none !important;
    }
  }
}

.happy-kb-directory-article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  line-height: 1.45;
}

.happy-kb-doc-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #9a9a9a;
}

.happy-kb-directory-article-title {
  flex: 1 1 auto;
  min-width: 0;
}

.happy-kb-directory-view-all {
  margin: 14px 0 0;

  a {
    text-decoration: none;
    font-size: 0.95rem;
  }
}

.happy-kb-single {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.happy-kb-single-header {
  margin: 0 0 1.25rem;
}

.happy-kb-single-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.3;
}

.happy-kb-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #8a8a8a;
}

.happy-kb-single-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.happy-kb-views-icon {
  flex: 0 0 auto;
  display: block;
  color: #9a9a9a;
}

.happy-kb-single-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c5c5c5;
}

.happy-kb-single-categories {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.happy-kb-category-icon {
  flex: 0 0 auto;
  display: block;
  color: #9a9a9a;
}

.happy-kb-single-categories-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.happy-kb-single-categories .happy-kb-category {
  color: inherit;
  text-decoration: none;
}

.happy-kb-single-categories .happy-kb-category:hover,
.happy-kb-single-categories .happy-kb-category:focus {
  text-decoration: underline;
}

.happy-kb-single-content {
  line-height: 1.6;

  > *:first-child {
    margin-top: 0;
  }

  > *:last-child {
    margin-bottom: 0;
  }
}

.happy-kb-single-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ececec;
}

.happy-kb-single-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  font-size: 0.95rem;
  color: #6b6b6b;
}

.happy-kb-single-tags-label {
  font-weight: 600;
  color: #3a3a3a;
}

.happy-kb-single-tags-list .happy-kb-tag {
  display: inline-block;
  margin: 0 2px 0 0;
  text-decoration: none;
}

.happy-kb-single-tags-list .happy-kb-tag:hover,
.happy-kb-single-tags-list .happy-kb-tag:focus {
  text-decoration: underline;
}

.happy-faqs-archive {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;

  .happy-faqs-archive-header {
    margin-bottom: 1.75rem;
    text-align: center;
  }

  .happy-faqs-archive-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1f1f1f;
  }

  .happy-faqs-archive-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #8a8a8a;
  }
}

.happy-faqs-by-category {
  width: 100%;

  .happy-faq-search {
    position: relative;
    max-width: 520px;
    margin: 0 auto 2rem;
  }

  .happy-faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    color: #9a9a9a;
    pointer-events: none;

    svg {
      display: block;
    }
  }

  .happy-faq-search-input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 20px 14px 46px;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    outline: none;

    &:focus {
      border-color: #cfcfcf;
      box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    }

    &::placeholder {
      color: #9a9a9a;
    }
  }

  .happy-faq-search-empty {
    margin: 0 0 1.5rem;
    text-align: center;
    color: #8a8a8a;

    &.happy-hidden,
    &[hidden] {
      display: none !important;
    }
  }

  .happy-faq-category-group {
    margin: 0 0 2rem;

    &.happy-hidden {
      display: none !important;
    }
  }

  .happy-faq-category-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1f1f1f;
  }

  .happy-faq-items {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .happy-faq-item {
    margin: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;

    &.happy-hidden {
      display: none !important;
    }

    &.is-open {
      .happy-faq-toggle-icon::before {
        content: "×";
        font-size: 1.35em;
        line-height: 1;
      }
    }
  }

  .happy-faq-item-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .happy-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 22px 24px;
    border: 0;
    background: transparent;
    color: #1f1f1f;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;

    &:hover,
    &:focus {
      color: #111;
    }
  }

  .happy-faq-toggle-label {
    flex: 1 1 auto;
    min-width: 0;
  }

  .happy-faq-toggle-icon {
    flex: 0 0 auto;
    width: 1.5em;
    text-align: center;
    font-weight: 400;
    line-height: 1;
    color: #555;

    &::before {
      content: "+";
      font-size: 1.35em;
      line-height: 1;
    }
  }

  .happy-faq-item-content {
    padding: 0 24px 22px;
    color: #6b6b6b;
    font-size: 0.95rem;
    line-height: 1.6;

    &[hidden] {
      display: none !important;
    }

    > *:first-child {
      margin-top: 0;
    }

    > *:last-child {
      margin-bottom: 0;
    }
  }
}

.happy-faq-empty {
  margin: 0;
  color: #6c6c6c;
}

.happy-kb-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 2rem;

  .happy-kb-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 88px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e2e2;
    background: #fafafa;
    transition: border-color .15s ease, background .15s ease;

    &:hover,
    &.is-active {
      border-color: #2271b1;
      background: #f0f6fc;
    }

    .happy-kb-category-card-title {
      font-weight: 600;
      line-height: 1.3;
    }

    .happy-kb-category-card-count {
      margin-top: 8px;
      font-size: 12px;
      color: #6c6c6c;
    }
  }
}

.happy-kb-empty {
  margin: 0;
  color: #6c6c6c;
}

.happy-pagination {
  width: 100%;
  margin-bottom: 2px;
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;

  .happy-pagination-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
  }

  .happy-pagination-count {
    border: 1px solid transparent;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.4;
    flex: 0 1 auto;
    white-space: nowrap;
  }

  .happy-pagination-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;

    .happy-pagination-per-page-label {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .happy-tickets-per-page {
      width: auto;
      min-width: 160px;
      max-width: 100%;
      min-height: 32px !important;
      height: 32px;
      padding: 0 28px 0 10px;
      border: 1px solid #d1d5db;
      border-radius: 2px;
      background-color: #fff;
      color: #374151;
      font-size: 14px !important;
      font-weight: 400;
      line-height: 30px;
      box-shadow: none;
    }
  }

  .happy-pagination-links {
    list-style: none;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;

    a {
      display: block;
      float: left;
      padding: 0 5px;
      margin-left: 0;
      border: 1px solid #efefef;
      text-decoration: none;
    }

    .page-numbers {
      width: 32px;
      height: 32px;
      -webkit-border-radius: 2px;
      -moz-border-radius: 2px;
      -ms-border-radius: 2px;
      -o-border-radius: 2px;
      border-radius: 2px;
      text-align: center;
      line-height: 32px;
      display: inline-block;
      border: none;
      box-sizing: border-box;

      &.current {
        cursor: default;
        display: block;
        float: left;
        padding: 0 5px;
        margin-left: 0;
        border: 1px solid #ddd;
        text-decoration: none;
        opacity: .8;
      }

      &:not(.current):hover {
        opacity: .8;
        border: 1px solid #ddd;
      }
    }

    span.dots {
      display: block;
      float: left;
      padding: 1px 4px;
      margin-left: 5px;
    }
  }

  &.happy-pagination-compact {
    .happy-pagination-links {
      gap: 6px;

      .happy-page-nav {
        width: 32px;
        height: 32px;
        line-height: 30px;
        border: 1px solid #4384F5;
        color: #4384F5;
        background: #fff;
        border-radius: 2px;
        font-size: 16px;
        text-decoration: none;
        float: none;

        &:hover {
          opacity: 1;
          background: #f3f8ff;
          border-color: #4384F5;
        }

        &.disabled,
        &[aria-disabled="true"] {
          border-color: #d1d5db;
          color: #c0c4c9;
          pointer-events: none;
          cursor: default;
          background: #fff;

          &:hover {
            background: #fff;
            border-color: #d1d5db;
          }
        }
      }

      .happy-page-current-wrap {
        display: inline-flex;
        align-items: center;
      }

      .happy-page-current-input {
        width: 42px;
        height: 32px;
        min-height: 32px !important;
        margin: 0;
        padding: 0 4px;
        border: 1px solid #9ca3af;
        border-radius: 2px;
        text-align: center;
        font-size: 14px;
        color: #111827;
        background: #fff;
        box-shadow: none;
        -moz-appearance: textfield;

        &::-webkit-outer-spin-button,
        &::-webkit-inner-spin-button {
          -webkit-appearance: none;
          margin: 0;
        }
      }

      .happy-page-total {
        color: #4b5563;
        font-size: 14px;
        line-height: 32px;
        white-space: nowrap;
        padding: 0 2px;
      }
    }
  }
}

.bog {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.happy-problem-submit-button {
  font-weight: normal;

  &:focus {
    border: none;
    outline: unset;
  }
}

/*Authentication form*/

.happy-notice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  background-color: #fff;
  border: 1px solid #2185d0;

  &.happy-hidden {
    display: none;
  }
  .happy-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #2185d0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }
  &.happy-notice-error {
    background-color: #fef2f2;
    border: 1px solid #7f1d1d;
    color: #1f2937;

    .happy-notice-icon {
      background-color: #dc2626;
    }

    .happynotice-text strong {
      font-weight: 700;
    }
  }
}
.happy-button{

  &.happy_loading {
    color: transparent !important;
    cursor: wait;
    pointer-events: none;
    position: relative;

    &::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 20px;
      height: 20px;
      margin: -10px 0 0 -10px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.35);
    }

    &::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 20px;
      height: 20px;
      margin: -10px 0 0 -10px;
      border-radius: 50%;
      border: 2px solid transparent;
      border-top-color: #fff;
      animation: rotation_loading 0.6s linear infinite;
    }
  }

  &:disabled:not(.happy_loading) {
    opacity: 0.65;
    cursor: not-allowed;
  }
}
.happy-auth-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;

  .happy-auth-button{
    position: relative;
    min-width: 96px;
    min-height: 40px;
    border: 0;
    border-radius: 4px !important;
    background: #000;
    color: #fff;
    padding: 10px 24px !important;
    margin: 0;
    outline: none;
    cursor: pointer;
    font-size: 16px !important;
    line-height: 1.2;

  }

  .happy-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;

    label {
      margin: 0;
      font-size: 14px;
    }
  }
}
.happy-auth-container {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 20px 0;

  .happy-auth-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    max-width: 920px;
  }

  .happy-auth-column {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    h2 {
      margin: 0;
      font-size: 28px;
      font-weight: 400;
      line-height: 1.2;
    }
  }

  &.happy-auth-single {
    width: 100%;
    padding: 20px;

    .happy-auth-panels {
      max-width: 100%;
      width: 100%;
    }

    .happy-auth-column {
      flex: 1 1 100%;
      width: 100%;
      max-width: 100%;
    }

    .happy-auth-panel {
      width: 100%;
      max-width: 100%;
    }
  }

  .happy-auth-panel {
    border: 1px solid #d9d9d9;
    background: #fff;
    padding: 32px 28px;
  }

  .happy-login-form,
  .happy-register-form,
  .happy-lostpassword-form {
    display: flex;
    flex-direction: column;
  }

  .happy-auth-lostpassword-desc {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
  }

  .happy-form-field {
    margin-bottom: 16px;

    label {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      line-height: 1.4;

      .required {
        color: #e2401c;
      }
    }

    input:not([type=checkbox]) {
      width: 100%;
      min-height: 40px;
      border: 1px solid #767676;
      border-radius: 0;
      padding: 0 12px;
      outline: none;
      box-sizing: border-box;
      font-size: 14px;
      background: #fff;
    }
  }

  .happy-password-wrap {
    position: relative;

    input {
      padding-right: 44px;
    }

    .happy-password-toggle {
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
      border: 0;
      background: transparent;
      padding: 0;
      cursor: pointer;
      line-height: 1;
      width: 24px;
      height: 24px;

      .happy-password-toggle-icon {
        display: block;
        width: 20px;
        height: 20px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
      }

      &.is-visible .happy-password-toggle-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
      }
    }
  }

  .happy-auth-register-note {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
  }


  .happy-auth-links {
    margin-top: 16px;

    .happy-link {
      font-size: 14px;
      text-decoration: underline;
    }
  }

}

#happy-notfound-template {
  position: relative;
  height: 100vh;


  .happy-notfound {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    max-width: 710px;
    width: 100%;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;

    .happy-notfound-404 {
      h2 {
        color: #00b5c3;
        font-size: 157px;
        letter-spacing: 13.5px;
        margin: 0;
        font-weight: 900;
        white-space: nowrap;
      }
    }

    h3 {
      color: #292929;
      font-size: 28px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 2.5px;
      margin-top: 0;
    }

    p {
      font-family: raleway, sans-serif;
      font-size: 14px;
      font-weight: 400;
      margin-top: 0;
      margin-bottom: 15px;
      color: #333;
    }

    a {
      font-family: raleway, sans-serif;
      font-size: 14px;
      text-decoration: none;
      text-transform: uppercase;
      background: #fff;
      display: inline-block;
      padding: 15px 30px;
      border-radius: 40px;
      color: #292929;
      font-weight: 700;
      -webkit-box-shadow: 0 4px 15px -5px rgba(0, 0, 0, .3);
      box-shadow: 0 4px 15px -5px rgba(0, 0, 0, .3);
      -webkit-transition: .2s all;
      transition: .2s all;

      &:hover {
        color: #fff;
        background-color: #00b5c3
      }
    }
  }
}

@media (max-width: 640px) {
  #happy-helpdesk-my-tickets-page {
    display: block;
  }

  .happy-row {
    .happy-wrap-action {
      flex-direction: column;

      .happy-field-group {

        flex: unset;
        width: 100%;
      }
    }
  }
  #happy-threads {
    .happy-wrap-list-tickets {
      .happy-subject-container {
        flex: 0 0 auto;
        min-height: 56px;
        padding: 8px 0;

        h2 {
          font-size: 15px;
          line-height: 1.3;
          padding: 0 8px;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }

        .happy-ticket-header-actions {
          margin-right: 10px;
          gap: 8px;
        }
      }
    }

    ul {
      &.happy-replies {
        li {
          &.happy-replies-body {
            .happy_reply_content {
              .hentry {
                flex-direction: column;
                align-items: flex-start;

                .happy-reply-author {
                  width: 100%;
                  flex: 100%;
                  text-align: left;
                  display: flex;

                  .happy-author-role {
                    margin-left: 10px;
                  }
                }
              }
            }
          }
        }
      }
    }
  }

  .happy-modal-overlay {
    padding: 16px;

    .happy-wrap-modal-content {
      .happy-close-modal {
        top: -12px;
        right: -8px;
      }
    }
  }
}

/* Ticket list: stack filters + card rows on tablet/mobile (and .happy-list-narrow) */
@mixin happy-list-tickets-compact-layout {
  body.happy-filter-drawer-open {
    overflow: hidden;
  }

  body > .happy-filter-drawer-overlay,
  #happy_list_tickets .happy-filter-drawer-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    -webkit-tap-highlight-color: transparent;

    &[hidden] {
      display: none !important;
    }
  }

  body.happy-filter-drawer-open > .happy-filter-drawer-overlay {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 100000;
  }

  #happy_list_tickets {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden;
    position: relative;

    &.happy-filter-open .happy_header_list_ticket {
      z-index: 100001 !important;
    }

    .happy_header_list_ticket {
      position: fixed !important;
      top: 0;
      left: 0;
      bottom: 0;
      width: min(320px, 88vw) !important;
      max-width: min(320px, 88vw) !important;
      min-width: 0 !important;
      height: 100vh !important;
      height: 100dvh !important;
      min-height: 0 !important;
      flex: none !important;
      z-index: 100001;
      transform: translateX(-105%) !important;
      transition: transform 0.25s ease;
      overflow: hidden;
      display: flex !important;
      flex-direction: column !important;
      box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
      border-right: none;
      border-bottom: none;
      background-color: #F5F5F5;
      visibility: hidden;
      pointer-events: none;

      .happy-title-filter-tickets {
        position: relative;
        top: auto;
        z-index: 2;
        flex: 0 0 auto;
        background-color: #F5F5F5;
        border-bottom: 1px solid #dde2e6;

        .happy-btn-close-filter {
          display: inline-flex !important;
          width: 36px !important;
          height: 36px !important;
          border: 1px solid #c5cdd6 !important;
          background: #fff !important;
          color: #424d57 !important;
          border-radius: 6px !important;
          box-shadow: none !important;
        }

        .happy-home-url,
        .happy-wrap-menu {
          display: none !important;
        }
      }

      > .happy-row {
        display: block !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 0 24px;
        box-sizing: border-box;

        .happy-wrap-action.happy-wrap-filter {
          display: flex !important;
          flex-direction: column !important;
          flex-wrap: nowrap !important;
          align-items: stretch !important;
          width: 100% !important;
          max-width: 100% !important;
          min-height: 0 !important;
          height: auto !important;

          .happy-search-tickets {
            order: -1;
            flex: 0 0 auto !important;
            width: 100% !important;
            margin: 0 0 16px !important;
            padding: 0 14px !important;
            box-sizing: border-box;

            .input-group-prepend {
              display: none;
            }

            .happy-control-field {
              width: 100%;
              min-height: 40px;
            }
          }

          .happy-wrap-filters-group {
            display: flex !important;
            flex-direction: column !important;
            flex-wrap: nowrap !important;
            width: 100% !important;
            max-width: 100% !important;
            max-height: none !important;
            height: auto !important;
            overflow: visible !important;
            margin: 0 !important;
            padding: 0 4px 10px 4px !important;
            box-sizing: border-box;
          }

          .happy-field-group {
            flex: 0 0 auto !important;
            width: 100% !important;
            max-width: 100% !important;
            margin-bottom: 16px;
            padding: 0 10px;
            box-sizing: border-box;

            .happy-control-field {
              width: 100%;
            }

            ul {
              width: 100%;
            }
          }
        }
      }
    }

    &.happy-filter-open {
      .happy_header_list_ticket {
        transform: translateX(0) !important;
        visibility: visible;
        pointer-events: auto;
      }
    }

    .happy_wrap_content_list_ticket {
      flex: 1 1 auto !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      padding: 12px 14px 20px;
      overflow-x: hidden;

      .happy-title-body-list-ticket {
        height: auto;
        min-height: 48px;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        margin-bottom: 14px;
        font-size: 20px;

        .happy-btn-open-filter {
          display: inline-flex !important;
          flex: 0 0 auto;
          align-items: center;
          justify-content: center;
          gap: 6px;
          height: 36px;
          padding: 0 12px;
          border: 1px solid #4384F5;
          border-radius: 6px;
          background: #f3f8ff;
          color: #4384F5;
          cursor: pointer;
          font-size: 14px;
          font-weight: 600;
          line-height: 1;

          .happy-icon {
            font-size: 16px;
            margin: 0;
          }

          .happy-btn-open-filter-label {
            display: none;
          }
        }

        .happy-title {
          font-size: 20px;
        }

        .happy-create-ticket-button {
          padding: 6px 10px;
          font-size: 13px;
        }
      }

      .happy_list_tickets_paginate {
        flex-wrap: wrap;
        gap: 8px;
      }

      .happy-wrap-body-list-ticket,
      .happy_table {
        width: 100%;
        max-width: 100%;
        min-width: 0;
      }

      .happy_table {
        .happy_thead,
        .happy_tfoot {
          display: flex !important;
          flex-direction: column !important;
          flex-wrap: nowrap !important;
          align-items: stretch !important;
          padding: 8px 10px;
          gap: 8px;
          width: 100%;
          max-width: 100%;
          box-sizing: border-box;

          &.happy-bulk-active {
            .happy_bulk_action {
              display: flex !important;
            }
          }

          .happy_th {
            display: none !important;
            padding: 0 !important;
            flex: unset !important;
            flex-basis: auto !important;
            max-width: none !important;
            width: auto !important;
          }

          .happy_th_check {
            display: inline-flex !important;
            flex: 0 0 auto !important;
            align-items: center;
            gap: 8px;
            width: auto !important;

            &::after {
              content: attr(data-select-label);
              font-size: 13px;
              font-weight: 500;
              text-transform: none;
              color: #4b5563;
            }
          }

          .happy_bulk_action {
            display: none;
            flex: 1 1 auto !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;

            &.happy-row {
              width: 100% !important;
            }

            .happy-wrap-bulk-action {
              width: 100%;
              max-width: 100%;
              padding: 0;
              margin: 0;

              .happy-field-group {
                flex-direction: column !important;
                align-items: stretch !important;
                flex-wrap: wrap !important;
                padding: 0;
                gap: 8px;
                width: 100%;
                max-width: 100%;

                .input-group-text {
                  font-size: 13px;
                }

                .happy-control-field {
                  padding: 0;
                  width: 100%;
                  max-width: 100%;
                  min-width: 0;

                  .happy-wrap-bulk-field {
                    flex-direction: column !important;
                    flex-wrap: wrap !important;
                    gap: 8px;
                    background: transparent;
                    width: 100%;
                    max-width: 100%;

                    .ticket-bulk-action-dropdown {
                      flex: 1 1 auto !important;
                      width: 100% !important;
                      max-width: 100% !important;
                      border-radius: 4px;
                    }

                    .happy-bulk-categories-wrap,
                    .happy-bulk-assign-wrap {
                      display: block !important;
                      flex: 1 1 auto !important;
                      min-width: 0 !important;
                      width: 100% !important;
                      max-width: 100% !important;
                      height: auto !important;
                      overflow: visible !important;
                      position: relative;

                      &[hidden] {
                        display: none !important;
                      }

                      .ViSelect2-container {
                        width: 100% !important;
                        height: auto !important;
                        max-width: 100% !important;
                        min-width: 0 !important;
                        display: block !important;

                        .ViSelect2-selection--multiple {
                          border-left: 1px solid #4384F5;
                          border-radius: 4px;
                          max-height: none !important;
                          height: auto !important;
                          min-height: 34px !important;
                          overflow: visible !important;
                          display: block !important;
                          align-items: stretch;

                          .ViSelect2-selection__rendered {
                            display: flex !important;
                            flex-wrap: wrap !important;
                            align-items: flex-start !important;
                            overflow: visible !important;
                            white-space: normal !important;
                            width: 100% !important;
                            max-width: 100% !important;
                            padding: 4px 6px !important;
                            gap: 4px;
                            box-sizing: border-box;
                          }

                          .ViSelect2-selection__choice {
                            max-width: 100% !important;
                            width: auto !important;
                            height: auto !important;
                            margin: 0 !important;
                            white-space: normal !important;
                            overflow: visible !important;
                            text-overflow: clip !important;
                            word-break: break-word;
                            line-height: 1.35;
                          }

                          .ViSelect2-search--inline {
                            float: none !important;
                            flex: 1 1 80px !important;
                            min-width: 80px !important;
                            max-width: 100% !important;
                            width: auto !important;

                            .ViSelect2-search__field {
                              width: 100% !important;
                              min-width: 80px !important;
                              margin: 0 !important;
                              height: 24px;
                            }
                          }
                        }
                      }

                      .ViSelect2-dropdown {
                        position: static !important;
                        top: auto !important;
                        left: auto !important;
                        right: auto !important;
                        width: 100% !important;
                        max-width: 100% !important;
                        margin-top: 4px;
                        box-sizing: border-box !important;
                        transform: none !important;
                        float: none !important;
                      }

                      .ViSelect2-results__options {
                        max-height: 220px;
                      }
                    }

                    .happy-btn-bulk-action {
                      flex: 1 1 auto !important;
                      width: 100% !important;
                      border-radius: 4px;
                    }
                  }
                }
              }
            }
          }
        }

        .happy_tbody {
          display: flex;
          flex-direction: column;
          gap: 10px;
          width: 100%;
          max-width: 100%;

          .happy_no_data {
            padding: 20px 10px;
          }

          .happy_tr {
            display: grid !important;
            grid-template-columns: 28px minmax(0, 1fr) auto !important;
            grid-template-rows: auto;
            gap: 8px 10px;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            padding: 12px;
            margin: 0;
            border: 1px solid #dde2e6;
            border-radius: 8px;
            box-sizing: border-box;
            align-items: start;
            overflow: hidden;

            .happy_td {
              display: block !important;
              width: auto !important;
              max-width: 100% !important;
              flex: unset !important;
              flex-basis: auto !important;
              border-bottom: none !important;
              padding: 2px 0 !important;
              min-width: 0 !important;
              overflow-wrap: anywhere;
              word-break: break-word;
            }

            .happy_td_check {
              grid-column: 1 !important;
              grid-row: 1 !important;
              align-self: center;
              width: 28px !important;
              padding-top: 4px !important;
            }

            .happy_td_subject {
              grid-column: 2 !important;
              grid-row: 1 !important;
              display: block !important;

              .happy_subject_title {
                white-space: normal !important;
                word-break: break-word;
                flex-wrap: wrap;
              }

              .happy_ticket_category {
                white-space: normal !important;
              }
            }

            .happy_td_status {
              grid-column: 3 !important;
              grid-row: 1 !important;
              justify-content: flex-end;
              align-self: center;
              display: flex !important;
              width: auto !important;
              flex-shrink: 0;

              .happy_icon_status,
              .happy_status {
                margin-right: 0;
              }
            }

            .happy_td_supporter,
            .happy_td_problem,
            .happy_td_date_modified,
            .happy_td_author {
              grid-column: 1 / -1 !important;
              grid-row: auto !important;
              display: grid !important;
              grid-template-columns: 96px minmax(0, 1fr) !important;
              align-items: start;
              gap: 8px;
              font-size: 13px;
              line-height: 1.35;

              &::before {
                content: attr(data-label);
                color: #6b7280;
                font-size: 11px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.02em;
                padding-top: 2px;
              }

              > * {
                min-width: 0;
                max-width: 100%;
              }
            }
          }
        }

        &.happy_table_customer {
          .happy_thead,
          .happy_tfoot {
            display: none !important;
          }

          .happy_tbody .happy_tr {
            grid-template-columns: minmax(0, 1fr) auto !important;

            .happy_td_subject {
              grid-column: 1 !important;
              grid-row: 1 !important;
            }

            .happy_td_status {
              grid-column: 2 !important;
              grid-row: 1 !important;
            }

            .happy_td_problem,
            .happy_td_date_modified {
              grid-column: 1 / -1 !important;
              grid-row: auto !important;
            }
          }
        }
      }
    }
  }

  #happy_list_tickets_paginate {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;

    .paginate_button {
      padding: 8px 12px;
      margin: 0;
    }
  }
}

@media (max-width: 1024px) {
  @include happy-list-tickets-compact-layout;
}

/* Ticket detail: Ticket information drawer (tablet + mobile — match list compact breakpoint) */
@media (max-width: 1024px) {
  body.happy-ticket-info-drawer-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body > .happy-ticket-info-drawer-overlay,
  #happy-threads .happy-ticket-info-drawer-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    -webkit-tap-highlight-color: transparent;

    &[hidden] {
      display: none !important;
    }
  }

  body.happy-ticket-info-drawer-open > .happy-ticket-info-drawer-overlay {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 100000;
  }

  body.happy-ticket-info-drawer-open {
    .ViSelect2-container--open {
      z-index: 2 !important;
    }

    #happy-ticket-info-panel .ViSelect2-dropdown {
      z-index: 3 !important;
      box-sizing: border-box !important;
    }
  }

  #happy-threads {
    position: relative;
    overflow-x: hidden;
    min-width: 0;

    &.happy-ticket-info-open .happy-wrap-detail-content {
      z-index: 100001 !important;
      right: 0 !important;
    }

    &.happy_hidden_detail_content {
      .happy-wrap-list-tickets {
        flex: 1 1 100% !important;
      }

      .happy-wrap-detail-content {
        flex: none !important;
      }
    }

    .happy-wrap-list-tickets {
      flex: 1 1 100% !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;

      .happy-subject-container {
        .happy-btn-open-ticket-info {
          display: inline-flex !important;
        }
      }
    }

    .happy-wrap-detail-content {
      position: fixed !important;
      top: 0;
      right: -105%;
      bottom: 0;
      left: auto;
      width: min(320px, 88vw) !important;
      max-width: min(320px, 88vw) !important;
      min-width: 0 !important;
      height: 100vh !important;
      height: 100dvh !important;
      flex: none !important;
      z-index: 100001;
      transform: none !important;
      transition: right 0.25s ease;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
      background-color: #F5F5F5;
      box-sizing: border-box !important;

      .happy-button-toggle-detail-content {
        display: none !important;
      }

      .happy-row.happy-detail-title {
        position: relative;
        top: 0;
        z-index: 2;
        flex: 0 0 auto;
        height: auto;
        min-height: 56px;
        padding: 12px 14px !important;
        border-bottom: 1px solid #dde2e6;
        background-color: #F5F5F5;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;

        h3 {
          font-size: 18px;
          margin: 0;
          display: flex;
          align-items: center;
          gap: 6px;
          min-width: 0;

          .happy-icon {
            font-size: 18px;
          }
        }

        .happy-btn-close-ticket-info {
          display: inline-flex !important;
        }
      }

      .happy-ticket-info-drawer-body {
        flex: 1 1 auto;
        min-height: 0;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-sizing: border-box;
      }

      .happy-ticket-info-drawer-body > .happy-row {
        flex: 0 0 auto;
        padding: 12px 14px 24px;
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
      }

      .happy-ticket-info,
      .happy-ticket-tools {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;

        select,
        .form-control {
          width: 100% !important;
          max-width: 100% !important;
          min-width: 0 !important;
          box-sizing: border-box;
        }

        .ViSelect2-container {
          width: 100% !important;
          max-width: 100% !important;
          min-width: 0 !important;
          box-sizing: border-box !important;
        }

        .ViSelect2-container .ViSelect2-selection--multiple,
        .ViSelect2-container .ViSelect2-selection--single {
          max-width: 100% !important;
          box-sizing: border-box !important;
        }

        .ViSelect2-container .ViSelect2-search--inline {
          float: none !important;
          width: 100% !important;
          max-width: 100% !important;
        }

        .ViSelect2-container .ViSelect2-search--inline .ViSelect2-search__field {
          width: 100% !important;
          max-width: 100% !important;
          min-width: 0 !important;
          margin: 0 !important;
        }

        .ViSelect2-dropdown {
          max-width: 100% !important;
          box-sizing: border-box !important;
        }

        .happy-field-group {
          width: 100%;
          max-width: 100%;
          box-sizing: border-box;
        }

        ul {
          max-width: 100%;
          box-sizing: border-box;
        }

        li {
          max-width: 100%;
          box-sizing: border-box;
        }
      }
    }

    .happy-reply-header {
      flex-wrap: wrap;
      gap: 8px;
    }

    .happy-replies-form-container.happy_show .happy-replies-form-content {
      min-height: 0;
    }

    .happy-submit-wrapper {
      flex-wrap: wrap;
      gap: 10px;
    }
  }
}

/* JS adds this on <html> when #happy_list_tickets is narrow (My Account, sidebars, …) */
html.happy-list-tickets-compact {
  @include happy-list-tickets-compact-layout;
}

@media (max-width: 480px) {
  .happy-notfound {
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;

    .happy-notfound-404 {
      position: relative;
      width: 100%;
      margin-bottom: 15px
    }
  }

  #happy_list_tickets {
    .happy_wrap_content_list_ticket {
      padding: 10px 10px 16px;

      .happy_table .happy_tbody .happy_tr {
        padding: 10px;

        .happy_td_supporter,
        .happy_td_problem,
        .happy_td_date_modified,
        .happy_td_author {
          grid-template-columns: 84px minmax(0, 1fr) !important;
        }
      }
    }
  }
}

.ViSelect2-container--default {
  .ViSelect2-selection--multiple {
    border: 1px solid #4384F5;

    .ViSelect2-selection__rendered {
      padding: 5px !important;
      min-height: 35px;

      li {
        &.ViSelect2-search {
          margin: 0;
          padding: 0 3px;
          width: 100%;

          .ViSelect2-search__field {
            font-size: 14px;
            color: #333;
            margin: 0;
            line-height: 1.5;
          }
        }

        &.ViSelect2-selection__choice {
          margin: 0 6px 6px 0 !important;
          padding: 3px !important;
          font-size: 13px;
          line-height: 1.125;
          color: #ffffff;
          border: 1px solid #4384f5;
          background-color: #4384f5;

          .ViSelect2-selection__choice__remove {
            color: #ffffff;
          }
        }
      }
    }
  }
}

.ViSelect2-results__option[aria-selected] {
  cursor: pointer;
  font-size: 14px;
  padding: 0 5px !important;
}
.happy-wrap-content-first-step {
    padding: 0 10px;
}

/* WooCommerce My Account — Tickets menu badge */
.woocommerce-MyAccount-navigation-link--list-tickets a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.happy-wc-tickets-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  vertical-align: middle;
  height: 1em;
  min-width: 1em;
  padding: 0 0.35em;
  margin-left: 0.4em;
  border-radius: 999px;
  background-color: #f8b4b4;
  color: #ffffff !important;
  font-size: inherit;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
