// Styles for Ultimeter Admin pages

// Ultimeter colors

$orange: #f6a500;
$enterprise :#4f4e77;

// Small tablets and large smartphones (landscape view)
$screen-sm-min: 600px;

// Small tablets (portrait view)
$screen-md-min: 782px;

// Tablets and small desktops
$screen-lg-min: 992px;

// Large tablets and desktops
$screen-xl-min: 1200px;

// Small devices only
@mixin so {
  @media (max-width: #{$screen-sm-min}) {
    @content;
  }
}

// Small devices
@mixin sm {
  @media (min-width: #{$screen-sm-min}) {
    @content;
  }
}

// Medium devices down
@mixin mo {
  @media (max-width: #{$screen-md-min}) {
    @content;
  }
}

// Medium devices
@mixin md {
  @media (min-width: #{$screen-md-min}) {
    @content;
  }
}

// Large devices
@mixin lg {
  @media (min-width: #{$screen-lg-min}) {
    @content;
  }
}

// Extra large devices
@mixin xl {
  @media (min-width: #{$screen-xl-min}) {
    @content;
  }
}

// Custom devices
@mixin rwd($screen) {
  @media (min-width: $screen+'px') {
    @content;
  }
}

// Metabox sizing
@mixin meta {
  @media (max-width: 550px), only screen and (min-width: 851px) and (max-width: 1025px) {
    @content;
  }
}

/** Start 20203 Rebuild ***********************************************************************************************/

.csf-field-select {
  .chosen-container {
    width: 50% !important;
  }
}

.csf-field-group .csf-cloneable-header-icon {
  vertical-align: unset;
}

.csf-field-group .csf-cloneable-wrapper {
  margin-bottom: 20px;
}

.progressbar {
  .csf--image {
    width: 300px;
  }
}

.csf-field-connected_image_select, .csf-field-image_select_style_packs {

  .csf--image-group {
    display: flex;
  }

  .csf--image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px 5px 0;
    padding: 15px;

    &.csf--free {
      opacity: 0.25;

      figure {
        cursor: auto;
      }
    }

    figure {
      cursor: pointer;
      position: relative;
      display: inline-block;
      max-width: 100%;
      margin: 0;
      vertical-align: bottom;
      border: 2px solid transparent;
      background-color: #fff;
      user-select: none;
      transition: all 0.2s;

      &:before {
        position: absolute;
        top: 0;
        left: 0;
        text-align: center;
        font-size: 10px;
        font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome";
        font-weight: 900;
        content: "\f00c";
        width: 16px;
        height: 16px;
        line-height: 14px;
        opacity: 0;
        color: #fff;
        background-color: #222;
        transition: opacity 0.2s;
      }
    }

    &.csf--active {
      figure {
        border-color: #222;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);

        &:before {
          opacity: 1;
        }
      }
    }

    img {
      max-width: 100%;
      height: auto;
      vertical-align: top;
    }

    input {
      display: none;
    }
  }
}

.csf-field-connected_image_select {
  .csf-connected-image-select-group-container {
    display: flex;
    flex-direction: column;

    .csf-connected-image-select-group {
      position: relative;
      margin: 2.5px 0;

      h4 {
        font-size: 1em;
      }

      .csf-connected-image-select-group-title {
        display: block;
        cursor: pointer;
        position: relative;
        margin: 0;
        padding: 15px;
        min-height: 0;
        font-size: 100%;
        user-select: none;
        border: 1px solid #ccd0d4;
        background-color: #fafafa;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
        transition: border-color 0.15s;

        &:active, &:hover, &:focus {
          outline: none;
          border-color: #999;
        }

        .csf--icon {
          width: 20px;
          text-align: center;
          margin-right: 2px;
        }

        .csf-set-icon {
          width: 16px;
          text-align: center;
        }
      }

      .csf-connected-image-select-group-content {
        display: none;
        padding: 0;
        border: 1px solid #ccd0d4;
        border-top: none;
        background-color: #fff;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);

        &.csf-connected-image-select-group-content-open {
          display: flex;
        }
      }
    }
  }
}

/** End 2023 Rebuild **************************************************************************************************/

.panelpush {
  margin-left: 200px;
}

.ultimeter-shortcode-button, .ultimeter-duplicate-button {

  width: 136px;

  .dashicons {
    font-size: 16px;
    width: 16px;
    vertical-align: middle;
    color: #909090;
    margin-right: 2px;
  }

  .dashicons-yes {
    color: green;
  }

  &:hover {
    color: #555;

    .dashicons {
      color: #555;
    }
  }

  &:after {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
    text-shadow: none;
  }
}

