@import "../global-sass/_index";

$blue: #32adbc;
$blue2: #31aebe;
$blue_bg: #F5F7FA;
$light_red: #f46368;

$black: #25282B;

#adminmenu #toplevel_page_opinionstage-settings .wp-menu-image  img {
  padding-top: 6px;
}

#opinionstage-content {
  height: auto;
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  padding-top: 20px;
  width: 100%;

  .opinionstage-header-wrapper {
    background: #232121;
    overflow: hidden;
    position: relative;
  }

  .opinionstage-connect-form {
    display: inline-block;
  }

  a.opinionstage-blue-bordered-btn {
    border: 1px solid $blue;
    border-radius: 2px;
    color: $blue;
    display: block;
    padding: 10px 5px;
    text-align: center;
    text-decoration: none;
  }

  .opinionstage-dashboard-right a.opinionstage-blue-bordered-btn {
    float: left;
    margin-right: 5px;
  }

  a.opinionstage-blue-bordered-btn.disabled {
    color: #cacac8;
    border: 1px solid #cacac8;

    &:hover {
      background-color: #f9f9f9;
      color: #cacac8;
      cursor: default;
    }
  }
  .opinionstage-dashboard {
    background-color: #fff;
    margin-right: 20px;
    min-height: 800px;
    overflow: hidden;
  }

  .opinionstage-dashboard-left {
    margin: 30px;
    .opinionstage-section-header .opinionstage-section-title {
      float: left;
      font-size: 30px;
      padding: 0;
      line-height: 1;
    }
  }

  #opinionstage-section-create {
    @media(min-width: 1300px) {
      margin-left: 100px;
    }
    
    .opinionstage-section-content {
      height: 435px;
      display: table;
      border-collapse: collapse;
      width: 100%;
      max-width: 780px;
    }

    .opinionstage-section-raw {
      border-bottom: 1px solid #c8c8c9;
      display: table-row;
      border-left: none;
      border-right: none;
    }

    .opinionstage-section-cell {
      display: table-cell;
      padding: 12px 0;
      vertical-align: middle;

      &.opinionstage-icon-cell {
        color: #3499c2;
        font-size: 35px;
        text-align: center;
        width: 7%;
      }

      &.opinionstage-btn-cell {
        text-align: right;
        width: 36%;
        a:last-child {
          margin-right: 0;
        }
        
        .opinionstage-button:nth-child(1) {
          margin-right: 5px;
        }
      }

      &.opinionstage-description-cell {
        width: 57%;
        vertical-align: top;

        .title {
          font-size: 20px;
          font-weight: 600;
          margin-bottom: 10px;
          color: #000;
          text-decoration: none;
        }

        .example {
          color: #000;
          opacity: .6;
          font-size: 14px;
          line-height: normal;
        }
      }
    }

    .os-icon-plugin {
      margin-right: 12px;
      img {
        max-width: 116px;
      }
    }
  }

  .opinionstage-help-row {
    border-bottom: 1px solid #F2F2F2;
    margin: 0 10px;
    padding: 25px 0 25px 10px;
    &:last-child {
      border-bottom: none;
    }
  }

  .content__list {
    overflow-y: visible;
    height: auto;
    min-height: calc(92vh - 160px);
    
  }
  
  .opinionstage-trusted {
    text-align: center;
    font-size: 18px;
    line-height: 50px;
    color: #000;
    font-weight: 400;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    span {
      color: #000;
    }
  }
}

#opinionstage-content,
.opinionstage-sidebar-widget {
  a.opinionstage-blue-bordered-btn {
    :hover {
      background-color: rgba(49,174,190,0.1);
    }
    &:focus {
      box-shadow: none;
    }
  }
}


p.failed-load-items-request {
  text-align: center;
  font-size: 16px;
  padding: 15px 0;
  max-width: 1000px;
}

body {
  &.toplevel_page_opinionstage-getting-started,
  &.opinion-stage_page_opinionstage-help-resource,
  &.toplevel_page_opinionstage-settings {
    background-color: #fff;
    #wpcontent {
      padding-left: 0;
    }
  }
}

