$primary-blue: rgb(0, 117, 255);
$primary-blue-60: rgba(0, 117, 255, 0.60);
$primary-blue-50: rgba(0, 117, 255, 0.50);
$primary-blue-20: rgba(0, 117, 255, 0.20);
$primary-blue-10: rgba(0, 117, 255, 0.10);
$primary-blue-7: rgba(0, 117, 255, 0.07);
$primary-blue-2: rgba(0, 117, 255, 0.02);
$primary-dark: rgb(16, 38, 64);
$primary-dark-50: rgba(16, 38, 64, 0.5);
$primary-dark-30: rgba(16, 38, 64, 0.3);
$primary-dark-15: rgba(16, 38, 64, 0.15);
$primary-dark-10: rgba(16, 38, 64, 0.10);
$primary-dark-5: rgba(16, 38, 64, 0.05);
$error-red: rgb(233, 31, 79);
$error-red-50: rgba(233, 31, 79, 0.5);
$error-red-10: rgba(233, 31, 79, 0.10);
$secondary-purple: rgb(108, 25, 173);
$secondary-purple-25: rgba($secondary-purple, 0.25);
$secondary-purple-10: rgba($secondary-purple, 0.10);
$secondary-purple-5: rgba($secondary-purple, 0.05);
$alert-yellow-50: rgba(255, 238, 88, 0.50);
$alert-yellow: rgb(255, 238, 88);
$benchmark-orange: rgb(245, 129, 21);
$benchmark-orange-50: rgba($benchmark-orange, 0.50);
$benchmark-orange-25: rgba($benchmark-orange, 0.25);
$benchmark-orange-10: rgba($benchmark-orange, 0.10);
$benchmark-orange-5: rgba($benchmark-orange, 0.05);
$action-green-dark: rgb(90, 131, 3);
$action-green: rgb(158, 206, 56);
$action-green-50: rgba($action-green, 0.5);
$action-green-25: rgba($action-green, 0.25);
$action-green-10: rgba($action-green, 0.10);
$action-green-5: rgba($action-green, 0.05);
$box-shadow: 5px 5px 30px 0 rgba(24, 45, 70, 0.05);
$background-color: #F6F9FB;

.mce-ico {
  &.mce-i-gh_replacements {
    font-family: 'dashicons';

    &::before {
      content: "\f110";
    }
  }

  &.mce-i-gh_saved_reply {
    font-family: 'dashicons';

    &::before {
      content: "\f473";
    }
  }

  &.mce-i-gh_post_merge_tags {
    font-family: 'dashicons';

    &::before {
      content: "\f109";
    }
  }

  &.mce-i-gh_task_template,
  &.mce-i-gh_note_template {
    font-family: 'dashicons';

    &::before {
      content: "\f121";
    }
  }
}

ul.styled {
  list-style: disc;
  padding-left: 20px;
}

.tablenav .gh-actions .action {
  margin: 1px 8px 0 0;
}

.progress-bar-wrap {
  width: 100%;
  background-color: #ddd;
  margin-top: 20px;
}

.progress-bar {
  width: 1%;
  padding: 7px;
  background-color: #4CAF50;
  box-sizing: border-box;
}

.full-width {
  width: 100%;
}

.progress-percentage {
  color: #FFFFFF;
  font-weight: 500;
}

input[type=range].slider {
  -webkit-appearance: none;
  width: 100%;
  margin: 6.8px 0;
}

input[type=range].slider:focus {
  outline: none;
}

input[type=range].slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 13.4px;
  cursor: pointer;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.03), 0px 0px 0px rgba(13, 13, 13, 0.03);
  background: #ffffff;
  border-radius: 3.1px;
  border: 1px solid #e5e5e5;
}

input[type=range].slider::-webkit-slider-thumb {
  box-shadow: 0.1px 0.1px 0px rgba(204, 204, 204, 0), 0px 0px 0.1px rgba(217, 217, 217, 0);
  border: 1px solid #cccccc;
  height: 27px;
  width: 14px;
  border-radius: 4px;
  background: #f7f7f7;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7.8px;
}