.ultimeter-ID {
  span {
    &:before {
      font: normal 20px/1 dashicons;
      speak: never;
      display: inline-block;
      margin-left: -1px;
      padding-right: 3px;
      vertical-align: top;
      -webkit-font-smoothing: antialiased;
      content: '\f323';
      position: relative;
      top: -1px;
      color: #82878c;
    }
  }
}

.post-type-ultimeter {

  #wpcontent {
    padding: 0;
  }

  #wpbody {


    color: #000;
    padding-left: 20px;
    position: relative;

    &:after {
      content: "";
      background-color: #fff;
      border-bottom: 1px solid #dbdbdb;
      height: 72px;
      left: 0;
      top: 46px;
      position: absolute;
      width: 100%;
      z-index: -1;

      @include sm {
        top: 0;
      }
    }

    @include so {
      #screen-meta-links {
        display: none;
      }
    }
  }

  .wp-heading-inline {

    padding: 10px 0px;

    &:before {
      background: url(../images/icon.svg);
      width: 30px;
      height: 30px;
      content: " ";
      display: block;
      float: left;
      margin-right: 12px;
      background-repeat: no-repeat;
      background-size: contain;
    }

  }

  .wp-header-end {

    margin-top: 15px;
  }

  .wrap {

    @include mo {
      clear: none;
    }

  }

  &.ultimeter_page_ultimeter-account {
    #wpbody {
      &:after {
        display: none;

        @include sm {
          top: 0;
        }
      }
    }
  }

  &.ultimeter_page_ultimeter-pricing {
    #wpbody {
      &:after {
        display: none;

        @include sm {
          top: 0;
        }
      }
    }
  }

  &.ultimeter_page_ultimeter-contact {
    #wpbody {
      &:after {
        display: none;

        @include sm {
          top: 0;
        }
      }
    }
  }

  &.ultimeter_page_ultimeter-support {
    #wpbody {
      &:after {
        display: none;

        @include sm {
          top: 0;
        }
      }
    }
  }

  &.ultimeter_page_ultimeter-addons {
    #wpbody {
      &:after {
        display: none;

        @include sm {
          top: 0;
        }
      }
    }
  }
}

/* Style the notice dismiss button */

.ultimeter-notice {
  position: relative;
  padding-right: 30px;
}

.ultimeter-notice-dismiss {

  position: absolute;
  top: 0;
  right: 1px;
  border: none;
  margin: 0;
  padding: 9px;
  background: 0 0;
  color: #72777c;
  cursor: pointer;

  &:before {

    background: 0 0;
    color: #72777c;
    content: "\f153";
    display: block;
    font: normal 16px/20px dashicons;
    speak: none;
    height: 20px;
    text-align: center;
    width: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

}

// Style the blank slate screen

.ultimeter-blank-slate {

  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  margin: 0 auto;
  padding: 40px;
  text-align: center;

  .ultimeter-blank-slate-image {
    display: block;
    height: 80px !important;
    margin: 0 auto 10px;
    width: auto;
  }

  .ultimeter-blank-slate-heading {
    margin: 0 0 10px;
  }

  .ultimeter-blank-slate-cta {
    display: inline-block;
    font-size: 1.2em;
    height: auto;
    margin: 0 0 10px;
    padding: .75em 1.5em;
  }

  .ultimeter-blank-slate-help {
    color: #666;
    font-style: italic;
  }
}

// Style links to our documentation

.ultimeter-docs-link {
  text-align: right;
  margin-right: 15px;

  a {
    color: #606060;
    text-decoration: none;
    font-style: italic;

    span {
      font-style: normal;
    }
  }
}

// Style the main metabox

#configure-ultimeter .inside {
  margin: 0;
  padding: 0;
}

#configure-ultimeter .ultimeter-metabox-panel-wrap {
  background: #fff;
  overflow: hidden;
}