.opinionstage-getting-started-section {
  padding: 25px;
  max-width: 1211px;
  color: #6E6E6E;
  margin-left: auto;
  margin-right: auto;

  @media (max-width: 1024px) {
    margin-left: 30px;
  }
  @media (max-width: 768px) {
    margin-left: 0;
  }

  &__trusted {
    max-width: 1044px;
    padding-bottom: 10px;
  }

  .opinionstage-connect-form .opinionstage-button {
    font-weight: 500;
    font-size: 18px;
  }
  
  .opinionstage-logo {
    margin-left: 25px;
    margin-top: 25px;
  }

  .opinionstage-button {
    margin-right: 12px;
    font-size: 18px;
    min-width: 165px;
  }
  .opinionstage-clients {
    display: flex;
    justify-content: space-between;
    @media (max-width: 991px) {
      flex-wrap: wrap;
    }

    li {
      display: flex;
      @media (max-width: 991px) {
        width: 25%;
      }
      @media (max-width: 600px) {
        width: 50%;
      }
    }
    img {
      margin-top: auto;
      margin-bottom: auto;
      @media (max-width: 991px) {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 15px;
      }
    }
  }
}

.opinionstage-two-columns {
  color: #6E6E6E;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 1px;
  margin-top: 37px;
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  @media (max-width: 991px) {
    margin-top: 0;
    text-align: center;
  }

  &__title {
    font-size: 50px;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 25px;
  }
  &__text {
    width: 47%;
    @media (max-width: 991px) {
      width: 100%;
      margin-bottom: 55px;
    }
    
    p {
      color: $black;
      font-size: 18px;
      margin-bottom: 22px;
      line-height: 1.67;
    }
  }
  &__img {
    padding-left: 15px;
    width: 53%;
    box-sizing: border-box;
    @media (max-width: 991px) {
      width: 100%;
    }
    
    img {
      width: 100%;
    }
  }
}

.opinionstage-connectivity-status {
  display: flex;
  align-items: center;
  .opinionstage-button {
    margin-right: 0;
    margin-left: 15px;
    font-size: 15px;
    padding: 8px 12px;
    min-width: auto;
  }
}

.opinionstage-bg-white {
  background: #fff;
}
.opinionstage-getting-started-examples {
  max-width: 928px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 9px;
  &__title {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    text-align: center;
    font-weight: 600;
    font-size: 40px;
    line-height: 60px;
    margin-top: 25px;
    margin-bottom: 29px;
    @media (max-width: 500px) {
      text-align: left;
    }
  }  
  &__items {
    display: flex;
    justify-content: space-between;
    
    @media (max-width: 500px) {
      flex-direction: column;
    }
  }
  
  &__item__title {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 10px;
  }
  &__list {
    font-size: 15px;
    line-height: 30px;
    margin-top: 0;
    li {
      margin-bottom: 3px;
    }
    a {
      font-size: 18px;
      color: $black;
      font-family: 'Poppins', Helvetica, Arial, sans-serif;
    }
  }
}

.opinionstage-getting-started-video {
  display: flex;
  flex-direction: column;
  
  .opinionstage-getting-started-examples__title {
    margin-top: 75px;
  } 
  
  &__description {
    text-align: center;
    font-size: 18px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 23px;
    color: #25282B;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
  }

  &__iframe {
    max-width: 750px;
    width: 100%;
    margin: 30px auto 60px;
    box-sizing: border-box;
    border: 20px solid #fff;
    //box-shadow: 5px 5px rgba(0, 0, 0, 0.04);
    > div {
      position: relative;
      padding-top: 56.2%;
      width: 100%;
    }
    iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;

    }
  }
}


h1.gettingStartedHeading {
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 35px;
  margin: 0 auto;
  max-width: fit-content;
  width: 100%;
}

#opinionstage-content a.gettingStartedCreate.button {
  background: #3499c2;
  box-shadow: 0 0 0 0;
  color: #ffffff;
  display: block;
  font-size: 20px;
  height: auto;
  letter-spacing: 1px;
  margin-top: 20px;
  max-width: fit-content;
  padding: 11px 10px;
  width: 100%;
}

@media only screen and (max-width: 375px) {
  #opinionstage-content a.gettingStartedCreate.button {
    margin: 20px auto 0 !important;
  }
  .text-section-getting-stared-os p {
    text-align: left;
  }
}


.opinionstage-dashboard-left .os_use_template_btn {
  margin: 0;
  padding: 12px 15px !important;
}