input[type=range].slider:focus::-webkit-slider-runnable-track {
  background: #ffffff;
}

input[type=range].slider::-moz-range-track {
  width: 100%;
  height: 13.4px;
  cursor: pointer;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.03), 0px 0px 0px rgba(13, 13, 13, 0.03);
  background: #ffffff;
  border-radius: 3.1px;
  border: 1px solid #e5e5e5;
}

input[type=range].slider::-moz-range-thumb {
  box-shadow: 0.1px 0.1px 0px rgba(204, 204, 204, 0), 0px 0px 0.1px rgba(217, 217, 217, 0);
  border: 1px solid #cccccc;
  height: 27px;
  width: 14px;
  border-radius: 4px;
  background: #f7f7f7;
  cursor: pointer;
}

input[type=range].slider::-ms-track {
  width: 100%;
  height: 13.4px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

input[type=range].slider::-ms-fill-lower {
  background: #f2f2f2;
  border: 1px solid #e5e5e5;
  border-radius: 6.2px;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.03), 0px 0px 0px rgba(13, 13, 13, 0.03);
}

input[type=range].slider::-ms-fill-upper {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6.2px;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.03), 0px 0px 0px rgba(13, 13, 13, 0.03);
}

input[type=range].slider::-ms-thumb {
  box-shadow: 0.1px 0.1px 0px rgba(204, 204, 204, 0), 0px 0px 0.1px rgba(217, 217, 217, 0);
  border: 1px solid #cccccc;
  height: 27px;
  width: 14px;
  border-radius: 4px;
  background: #f7f7f7;
  cursor: pointer;
  height: 13.4px;
}

input[type=range].slider:focus::-ms-fill-lower {
  background: #ffffff;
}

input[type=range].slider:focus::-ms-fill-upper {
  background: #ffffff;
}

.big-toggle.onoffswitch {
  width: 130px;
}

.onoffswitch {
  position: relative;
  width: 106px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.onoffswitch-checkbox {
  display: none !important;
}

.onoffswitch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid $primary-dark-50;
  border-radius: 5px;
  height: 100%;
  box-sizing: border-box;
}

.onoffswitch-inner {
  display: flex;
  align-items: center;
  width: 200%;
  margin-left: -100%;
  transition: margin 0.3s ease-in 0s;
  height: 100%;
  box-sizing: border-box;
}

.big-toggle .onoffswitch-inner:before,
.big-toggle .onoffswitch-inner:after {
  height: 40px;
  line-height: 34px;
  font-size: 18px;
}

.onoffswitch-inner:before, .onoffswitch-inner:after {
  display: block;
  float: left;
  width: 50%;
  line-height: 23px;
  padding: 0;
  font-size: 14px;
  color: white;
  box-sizing: border-box;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.onoffswitch-inner:before {
  content: "On";
  padding-left: 10px;
  background-color: #FFFFFF;
  color: #000000;
}

.onoffswitch-inner:after {
  content: "Off";
  padding-right: 10px;
  background-color: #FFFFFF;
  color: #666666;
  text-align: right;
}

.big-toggle .onoffswitch-switch {
  width: 34px;
  height: 40px;
  right: 94px;
}

.onoffswitch-switch {
  display: block;
  width: 24px;
  height: 100%;
  margin: 0;
  box-sizing: border-box;
  background: $error-red;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 82px;
  border-width: 1px;
  border-style: solid;
  transition: all 0.3s ease-in 0s;
  border-radius: 5px;
  /*box-shadow: 0 1px 0 #ccd0d4;*/
  //border-color: $action-green;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
  margin-left: 0;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
  right: 0px;
  background-color: $action-green;
  /*box-shadow: 0 1px 0 #006799;*/
  /*border-color: #0073aa #006799 #006799;*/
}

.gh-select2,
.gh-tag-picker,
.gh-single-tag-picker,
.gh-single-tag-picker,
.gh-email-picker,
.gh-sms-picker,
.gh-contact-picker,
.gh-benchmark-picker,
.gh-metakey-picker,
.gh-metakey-picker,
.select2-container {
  min-width: 200px;
  //max-width: 400px !important;
}

.select2-container .select2-search--inline .select2-search__field {
  min-height: 0;
  line-height: 1;
  width: initial !important;
  //padding-left: 10px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
  margin-bottom: 0;
  line-height: 1.4em;
  /*padding: 1px 3px 4px 3px;*/
}

.postbox .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  margin: 0 0 5px 0 !important;
}