#configure-ultimeter .ultimeter-metabox-tabs {

  margin: 0;
  max-width: 170px;
  float: left;
  line-height: 1em;
  padding: 0 0 10px;
  position: relative;
  background-color: #fafafa;
  border-right: 1px solid #eee;
  box-sizing: border-box;

  &:after {
    content: "";
    display: block;
    width: 100%;
    height: 9999em;
    position: absolute;
    bottom: -9999em;
    left: 0;
    background-color: #fafafa;
    border-right: 1px solid #eee;
  }

  li {
    margin: 0;
    padding: 0;
    display: block;
    position: relative;

    .ultimeter-icon {

      svg {
        vertical-align: middle;
        margin-right: 10px;

        path, rect, line {
          &:not(.givewp-icon) {

            fill: $orange;
          }
        }

        @include meta {

          margin-right: 0px;
        }
      }

      @include meta {

        &:before {

          margin: 0;
        }
      }
    }

    a {
      margin: 0;
      padding: 10px;
      display: block;
      box-shadow: none;
      text-decoration: none;
      line-height: 20px !important;
      border-bottom: 1px solid #eee;
      overflow: hidden;

      @include meta {

        text-align: center;

        &:before {

          margin-right: 0;
          font-size: 15px;
        }
      }

      span.ultimeter-label {
        width: 114px;
        display: inline-block;

        @include meta {

          display: none;
        }
      }
    }
  }

  @include meta {

    min-width: 40px;
  }

  .ultimeter-metabox-message {
    padding: 10px;
    color: #0073aa;

    p {
      line-height: 1.4;
      margin: 0px;
      font-weight: 700;
    }
  }

}

