.accordion-section-title .button {
  font-weight: 400;
}

.hestia-notice{
  position: relative;
}

.hestia-customizer-heading {
  display: block;
  margin: 0 -12px;
  padding: 13px 12px;
  background-color: #fff;
  color: #555;
  border: 1px solid #ddd;
  border-left: 0;
  border-right: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase
}


//Upsell style
.themeisle-upsell {
  background: #fff;
  padding: 21px;
  border-radius: 3px;
}

.themeisle-upsell .upsell-pro-label {
  font-weight: bold;
  background: #a7a7a7;
  color: #fff;
  text-transform: uppercase;
  padding: 2px 6px 2px 7px;
  letter-spacing: .1px;
  font-size: 12px;
  border-radius: 3px;
  margin-right: 10px;
}

.themeisle-upsell-features {
  li{
    &:last-child{
      margin-bottom: 20px;
    }
    line-height: 24px;
    margin-bottom: 23px;
    font-size: 14px;
  }
  &.no-explained{
    li{
      margin-bottom: 0;
      &:last-child{
        margin-bottom: 0;
      }
    }
  }
}

.themeisle-upsell .button {
  margin-right: 21px;
  width: 100%;
  text-align:center;
  letter-spacing: .2px;
}

.themeisle-upsell hr {
  margin-top: 22px;
  margin-bottom: 16px;
}

.themeisle-upsell-feature-list li:before {
  line-height: 37px;
}

.themeisle-upsell-feature-list li {
  line-height: 22px;
  font-size: 14px;
  font-style: italic;
  margin-bottom:6px;
}

.themeisle-upsell-feature-list li:last-child {
  margin-bottom: 0;
}

.frontpage-sections-upsell {
  padding: 10px 10px 11px 14px;
}

.themeisle-boxed-section {
  margin: 12px;
}

.alpha-color-locked {
  margin-top: 3px;
  color: #A3A3A3;
}

.pro-alpha-color {
  opacity: 0.4;
}

.pro-alpha-color button.button {
  pointer-events: none;
}

#customize-control-color_upsell_notice {
  margin-bottom: 25px;
}

#customize-control-color_upsell_notice .description {
  margin-bottom: 12px;
}

// Generic

#accordion-section-hestia_upsell_main_section {
  &.control-section .accordion-section-title {
    color: #2271b1;
    border-color: currentColor;
    border-top: 1px solid;
    border-left-color: transparent;
    border-left: 0;
    padding-left: 17px;
    z-index: 10;

    &:after {
      color: #2271b1;
    }

    &:hover {
      background-color: #0073aa;
      color: #fff !important;

      &:after {
        color: #fff;
      }
    }
  }
}

// Decrease Customizer sidebar width
@media (min-width: 992px) and (max-width: 1300px) {
  body.wp-customizer {
    .wp-full-overlay.expanded {
      margin-left: 280px;
    }

    .wp-full-overlay-sidebar {
      width: 280px;
    }

    .expanded .wp-full-overlay-footer {
      width: 279px;
    }
  }
}

.customize-control-description a.button{
  span.dashicons{
    vertical-align: middle;
    font-size: initial;
    line-height: initial;
    margin-right: 5px;
    width: auto;
    height: auto;
  }
}
.hestia-section-hidden .hestia-toggle-section.hestia-section-locked {
  color: #A3A3A3;
}
.hestia-section-hidden .hestia-toggle-section.hestia-section-locked + a {
  float: right;
  margin-top: 2px;
}
.customize-locked-control {
    opacity: .4;
    pointer-events: none;
}

ul:where([id*="hestia_footer_content"], [id*="hestia_buttons_style"], [id*="hestia_top_bar"]) [id*="upsell"] {
  opacity: .4;
  pointer-events: none;

  // Exclude control titles where parent has both "top_bar" or "hestia_footer" and "color"
  &:not([id*="hestia_footer"][id*="color"]) .customize-control-title {
    &::after {
      content: "\f160";
      font-family: "dashicons";
      line-height: 0;
      font-size: 16px;
      margin-left: 2px;
      vertical-align: -2px;
      margin-top: 10px;
    }
  }

  :is( .customize-control-content:has( .wp-picker-container), li > .wp-picker-container )::after {
    font-size: 19px;
    vertical-align: -9px;
  }
}

[id*="hestia"][id*="_text_upgrade"] {
  margin-top: 10px;

  span.upgrade-links {
    font-size: 16px;

    display: flex;
    flex-direction: column;
    gap: 20px;

    a.button {
      width: fit-content;
    }
  }

  &:not(:last-child) span.upgrade-links::after,
  &:last-child span.upgrade-links::before {
    content: '';
    display: block;
    border-top: 1px solid #ddd;
    margin-left: -12px;
    width: 98%;
  }

  &:last-child span.upgrade-links::before {
    margin-top: 10px;
  }
}
#customize-theme-controls {
  .accordion-section-title {
    button {
      &.accordion-trigger {
        max-height: fit-content;
      }
    }
  }
}
#accordion-section-hestia_docs_section {
  .accordion-section-title {
    &:after {
      content: '';
    }
  }
}
.customize-hide-control {
  display: none !important;
}

.radio-pagination {
  border: 1px solid #ccc;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  height: 30px;
  width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;

  input[type='radio'] {
    display: none;
  }

  label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-left: 1px solid #ccc;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    transition: background 0.3s, color 0.3s;
    flex: 1 0 auto;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;

    &:first-of-type {
      border-left: none;
    }
  }

  input[type='radio']:checked + label {
    background-color: #4b4e52;
    color: #fff;
  }
}

#customize-theme-controls .hestia-notice {
  .hestia-notice-body {
    background-color: #fff;
    padding: 5px 18px 2px;
  }

  .accordion-section-title::after {
    content: '';
  }
} 

.customize-control-color, .customize-control-alpha-color {
  &:not([id*="upsell_notice"]) {
    width: 100%;
    display: flex;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    .customize-control-title {
      display: flex;
      width: 70%;
    }
  }
}
.wp-picker-container {
  .wp-color-result.button {
    padding: 0 0 0 60px;
    span.wp-color-result-text {
      display: none;
    }
  }
}

.customize-control-hestia-dimensions {
  .customize-control-title {
    display: flex;
    gap: 10px;
  }

  .dimensions-wrap {
    ul li {
      margin-bottom: 0px;
      width: 10px;
    }
  }
}
[class*="alpha-color"]:has(.alpha-color-locked) {
  opacity: 0.4;
}