a.danger {
  color: #a00;
}

a.danger:hover {
  color: #dc3232;
}

.wp-core-ui .button.danger {
  background-color: #a00;
  border-color: #a00;
  color: #FFFFFF;
}

.wp-core-ui .button.danger:hover {
  background-color: #dc3232;
  border-color: #dc3232;
  color: #FFFFFF;
}


#wpbody .big-button {
  position: relative;
  font-size: 16px;
  margin: 20px auto;
  padding: 8px 14px;
  height: auto;
}

#wpbody .big-button .dashicons {
  font-size: 24px;
  margin-right: 10px;
}

.nav-tab-wrapper a[href="?page=gh_help&tab=fb"] .dashicons {
  margin-right: 4px;
}

.post-box-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr 1fr;
}

@media only screen and (max-width: 800px) {
  .post-box-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 1300px) and (min-width: 800px) {
  .post-box-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (min-width: 1300px) and (max-width: 1800px) {
  .post-box-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media only screen and (min-width: 1800px) {
  .post-box-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.gh-tools-wrap {
  box-sizing: border-box;
  margin: 0;
  padding: 50px 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  top: 10px;
}

.gh-tools-wrap p.tools-help {
  color: #555d66;
  font-size: 18px;
  font-style: normal;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.5;
}

.gh-tools-box {
  background: #fff;
  border: 1px solid #ccd0d4;
  padding: 30px;
  margin: 30px auto;
  max-width: 380px;
}

.tools-left {
  float: left;
  width: 50%;
}

.tools-right {
  float: right;
  width: 50%;
}

.table-view-list.funnels{

  th#title {
    //width: 300px;
  }

  th#steps,
  td.steps.column-steps{
    //overflow: hidden;
    //width: 200px;
  }
}

table.wp-list-table.funnels th.column-active_contacts,
table.wp-list-table.funnels td.column-active_contacts {
  text-align: center;
}

table.wp-list-table {
  th {
    &#from_user {
      width: 10%;
    }

    &#stats,
    &#sending_to {
      width: 7%;
    }
  }
}

#wpbody .dash-button {
  padding: 0 5px 1px;
}

#wpbody .dash-button .dashicons {
  vertical-align: middle;
}

.import-table.tablenav,
.import-table.wp-list-table {
  max-width: 800px;
}

.import-table.wp-list-table th:first-child {
  width: 200px;
}

.import-table.wp-list-table th:last-child {
  width: 210px;
}

.import-table td .regular-text {
  width: 100%;
}

.export-table.wp-list-table {
  max-width: 600px;
}

.export-table.wp-list-table th:first-child {
  /*width: 50px;*/
}

.wp-admin .gh-file-uploader {
  width: 100%;
  margin: auto;
  padding: 10px !important;
  box-sizing: border-box;
  background: #F9F9F9;
  border: 2px dashed #e5e5e5;
  text-align: center;
  /*margin-top: 10px;*/
  margin-bottom: 3px;
}

.replacements-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.replacements-dropdown-wrap .dashicons {
  position: absolute;
  top: 5px;
  left: 6px;
}

.replacements-dropdown-wrap select {
  padding-left: 30px;
}

.wp-core-ui table td select {
  max-width: 100%;
}

.wp-list-table#updates-list th:first-child,
.wp-list-table#updates-list th:nth-child(2) {
  width: 100px;
}

label.block {
  display: block;
}

.picker-widget {
  /*display: flex;*/
  /*justify-content: space-between;*/
  background: #FFFFFF;
  border: 1px solid rgba(16, 38, 64, 0.15);
  /* box-shadow: 5px 5px 30px rgb(24 45 70 / 5%); */
  box-sizing: border-box;
  border-radius: 5px;
  position: fixed;
  box-shadow: 5px 5px 30px rgba(24, 45, 70, 0.05);
}