/* My Items Page Css */
td.long {
  padding-left: 10px;
  width: 48%;
  > div {
    position: relative;
    width: 90%;
    height: 85px;
  }
  table {
    bottom: 0;
    color: #b1b1b1;
    line-height: normal;
    position: absolute;
    width: 100%;
    td {
      max-width: 300px;
    }
  }
  a {
    color: #212120;
    display: block;
    font-size: 16px;
    font-weight: normal;
    line-height: normal;
    max-height: 3.6em;
    max-width: 100%;
    overflow: hidden;
    position: absolute;
    text-decoration: none;
    text-overflow: ellipsis;
    word-wrap: break-word;
    white-space: nowrap;
  }
}


td.action {
  width: 30%;
  a.opinionstage-blue-bordered-btn {
    font-size: 15px;
    margin-right: 9px;
  }
}


span.os-icon-plugin.icon-os-common-date {
  float: left;
  margin-right: 4px;
}


.label {
  line-height: 15px;
}

.content-item-label {
  background-color: #222120;
  color: #fff;
  font-size: 12px;
  padding: 2px 4px;
}

a.opinionstage-blue-bordered-btn {
  float: left;
  margin-right: 5px;
  border: 1px solid #3aaebd;
  border-radius: 3px;
  color: #3aaebd;
  display: block;
  font-size: 14px;
  padding: 10px 30px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: .2s ease;
}

.content-item-label {
  background-color: #222120;
  color: white;
  font-size: 12px;
  left: 0;
  padding: 1px 5px;
  position: absolute;
  text-transform: uppercase;
  top: 0;
}

.opinionstage-section-header {
  font-size: 23px;
  height: 40px;
  overflow: visible;
}

.opinionstage-anchors-list {
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #e5e5e5;
  opacity: 0;
  visibility: hidden;
  transition: all .5s ease;
  margin-top: 17px;
  margin-bottom: 0;
  &.opened {
    opacity: 1;
    visibility: visible;
  }
  a {
    width: 100%;
  }
}

div#container .opinionstage-section-header {
  width: 100%;
}

.opinionstage-section-title {
  float: left;
  font-size: 30px;
  padding: 10px 0;
}

.opinionstage-need-help-link {
  float: right !important;
}

.opinionstage-section-header a {
  color: $blue;
  float: right;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  margin: 10px 25px;
  margin-right: 0;
  text-decoration: none;
}

.opinionstage-title {
  font-weight: bold;
}

#overlay {
  background-color: #fdfdfdc7;
  display: block;
  height: 100%;
  filter: alpha(opacity=70);
  opacity: 0.7;
  position: absolute;
  width: 100%;
  z-index: 100;
  top: 0;
}

.opinionstage-item-view-dashboard {
  margin: 30px;
  width: 1000px;
}

.opinionstage-header-inner-container {
  float: right;
  .select-wrapper {
    padding: 0 9px;
    display: inline-block;
    &:last-child {
      padding-right: 0;
    }
  }
  .opinionstage-header-inner-section {
    border-right: 1px solid #f3f3f3;
    float: left;
    padding-right: 4px;
  }
}

.opinionstage-header-inner-section a,
.os-long-text a {
  text-decoration: none;
}

.search-container {
  background-color: transparent;
  display: inline-block;
  width: 150px;
}

.opinionstage-section-header {
  #itemList {
    font-size: 12px;
    font-weight: bold;
    height: auto;
    padding: 10px;
    width: 100%;
  }
  #opinionstage-my-items-search-field {
    color: #797979;
    height: auto;
    padding: 8.5px 10px;
    width: 100%;
  }
}

.opinionstage-item-action-container {
  float: right;
  .opinionstage-edit-content {
    padding: 13px 17px !important;
  }
}

div#opinionstage-load-more {
  background-color: #f1f1f1;
  border-color: #f1f1f1;
  color: #444;
  margin: 0;
}

.opinionstage-item-view-dashboard #opinionstage-items-table {
  width: 100%;
  div.label {
    font-size: 13px;
  }
}

#opinionstage-content .opinionstage-item-view-dashboard .opinionstage-dashboard-section {
  margin-bottom: 5px;
}


/* my items page - modal form --start */