#configure-ultimeter .ultimeter_options_panel {

  padding-left: 170px;

  @include meta {
    padding-left: 40px;
  }

  label span.ultimeter-pro-text {
    color: $orange;
    font-style: italic;

    a {
      text-decoration: none;
      color: inherit;
      cursor: pointer;

      &:hover {
        font-weight: bold;
      }
    }
  }

  .ultimeter-inline-radio-fields {

    li {
      display: inline-block;
      margin-right: 15px;
    }
  }

  .ultimeter-radios {
    li {
      label {
        input {
          margin-right: 10px;
        }
      }
    }
  }

  .ultimeter-textarea {
    width: 100%;
  }

  .ultimeter-field-wrap {
    padding: 1em 20px 1em 162px;
    margin: 0;
    border-bottom: 1px solid #eee;

    .ultimeter-integration-logo {
      max-width: 200px;
      margin-bottom: 20px;
    }

    &.unborder {
      border-bottom: 0px;

    }

    &.fieldset-header {
      margin-bottom: 20px;

      h4 {
        margin-top: 0px;
      }
    }


    @include meta {

      padding: 10px;
    }

    ul {
      margin: 0;
    }

    .ultimeter-field-description {
      color: #aaa;
      font-size: 12px;
      line-height: 18px;
      display: block;
      padding-top: 10px;
      font-style: italic;
    }

    > span.ultimeter-field-label {

      img {
        max-width: 135px;
      }

      @include meta {

        display: block;
        float: none;
        margin: 0 0 10px;
        font-size: 14px;
        width: 100%;
      }

      float: left;
      width: 135px;
      padding: 0;
      margin: 2px 0 0 -150px;
      line-height: 18px;
      font-size: 12px;
      font-weight: 400;
    }

    img.ultimeter-image-disabled {

      margin: 60px 20px 40px;
      max-width: 90%;
    }

    .ultimeter-money-symbol, .ultimeter-percent-symbol {
      border: 1px solid #ddd;
      border-right-color: rgb(221, 221, 221);
      border-right-style: solid;
      border-right-width: 1px;
      background: #fcfcfc;
      margin: 0;
      margin-right: 0px;
      font-size: 14px;
      padding: 5px 8px;
      vertical-align: middle;
    }

    .ultimeter-input-span {
      border: 1px solid #ddd;
      background: #fcfcfc;
      font-size: 14px;
      padding: 5px 8px;
      vertical-align: middle;

      &.ultimeter-input-span-before {

        border-right: 0px;
      }

      &.ultimeter-input-span-after {

        border-left: 0px;
      }
    }

    .ultimeter-woocommerce {
      width: 200px;
    }

    .ultimeter-money-symbol-before {
      border-right: 0;
      // margin-right: -4px;
    }

    .ultimeter-percent-field, .ultimeter-money-field, .ultimeter-custom-field {
      width: 75px;
      margin-right: 0;
      margin-left: 0;
    }

    .ultimeter-field-custom {
      width: 155px !important;
    }

    .ultimeter-text-only-field {
      border: 0px;
      font-weight: bold;
      background: none;
      vertical-align: initial;
      height: auto;
      padding: 0px;
      cursor: pointer;
      text-align: right;
      width: 43px;

      &:focus {
        box-shadow: none;
        outline: 0px;
      }
    }

    .ui-slider {
      margin: 20px auto;

      .ui-slider-handle {
        background: $orange;
      }
    }

    input.ultimeter-text_small {
      width: 100px !important;
    }

    input.ultimeter-text_medium {
      width: 200px !important;
    }

    input[type="email"], input[type="text"], input[type="number"], {
      padding: 5px;
      // width: 100%;
      height: 31px;
      // line-height: inherit;
    }

    input[type=number]::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    input[type=number] {
      -moz-appearance: textfield;
    }

    .ultimeter-image-thumb {
      position: relative;
      margin-top: 20px;

      img {
        max-width: 250px;
        border: 4px solid #fff;
      }

      span.ultimeter-delete-image-thumb {
        position: absolute;
        background: red;
        color: #fff;
        border-radius: 30px;
        left: -10px;
        top: -10px;
        cursor: pointer;
      }
    }
  }

  .ultimeter-image-radio-fields {

    ul {
      // display: flex;
    }

    label > input { /* HIDE RADIO */
      visibility: hidden; /* Makes input not-clickable */
      position: absolute; /* Remove input from document flow */
    }

    label > input + img { /* IMAGE STYLES */
      cursor: pointer;
      border: 3px solid lightgrey;
      border-radius: 20px;

      &:hover {
        border-color: $orange;
      }
    }

    label > input:checked + img { /* (RADIO CHECKED) IMAGE STYLES */
      border-color: $orange;
    }

    /* PRO version only */
    label.readonly {
      cursor: not-allowed;
      border: 2px solid transparent;
    }
  }

  .ultimeter-repeatable-field-section {
    padding: 10px;
    background: #f5f5f5;

    .ultimeter-repeatable-fields-section-wrapper {
      width: 100%;
      background-color: #fff;
      border-collapse: collapse;
    }

    .ultimeter-template {
      display: none;
    }

    .ultimeter-row {
      border-bottom: 15px solid #f5f5f5;
      background-color: #fff;
    }

    .ultimeter-column {
      padding: 0;
    }

    .ultimeter-row-head {
      border-bottom: 1px solid #eee;

      h2 {
        text-align: left !important;

        .ultimeter-milestone-id {
          color: #aaa;
          font-size: 12px;
          line-height: 18px;
          padding-top: 10px;
          font-style: italic;
          display: none; // comment to show ID next to milestone for debugging
        }
      }
    }

    .ultimeter-remove {
      float: right;
      line-height: 34px;
      font-size: 21px;
      margin-right: 5px;
      color: #72777c;

      &:before {
        cursor: pointer;
        content: "\f182";
        display: inline-block;
        font: normal 20px/1 dashicons;
        text-decoration: none !important;
      }

      &:hover {
        color: red;
      }
    }


    .ultimeter-add-repeater-field-section-row-wrap {
      background-color: #f5f5f5;
    }

    .ultimeter-add-repeater-field-section-row {
      margin: 5px;
    }
  }

  .ultimeter-field-wrap {

    &:last-child {
      border-bottom: 1px solid #eee;
    }
  }

  .ultimeter-milestones-teaser, .ultimeter-celebrations-teaser {

    padding: 10px;

    h1 span {
      color: $orange;
    }

    h2 {
      padding-left: 0px;
      font-weight: bold;

      span {
        color: greenyellow;
      }
    }

    ul {
      list-style: none;

      li {

        text-indent: -20px;
        padding-left: 20px;

        &:before {
          content: '+';
          color: $orange;
          margin-right: 5px;
          font-weight: bold;
          font-size: 20px;
        }

        img {
          max-width: 90%;
          display: block;
        }
      }
    }
  }

  .ultimeter-celebrations-teaser {
    img {
      float: left;
      width: 250px;
      margin: 10px 0px;
    }
  }

  #ultimeter-goal-options-panel-teaser {
    padding: 10px;
    margin: 1em;
    border: 1px solid #eee;
    background-color: #fafafa;
    color: #0073aa;

    a {
      text-decoration: none !important;
    }

    img {
      max-height: 30px;
      vertical-align: middle;
      margin: 10px;
    }

    p {
      margin-top: 0px;
    }

    @include meta {
      margin: 10px;
    }
  }
}

#configure-ultimeter .ultimeter_meter_type_panel {

  .ultimeter-image-radio-fields {

    ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;

      li {
        display: flex;

        &:last-child {

        }
      }

    }
  }
}