.picker-widget .search-bar {
  border-bottom: 1px solid rgba(16, 38, 64, 0.15);
  padding: 10px;
}

.picker-widget .search-bar input[type=search] {
  width: 100%;
}

.picker-widget .emojis,
.picker-widget .replacements {
  padding: 10px;
  max-height: 200px;
  overflow: auto;
}

.picker-widget .emojis {
  display: flex;
  flex-wrap: wrap;
  max-width: 400px;
  overflow-x: hidden;
  overflow-y: scroll;
  justify-content: flex-start;
}

.picker-widget .emoji-groups {
  padding: 8px 5px 0 5px;
  /*justify-content: space-between;*/
  border-bottom: 1px solid rgba(16, 38, 64, 0.15);
  /*flex-wrap: nowrap;*/
}

.picker-widget .emoji-groups .emoji-group {
  border-width: 1px 1px 0 1px;
  border-color: rgba(16, 38, 64, 0.15);
  border-style: solid;
  display: inline-block;
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: center;*/
  border-radius: 3px 3px 0 0;
  margin: 0 2px;
  font-size: 20px;
  padding: 4px 2px 2px 2px;
  height: 22px;
  text-align: center;
  background: #f9f9f9;
  cursor: pointer;
}

.picker-widget .emoji-groups .emoji-group.focused {
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  background: #FFFFFF;
}

.picker-widget .replacements .group {
  font-weight: 500;
}

.picker-widget .replacements .replacement {
  padding-left: 10px;
  cursor: pointer;
}

.picker-widget .emojis .emoji:hover,
.picker-widget .replacements .replacement:hover,
.picker-widget .replacements .replacement.focused {
  background: #0075FF;
  color: #FFFFFF;
}

.picker-widget .emojis .emoji {
  font-size: 17px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  overflow: hidden;
}

label.gh-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 20px;
  padding: 0 !important;
  flex-shrink: 0;

  input {
    opacity: 0;
    width: 0;
    height: 0;
    display: none;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;

    &:before {
      position: absolute;
      content: "";
      height: 16px;
      width: 16px;
      left: 2px;
      bottom: 2px;
      background-color: white;
      -webkit-transition: .4s;
      transition: .4s;
    }

    &.round {
      border-radius: 34px;

      &:before {
        border-radius: 50%;
      }
    }
  }

  input:checked + .slider {
    background-color: #2196F3;
  }

  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }

  input:disabled + .slider {
    opacity: 0.5;
  }

  input:checked + .slider:before {
    -webkit-transform: translateX(30px);
    -ms-transform: translateX(30px);
    transform: translateX(30px);
  }

  span {

    &.on,
    &.off {
      font-weight: 500;
      color: white;
      position: absolute;
      transform: translateY(-50%);
      top: 50%;
      font-size: 10px;
      font-family: Verdana, sans-serif;
    }

    &.on {
      display: none;
      left: 7px
    }

    &.off {
      right: 7px;
    }

  }

  input:checked ~ span.on {
    display: block;
  }

  input:checked ~ span.off {
    display: none;
  }

}


.big-number {
  font-size: 52px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;

  &:hover {
    color: $primary-blue;
    //text-decoration: underline;
  }
}

.report-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;

  .full {
    grid-column: span 4;

    p{
      font-size: 18px;
    }
  }

  .add-new-report{
    background-color: $primary-dark-5;
    border: none;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;

    &:hover{
      background-color: $primary-dark-15;
    }
  }

  .report-placeholder {

    &.header {
      grid-column: span 4;
    }

    &.table,
    &.pie_chart {
      grid-column: span 2;
      grid-row: span 2;
    }

    background-color: $primary-dark-15;
    border-radius: 5px;
  }


  .report {
    &.header {
      grid-column: span 4;
      display: flex;
      gap: 10px;
      padding: 20px 0 0 0;
      align-items: center;

      h2 {
        margin: 0;
        font-size: 36px;
      }
    }

    &.table,
    &.pie_chart {
      grid-column: span 2;
      grid-row: span 2;

      .number-total {
        font-weight: bold;
        cursor: pointer;

        &:hover {
          color: $primary-blue;
        }
      }
    }

    h2 {
      cursor: move;
    }

    .report-more {
      visibility: hidden;
    }

    &:hover {
      .report-more {
        visibility: visible;
      }
    }
  }
}

