/**
 * Grow Sidebar Styles
 *
 * Extracted from main theme style.css (lines 17344-17548).
 * Loaded only when the ush-ad-manager plugin is active.
 *
 * @package USH_Ad_Manager
 */

.sidebar .grow-sidebar-gap {
  width: 100%;
}
@media (max-width: 767px) {
  .sidebar .grow-sidebar-gap {
    display: none;
  }
}

@media (min-width: 768px) {
  .sidebar--grow {
    z-index: 1;
    padding-top: 0 !important;
  }
  .grow-sidebar-clip {
    height: 75vh;
    overflow: hidden;
    background: transparent;
    padding: 0 !important;
    margin: 0 !important;
  }
  .grow-sidebar-clip .sidebar__container {
    padding: 0 !important;
    margin: 0 !important;
  }
  .grow-sidebar-clip .sidebar__container > * {
    margin: 0 !important;
    padding: 0 !important;
  }
  .grow-sidebar-clip .harbor-ads.block.block__ads {
    margin: 0 !important;
  }
  .grow-sidebar-clip .harbor-ads.block.block__ads.block__ads--b {
    margin-top: 10px !important;
  }
  .grow-sidebar-clip .grow-sidebar-pos:first-child[data-mode="1"] {
    padding-top: 33px !important;
  }
  .grow-sidebar-clip .grow-sidebar-pos:first-child[data-mode="2"] {
    padding-top: 28px !important;
  }
  .grow-sidebar-clip .grow-sidebar-pos:first-child[data-mode=cube] {
    padding-top: 32px !important;
  }
  .grow-sidebar-clip .grow-sidebar-pos:first-child[data-mode=large] {
    padding-top: 17px !important;
  }
  .grow-sidebar-clip .grow-sidebar-pos:not(:first-child)[data-mode="1"] {
    padding-top: 18px !important;
  }
  .grow-sidebar-clip .grow-sidebar-pos:not(:first-child)[data-mode="2"] {
    padding-top: 13px !important;
  }
  .grow-sidebar-clip .grow-sidebar-pos:not(:first-child)[data-mode=cube] {
    padding-top: 17px !important;
  }
  .grow-sidebar-clip .grow-sidebar-pos:not(:first-child):not(:last-child)[data-mode=cube] {
    margin-top: 1px !important;
    padding-top: 0 !important;
  }
  .grow-sidebar-clip .grow-sidebar-pos:last-child[data-mode=cube] {
    margin-top: -7px !important;
    padding-top: 0 !important;
  }
  .grow-sidebar-clip .grow-sidebar-pos:not(:first-child)[data-mode=large] {
    padding-top: 2px !important;
  }
  .grow-sidebar-clip .sidebar-cube-controls {
    margin: 0 auto !important;
  }
  .grow-sidebar-clip .scene.grow-sidebar-adblock {
    margin-top: 20px !important;
  }
  .grow-sidebar-clip .grow-sidebar-gap {
    height: calc(75vh - 250px);
  }
  .grow-sidebar-clip .grow-sidebar-widget {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .grow-sidebar-clip.grow-ready .grow-sidebar-widget {
    opacity: 1;
  }
  #harbor-sidebar .grow-sidebar-clip .grow-sidebar-pos[data-mode=cube] {
    padding-top: 35px !important;
  }
  #harbor-sidebar .grow-sidebar-clip .grow-sidebar-pos:not(:first-child)[data-mode=cube] {
    padding-top: 20px !important;
  }
}
.grow-sidebar-widget {
  width: 300px;
  max-width: 100%;
  margin: 10px auto 15px;
  background: #fff;
  border: 1px solid #e0ddd6;
  border-radius: 4px;
  overflow: hidden;
  text-align: left;
}

.grow-sidebar-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid #e0ddd6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

.grow-sidebar-widget__see-all {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4e5b62;
  text-decoration: none;
  white-space: nowrap;
}
.grow-sidebar-widget__see-all:hover {
  color: #2899ce;
}

.grow-sidebar-widget__card {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0eeea;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: background 0.15s ease;
}
.grow-sidebar-widget__card:last-child {
  border-bottom: none;
}
.grow-sidebar-widget__card:hover {
  background: #f7f5f0;
}

.grow-sidebar-widget__thumb {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.grow-sidebar-widget--sponsored .grow-sidebar-widget__thumb-wrap {
  flex-shrink: 0;
  width: 80px;
  overflow: hidden;
  max-height: 80px;
}
.grow-sidebar-widget--sponsored .grow-sidebar-widget__thumb-wrap img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
  max-width: 80px;
}

.grow-sidebar-widget--sponsored .grow-sidebar-widget__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grow-sidebar-widget__link {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #2899ce;
}

.grow-sidebar-widget__cat {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4e5b62;
  margin-bottom: 2px;
}

.grow-sidebar-widget__date {
  display: block;
  font-size: 10px;
  color: #999;
  margin-bottom: 2px;
}

.grow-sidebar-widget__title {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}

@media (max-width: 767px) {
  .grow-sidebar-widget {
    display: none;
  }
}