._ultimeter_progressbar_type_field {
  img {
    width: 300px;
  }
}

// Enterprise Page Styles

.ultimeter-enterprise-dashboard-section {
  .ultimeter-enterprise-section-header {
    padding: 13px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;

    .ultimeter-enterprise-section-header__title {
      margin: 0 16px 0 0;
      padding: 3px 0;
      font-size: 18px;
      font-size: 1.125rem;
      line-height: 2.2;
      font-weight: 600;
    }

    hr {
      -ms-grid-row-align: center;
      align-self: center;
      flex-grow: 1;
      height: 1px;
      margin: 0 10px;
    }
  }

  .ultimeter-enterprise-dashboard {
    margin-bottom: 24px;

    .ultimeter-enterprise-dashboard__columns {
      display: grid;
      grid-template-columns: calc(50% - 12px) calc(50% - 12px);
      grid-column-gap: 24px;

      @include meta {
        display: grid;
        grid-template-columns: auto;
        grid-column-gap: 0;
      }
    }

    .ultimeter-enterprise-card {
      margin-bottom: 24px;
      background: #fff;
      border-radius: 3px;
      box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
      transition: box-shadow 0.2s cubic-bezier(0.4, 1, 0.4, 1);

      .ultimeter-enterprise-card__header {
        padding: 16px;
        display: grid;
        align-items: center;
        border-top-left-radius: 3px;
        border-top-left-radius: 4px;
      }

      .ultimeter-enterprise-card__body {
        padding: 0px 16px 16px;
        display: grid;
        align-items: center;
        border-top-left-radius: 3px;
        border-top-left-radius: 4px;

        h4 {
          margin: 0px;
        }

        .ultimeter-status-green {
          color: green;
        }

        .ultimeter-status-red {
          color: red;
        }

        .ultimeter-enterprise-news, .ultimeter-enterprise-hints {
          background: #fff;
          border-radius: 3px;
          border: 1px solid #DADFE2;
          margin-bottom: 1em;
          padding: 1em;
        }

        .ultimeter-enterprise-news {
          margin-top: 1em;
        }
      }
    }

    .ultimeter-enterprise-summary {
      background-color: #f0f0f0;
      margin: 0;
      display: grid;
      border-width: 1px 0 0 1px;
      border-style: solid;
      border-color: #e0e0e0;
      box-shadow: inset -1px -1px 0 #e0e0e0;

      &.has-5-items {
        grid-template-columns: repeat(5, 1fr);
      }

      &.has-2-items {
        grid-template-columns: repeat(2, 1fr);
      }


      .ultimeter-enterprise-summary__item-container {

        .ultimeter-enterprise-summary__item {
          display: flex;
          flex-direction: column;
          height: 100%;
          padding: 24px;
          background-color: #fff;
          border-bottom: 1px solid #e0e0e0;
          border-right: 1px solid #e0e0e0;
          line-height: 1.4em;
          text-decoration: none;
          color: #1e1e1e;

          .ultimeter-enterprise-summary__item-label {
            display: block;
            margin-bottom: 16px;
            color: #757575;
          }

          .ultimeter-enterprise-summary__item-data {
            display: flex;
            justify-content: space-between;
          }
        }
      }

    }
  }
}

// Styles for Upgrade Information

#upgrade-ultimeter {
  .inside {
    margin: 0;
    padding: 0;
  }

  #ultimeter-upgrade-panel {

    .ultimeter-upgrade-panel {
      display: flex;
      flex-direction: column;

      &#ultimeter-upgrade-panel-pro .ultimeter-upgrade-panel-header {
        background-color: #EBC0FF;
      }

      &#ultimeter-upgrade-panel-enterprise .ultimeter-upgrade-panel-header {
        background-color: #F5D62F;
        h2 {
          color: #000;
        }
      }

      .ultimeter-upgrade-panel-header {
        text-align: center;
        margin-bottom: 20px;
        h2 {
          font-size: 1.5rem;
          font-weight: bold;
        }
      }

      .ultimeter-upgrade-panel-body {
        display: flex;
        flex-direction: column;
        align-items: center;

        h3 {
          margin: 0.3em;
        }

        .ultimeter-upgrade-panel-body-logos {
          display: grid;
          grid-template-columns: 1fr 1fr;
          padding: 0px 20px;
        }

        p {
          display: flex;
          flex-direction: column;
          align-items: center;
          margin: 0.5em;

          img {
            height: 25px;
          }

          .ultimeter-upgrade-panel-small {
            font-size: 0.8em;
          }
        }

        .button {
          background-color: #000000;
          border-radius: 50px;
          height: 51px;
          padding: 12px 24px;
          color: #F5D62F;
          font-size: 18px;
          font-weight: 700;
          border: none;
          display: flex;
          justify-content: center;
          align-items: center;
          width: max-content;
          margin: 20px auto;

          &:hover {
            opacity: 75%;
          }
        }

      }

    }

  }
}