@media only screen and (max-width: 600px) {
  .report-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (min-width: 600px) and (max-width: 800px) {
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (min-width: 800px) and (max-width: 1000px) {
  .report-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media only screen and (min-width: 1000px) {
  .report-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.gh-header.admin-header {
  padding: 0 10px 0 0;
  border-bottom: 1px solid $primary-dark;
  margin-left: -20px;

  .logo {
    box-sizing: border-box;
    width: 60px;
    background: $primary-dark;
    padding: 5px 10px;
  }
}

.gh-has-notifications {

  position: relative;

  &::after {
    content: '0';
    position: absolute;
    right: 0;
    bottom: 0;
    background: $benchmark-orange;
    color: white;
    border-radius: 50%;
    //padding: 5px;
    width: 15px;
    height: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


@mixin filters {
  padding: 20px;
  border: 1px solid $secondary-purple;
  border-radius: 10px;
  position: relative;
  margin-top: 20px;
}

@mixin filter-tag {
  position: absolute;
  transform: translateY(-50%);
  background-color: $secondary-purple;
  left: 20px;
  top: 0;
  padding: 3px 8px;
  color: white;
  border-radius: 5px;
  width: max-content;
}

.include-search-filters,
#funnel-include-filters,
#broadcast-include-filters,
#block-include-filters,
#filters-here {

  @include filters();

  &::after {
    content: 'Include';
    @include filter-tag();

  }
}

.exclude-search-filters,
#funnel-exclude-filters,
#broadcast-exclude-filters,
#block-exclude-filters,
#exclude-filters-here {
  @include filters();

  &::after {
    content: 'Exclude';
    @include filter-tag();
  }
}


.gh-email-preview-modal {
  .email-preview {
    height: 100%;

    iframe {
      height: 100%;
    }
  }
}

.email-preview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;

  iframe {
    width: 100%;
  }
}

.from-preview {
  padding: 20px;
  position: relative;

  h2 {
    margin: 0 0 10px 0;
  }

  .from-email {
    opacity: 0.7;
  }
}

#funnel-scheduler,
#broadcast-scheduler {
  p {
    margin: 0;
    font-size: 16px;
  }
}

.email-log-modal {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 640px;

  .email-preview {

    border: 1px solid $primary-dark-15;

    iframe {
      height: 500px;
      width: 100%;
      //width: 600px;
    }
  }


  p {
    font-size: 18px;
  }

  p, pre, h2 {
    margin: 0;
  }

  .email-log-item-headers {

    width: 100%;
    overflow: auto;

    table {

      th {
        text-align: left;
        width: 100px;
      }

      pre {
        margin: 0;
      }
    }
  }
}

#table-filters {
  margin-top: 10px;
}

.gh-fixed-ui {
  position: fixed;
  left: 160px;
  top: 32px;
  bottom: 0;
  right: 0;

  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
}

@media only screen and (max-width: 960px) {
  .auto-fold .gh-fixed-ui {
    left: 36px !important;
  }

}

.folded .gh-fixed-ui {
  left: 36px !important;
}

body.gh-full-screen {
  .gh-fixed-ui {
    height: auto;
    max-height: 100%;
    left: 0 !important;
    top: 0 !important;
  }

  /* Full Screen */
  #adminmenumain,
  #wpfooter,
  #wpadminbar {
    display: none !important;
  }
}