#opinionistage-my-items-page-modal-wrapper {
  display: none;
  position: fixed;
  height: 100%;
  width: 100%;
  bottom: 0;
  left: 0;
  border-radius: 6px / 6px;
  background-color: rgba(0, 0, 0, .8);
  z-index: 9999;
  user-select: none;
  font-size: 12px;
  .opinionstage-modal-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
  }
  
  .opinionistage-my-items-page-modal {
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    overflow: hidden;
    width: 390px;
    box-sizing: border-box;
    padding: 32px;
    font-size: 16px;
    a {
      &:focus {
        outline: none;
        box-shadow: none
      }
      &.no-text-decoration {
        text-decoration: none;
      }
    }

    p {
      font-size: 16px;
    }
    
    &__close-button {
      text-align: right;
    }
  }

  
  .opinionstage-copy-shortcode {
    display: flex;
    align-items: center;
    &__textarea {
      resize: none;
      margin: 10px 10px 10px 0;
      padding: 10px;
      width: 500px;
      border-radius: 8px;
      border-color: #F2F2F2;
      background: #F2F2F2;
      border-style: solid;
      color: #000;
    }
    
    &__button {
      
    }
  }
  
  .opinionstage-close {
    &:after {
      transform: rotate(-45deg);
    }
    &:before {
      transform: rotate(45deg);
    }
  }
  ul {
    margin-left: 17px;
    list-style: disc;
    li {
      margin-bottom: 18px;
    }
  }
}

.toplevel_page_opinionstage-settings .selected-draft__container {
  position: fixed !important;
}
/* my items page - modal form --end */

@media only screen and (max-width: 1230px) {
  #opinionstage-content {
    .opinionstage-dashboard-left,
    .opinionstage-dashboard-right {
      float: none;
      width: auto;
    }
    .opinionstage-dashboard {
      overflow-y: scroll;
    }

    .opinionstage-item-view-dashboard  {
      .opinionstage-section-header .opinionstage-section-title {
        padding: 25px 0;
      }
      .opinionstage-dashboard-section .opinionstage-section-header {
        height: 95px;
      }
    }
    .opinionstage-dashboard-section .opinionstage-section-header {
      .opinionstage-header-inner-section a {
        display: block;
        float: none;
      }
    }
    
  } // #opinionstage-content
  
  .opinionstage-create-btn {
    margin-bottom: 10px;
    margin-right: 0;
  }

  .opinionstage-item-action-container {
    float: none;
  }

  #opinionstage-items-table .action .opinionstage-item-action-container a {
    display: block;
    float: none;
    margin-bottom: 10px;
    width: 80%;
  }

  .opinionstage-item-view-dashboard {
    width: auto;
  }
}


.opinionstage-no-items {
  font-weight: 600;
  font-size: 15px;
  color: #212120;
}

a.opinionstage-add-our-first-item {
  font-weight: 600;
  font-size: 15px;
  color: #3499c2;
}


// Tutorials & Help --start

$breakdown_help_page: 720px;
#opinionstage-content {
  .opinionstage-tutorials-and-help {
    &__hero {
      padding: 28px 0 92px 0;

      @media(max-width: 720px) {
        padding-bottom: 0;
        background-color: #fff;
      }

      &__header {
        font-size: 45px;
        line-height: 54px;
        color: $black;
        text-align: center;
        margin: 0;
      }
    }

    &__buttons {
      margin-top: 40px;
      text-align: center;
      display: flex;
      justify-content: space-around;
    }

    &__container {
      max-width: 680px;
      margin-left: auto;
      margin-right: auto;
      @media(max-width: $breakdown_help_page) {
        padding-right: 20px;
      }
    }

    &__videos {
      margin-top: 20px;
      .opinionstage-getting-started-video__iframe {
        max-width: 790px;
        margin-bottom: 0;
        margin-top: 25px;
      }
    }
    &__video {
      text-align: center;
      
      &__title {
        font-size: 27px;
        line-height: 35px;
        text-align: center;
        margin-top: 47px;
        font-weight: 400;
        margin-bottom: 0;
        
        &__link {
          text-decoration-color: $black;
        }

        @media(max-width: $breakdown_help_page) {
          //margin-top: 40px;
          //margin-bottom: 30px;
          font-size: 24px;
          line-height: 28px;
        }
      }
    }
  }
}

// Tutorials & Help --end