.csf-field-select {
  .chosen-container {
    width: 50% !important;
  }
}

.csf-field-group .csf-cloneable-header-icon {
  vertical-align: unset;
}

.csf-field-group .csf-cloneable-wrapper {
  margin-bottom: 20px;
}

.progressbar {
  .csf--image {
    width: 300px;
  }
}

.csf-field-connected_image_select, .csf-field-image_select_style_packs {

  .csf--image-group {
    display: flex;
  }

  .csf--image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px 5px 0;
    padding: 15px;

    &.csf--free {
      opacity: 0.25;

      figure {
        cursor: auto;
      }
    }

    figure {
      cursor: pointer;
      position: relative;
      display: inline-block;
      max-width: 100%;
      margin: 0;
      vertical-align: bottom;
      border: 2px solid transparent;
      background-color: #fff;
      user-select: none;
      transition: all 0.2s;

      &:before {
        position: absolute;
        top: 0;
        left: 0;
        text-align: center;
        font-size: 10px;
        font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome";
        font-weight: 900;
        content: "\f00c";
        width: 16px;
        height: 16px;
        line-height: 14px;
        opacity: 0;
        color: #fff;
        background-color: #222;
        transition: opacity 0.2s;
      }
    }

    &.csf--active {
      figure {
        border-color: #222;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);

        &:before {
          opacity: 1;
        }
      }
    }

    img {
      max-width: 100%;
      height: auto;
      vertical-align: top;
    }

    input {
      display: none;
    }
  }
}

.csf-field-connected_image_select {
  .csf-connected-image-select-group-container {
    display: flex;
    flex-direction: column;

    .csf-connected-image-select-group {
      position: relative;
      margin: 2.5px 0;

      h4 {
        font-size: 1em;
      }

      .csf-connected-image-select-group-title {
        display: block;
        cursor: pointer;
        position: relative;
        margin: 0;
        padding: 15px;
        min-height: 0;
        font-size: 100%;
        user-select: none;
        border: 1px solid #ccd0d4;
        background-color: #fafafa;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
        transition: border-color 0.15s;

        &:active, &:hover, &:focus {
          outline: none;
          border-color: #999;
        }

        .csf--icon {
          width: 20px;
          text-align: center;
          margin-right: 2px;
        }

        .csf-set-icon {
          width: 16px;
          text-align: center;
        }
      }

      .csf-connected-image-select-group-content {
        display: none;
        padding: 0;
        border: 1px solid #ccd0d4;
        border-top: none;
        background-color: #fff;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);

        &.csf-connected-image-select-group-content-open {
          display: flex;
        }

        .csf--sibling {
          label {
            margin-top: 16px;
            font-size: 16px;
            font-weight: 500;
          }
        }
      }
    }
  }
}

.csf-metabox {
  .csf-field.ultimeter-upsell-container {
    padding: 0;

    .ultimeter-upsell {
      color: #000;
      padding: 20px;
      display: flex;
      gap: 20px;

      .ultimeter-upsell-left {
        width: 75%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }

      .ultimeter-upsell-right {
        width: 25%;
      }

      img {
        max-width: 100%;
      }

      h2 {
        text-align: center;
        font-size: 22px !important;
        padding: 8px 12px !important;
        margin: 0 !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
      }

      p {
        font-size: 13px;
        line-height: 1.5;
        margin-top: 0;
        margin-bottom: 1em;
        font-weight: 500;
      }

      .ultimeter-upsell-button {
        background-color: #000000;
        border-radius: 50px;
        height: 51px;
        padding: 12px 24px;
        color: #F5D62F;
        font-size: 18px;
        font-weight: 700;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        width: max-content;
        margin: 0 auto;
      }
    }
  }
}

.csf-field {
  &.plugin-teaser {
    ul {
      list-style: disc;
      list-style-position: inside;
    }
  }
}