#api-docs {

  background-color: $background-color;

  .gh-header {
    padding: 0 10px 0 0;
    border-radius: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    z-index: 100;

    > svg {
      height: 60px;
      padding: 10px;
      box-sizing: border-box;
      //border-right: 1px solid #ccd0d4;
      flex-shrink: 0;
      background-color: $primary-dark;
    }
  }

  code {
    border-radius: 4px;

    &.get {
      background-color: $action-green;
      color: #fff;

    }

    &.post, &.patch {
      background-color: $primary-blue;
      color: #fff;

    }

    &.delete {
      background-color: $error-red;
      color: #fff;

    }
  }

  nav {

    width: 220px;
    flex-shrink: 0;
    overflow: auto;

    a {
      text-decoration: none;
      font-size: 14px;
      padding: 8px 16px 8px 12px;
      color: $primary-dark;
      display: flex;
      gap: 10px;
      align-items: center;
    }

    ul, li {
      margin: 0;
    }

    > ul > li > a {
      font-weight: 600;
    }

    li.current > a {
      background-color: $primary-dark-15;
    }

    li.current li.current > a {
      background-color: $primary-dark-50;
      color: #FFF;
    }

    li.current > ul a {
      padding-left: 24px;
      //display: none;
    }

    li:not(.current) > ul {
      display: none;
    }
  }

  #docs-ui {
    height: calc(100% - 60px);
  }

  #endpoint-display {
    padding: 20px;
    background-color: #fff;
    overflow: auto;

    p, li, a {
      font-size: 14px;
    }

    .parameter {
      padding: 10px 0;
      border-top: 1px solid $primary-dark-15;
    }

    code.param {
      background-color: transparent;
      padding: 0;
    }

    .gh-panel.outlined {
      .parameter:first-of-type {
        border-top: none;
      }

      .parameter {
        padding-left: 20px;
        padding-right: 20px;
      }
    }
  }

  pre {
    padding: 10px;
    margin: 0;
    overflow: auto;

    &:not(.light) {
      color: #fff;
      background-color: $primary-dark;

      a {
        color: #fff;
      }
    }

    a {
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  #request-display {
    width: 400px;
    flex-shrink: 0;
    padding: 20px;
    //display: flex;
    //flex-direction: column;
    //gap: 10px;
    overflow: auto;

    h2 {
      margin: 0;
    }
  }
}

.table-scroll {
  overflow-x: auto;
}

.gh-block-edit-restricted-content {
  outline: 1px solid $secondary-purple;
  position: relative;

  .filters-enabled {
    cursor: pointer;
    background-color: $secondary-purple;
    color: #fff;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    height: 22px;
    width: 22px;
    border-bottom-left-radius: 5px;
    padding: 2px;
  }
}

.funnel-preview{

  display: inline-flex;
  align-items: center;
  //flex-wrap: wrap;
  //row-gap: 2px;

  div.step-preview {
    white-space: nowrap;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: stretch;
    align-items: stretch;

    &:not(:first-child) {
      margin-left: -10px;
    }

    div.step-icon {
      background-color: #fff;
      background-image: linear-gradient(var(--color-5), var(--color-5));
      border: 2px solid var(--color);
      padding: 3px;
      aspect-ratio: 1 / 1;

      svg {
        fill: var(--color);
        width: 100%;
        height: 100%;
      }

      &.more {
        background-color: #fff;
        border-radius: 20px;
        padding: 4px;
        border: 2px solid $primary-dark;
      }

      &.action {
        --color: #{$action-green};
        --color-25: #{$action-green-25};
        --color-5: #{$action-green-5};
        border-radius: 5px;
      }

      &.benchmark {
        --color: #{$benchmark-orange};
        --color-25: #{$benchmark-orange-25};
        --color-5: #{$benchmark-orange-5};
        border-radius: 50%;
      }

      &.logic {
        --color: #{$secondary-purple};
        --color-25: #{$secondary-purple-25};
        --color-5: #{$secondary-purple-5};

        border-radius: 3px;
        transform: rotate(45deg) scale(0.8);

        .gh-tooltip,
        svg {
          transform: rotate(-45deg);
        }
      }

      svg,
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}

#wpbody-content:has(.gh-header.admin-page-header):has(#show-settings-link) {
  .wrap {
    margin-top: 40px;
  }
}

.groundhogg-admin-page .gh-header + h2.gh-nav {
  margin: 0 0 0 -20px !important;
  padding: 10px 0 0 20px !important;
  background-color: #fff;
}

.gh-site {

  /* Darks */
  --color-dark-800: #212121;
  --color-dark-900: #0f181e;

  /* Gray */
  --color-gray-50: #fafafa;
  --color-gray-100: #e0e0e0;

  /* Browns */
  --color-brown-50: #fffcf1;
  --color-brown-75: #fffcf1;
  --color-brown-100: #fff5da;
  --color-brown-200: #ffefb0;
  --color-brown-300: #f7dd96;
  --color-brown-400: #cfa756;
  --color-brown-500: #9e743e;

  /* Oranges */
  --color-orange-700: #ff9431;
  --color-orange-900: #ff7b01;

  /* Reds */
  --color-red-200: #f2c3c6;
  --color-red-700: #DD2A37;
  --color-red-900: #CA2000;

  /* Various */
  --color-footer: #1F1A22;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-yellow: #ffca00;
  --color-green-100: #dce9d5;
  --color-green-400: #9FCA8F;
  --color-green-500: #80BA6D;
  --color-green-600: #61AA4A;
  --color-green-900: #248B04;
  --color-slate: #455A64;

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 16px;
  }

  a {
    color: var(--color-orange-900);
    text-decoration: none;
  }

  .bold {
    font-weight: bold;
  }

  .gh-primary-card {
    //padding: 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--color-brown-200);
    border-style: solid;
    border-width: 1px;
    border-right-width: 3px;
    border-bottom-width: 3px;
    border-color: var(--color-dark-800);
  }

  .gh-site-button {
    border-radius: 0.75rem;
    border-style: solid;
    border-width: 1px;
    border-right-width: 3px;
    border-bottom-width: 3px;
    border-color: var(--color-dark-800);
    text-transform: uppercase;
    padding: 0.625rem 1.25rem;

    &.primary {
      background-color: var(--color-yellow);
    }
  }

  .gh-secondary-card {
    //padding: 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--color-brown-50);
    border-style: solid;
    border-width: 1px;
    border-right-width: 3px;
    border-bottom-width: 3px;
    border-color: var(--color-dark-800);
  }
}

.tour-prompt {
  background: #fff;
  border-radius: 10px;
  z-index: 1000;
  border: 1px solid $primary-dark;
  //box-shadow: 0 0 100px $primary-dark;
  box-sizing: border-box;
  font-size: 16px;

  button.dismiss {
    position: absolute;
    top: 2px;
    right: 2px;
    border: none;
    background: transparent;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
  }

  .gh-text {
    font-weight: 500;
  }

  &.right {
    border-top-left-radius: 0;
  }

  &.left {
    border-top-right-radius: 0;
  }

  &.above {

    border-bottom-left-radius: 0;
  }

  &.below {
    border-top-left-radius: 0;
  }

  &.below-left {
    border-top-right-radius: 0;
  }
}

.cursor-pointer {
  cursor: pointer;
}

.tour-window {
  z-index: 98 !important;
  position: fixed;
  border-style: solid;
  border-color: $primary-dark-15;
  border-radius: 10px;
  background: transparent;
  top: 0;
  //right: 0;
  left: 0;
  //bottom: 0;

  .tour-window-shadow {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 200px 100px $primary-dark !important;
    background: transparent;
  }
}

.tour-highlighted {
  z-index: 99 !important;
  position: relative;

  --gap: -10px;

  &::after {
    content: "";
    position: absolute;
    top: var(--gap);
    left: var(--gap);
    right: var(--gap);
    bottom: var(--gap);
    background: transparent;
    box-shadow: 0 0 200px 100px $primary-dark !important;
    //z-index: -1;
    border-radius: 10px;
  }
}

[data-gh-href]{
  cursor: pointer;
}

.gh-checkbox-label:has(input.gh-checkbox-toggle) {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.number-of {
  position: absolute;
  transform: translate(50%,-50%);
  top: 0;
  right: 0;
  font-size: 11px;
  aspect-ratio: 1/1;
  line-height: 1;
  background-color: $primary-dark;
  color: #FFF;
  border-radius: 50%;
  width: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
