/* Scroll lock */
html {
  --ectopwdt-sbw: 0px;
  --ectopwdt-sbw-half: 0px;
}

.ectopwdt-scroll-locked {
  overflow: hidden;
}

/* TagDiv sticky header compensation during scroll lock */
html.ectopwdt-scroll-locked body .tdc-row.tdc-rist-top-active,
html.ectopwdt-scroll-locked body .tdc-row.tdc-rist-bottom-active {
  transform: translateX(calc(-50% - var(--ectopwdt-sbw-half)));
}

.ectopwdt-top-tabs{
  font-family: 'Roboto', sans-serif;
}
.ectopwdt-top-tabs__heading h4 {
  margin: 40px 0 4px 0;
  padding: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #222;
  font-family: 'Roboto', sans-serif;
}

.ectopwdt-top-tabs__heading span {
  display: block;
}

.ectopwdt-top-tabs__row {
  display: flex;
  gap: 6px;
  margin: 0 0 10px 0;
}

.ectopwdt-top-tabs__row--metric {
  justify-content: space-between;
  align-items: center;
  margin: 0 0 6px 0;
  position: relative;
}

.ectopwdt-top-tabs__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ectopwdt-top-tabs__metric-tabs {
  display: flex;
  gap: 6px;
}

.ectopwdt-top-tabs__metric-tabs .ectopwdt-top-tabs__subtab{
  text-transform: uppercase;
}

.ectopwdt-top-tabs__row--period {
  align-items: center;
}

.ectopwdt-top-tabs__period-tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 6px;
}

.ectopwdt-top-tabs__period-tabs .ectopwdt-top-tabs__tab {
  appearance: none;
  border: 0;
  background: #ADADAD;
  color: #fff;
  padding: 6px 10px;
  line-height: 1;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ectopwdt-top-tabs__period-tabs .ectopwdt-top-tabs__tab.is-active {
  background: #000;
  color: #fff;
}

.ectopwdt-top-tabs__period-tabs .ectopwdt-top-tabs__tab:not(.is-active):hover {
  background: #666;
}

.ectopwdt-top-tabs__period-tabs .ectopwdt-top-tabs__tab:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.ectopwdt-top-tabs__row--metric:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #222;
}

/* Custom mode dropdown */
.ectopwdt-mode-dd {
  position: relative;
  flex-shrink: 0;
}

.ectopwdt-mode-dd[data-fixed="1"] {
  opacity: 0.6;
}

.ectopwdt-mode-dd__btn {
  border: 0;
  cursor: pointer;
  padding: 6px 10px;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1;
  background: none;
  color: #cc2e2e;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.ectopwdt-mode-dd__btn:hover:not(:disabled) {
  background: #e8e8e8;
}

.ectopwdt-mode-dd__btn:disabled {
  cursor: not-allowed;
}

.ectopwdt-mode-dd.is-open .ectopwdt-mode-dd__btn {
  background: #ddd;
}

.ectopwdt-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
}

.ectopwdt-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ectopwdt-mode-dd__label {
  font-size: 13px;
  line-height: 1;
}

/* Hide label when dropdown is closed */
.ectopwdt-mode-dd:not(.is-open) .ectopwdt-mode-dd__label {
  display: none;
}

/* Show label when dropdown is open */
.ectopwdt-mode-dd.is-open .ectopwdt-mode-dd__label {
  display: inline;
}

.ectopwdt-mode-dd__menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 140px;
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
  display: none;
  padding: 4px 0;
}

.ectopwdt-dd__menu--floating {
  position: fixed !important;
  z-index: 999999 !important;
}

.ectopwdt-mode-dd__menu[aria-hidden="false"] {
  display: block;
}

.ectopwdt-mode-dd__option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.ectopwdt-mode-dd__option:hover {
  background: #f5f5f5;
}

.ectopwdt-mode-dd__option.is-selected {
  background: #f0f0f0;
  font-weight: 500;
}

/* Category dropdown */
.ectopwdt-cat-dd {
  position: relative;
  flex-shrink: 0;
}

.ectopwdt-cat-dd__btn {
  border: 0;
  cursor: pointer;
  padding: 6px 10px;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1;
  background: none;
  color: #cc2e2e;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.ectopwdt-cat-dd__btn:hover {
  background: #e8e8e8;
}

.ectopwdt-cat-dd.is-open .ectopwdt-cat-dd__btn {
  background: #ddd;
}

.ectopwdt-cat-dd__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ectopwdt-cat-dd__menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  max-width: 300px;
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
  display: none;
  padding: 4px 0;
}

.ectopwdt-cat-dd__menu[aria-hidden="false"] {
  display: block;
}

.ectopwdt-cat-dd__option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.ectopwdt-cat-dd__option:hover {
  background: #f5f5f5;
}

.ectopwdt-cat-dd__option.is-active {
  background: #f0f0f0;
  font-weight: 500;
}

.ectopwdt-cat-dd__option[aria-checked="true"] {
  background: #f0f0f0;
  font-weight: 500;
}

.ectopwdt-mode-dd__option .ectopwdt-ico {
  width: 14px;
  height: 14px;
}

.ectopwdt-top-tabs__tab,
.ectopwdt-top-tabs__subtab {
  cursor: pointer;
  padding: 8px 8px;
  font-size: 16px;
  line-height: 1;
  background: #ADADAD;
  color: #fff;
}

.ectopwdt-top-tabs__subtab{
  border: 0;
}

.ectopwdt-top-tabs__subtab.is-active{
  background: #000;
}

.ectopwdt-top-tabs__loading {
  font-size: 13px;
  color: #666;
  margin: 6px 0;
}

.ectopwdt-top-tabs__html {
  position: relative;
  overflow: hidden;
  transition: height 160ms ease;
}

.ectopwdt-top-tabs__html.ectopwdt-is-loading {
  min-height: 50px;
}

.ectopwdt-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f2f2f2;
  border-top-color: #111;
  border-radius: 50%;
  animation: ectopwdt-spin 0.8s linear infinite;
}

@keyframes ectopwdt-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* List styling (kept close to your current look) */
.ectopwdt-posts { margin-top: 0; }
.ectopwdt-posts-list { list-style: none; padding: 0; margin: 0; }

.ectopwdt-post-item {
  display: flex;
  border-bottom: 1px solid #E5E5E5;
  padding-bottom: 6px;
  margin-bottom: 6px;
  margin-left: 0;
}

.ectopwdt-post-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.ectopwdt-thumb {
  margin-right: 10px;
  width: 97px;
  overflow: hidden;
  flex-shrink: 0;
}

.ectopwdt-thumb img {
  width: 100% !important;
  height: auto !important;
}

.ectopwdt-title {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 5px;
  color: #000;
  font-family: 'Roboto', sans-serif;
}

.ectopwdt-title a {
  color: #000;
  text-decoration: none;
}

.ectopwdt-title a:hover {
  text-decoration: underline;
  color: #1882ab;
}

.ectopwdt-meta-info {
  font-size: 13px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}
.ectopwdt-meta-info i{
font-size: 11px;
}

.ectopwdt-category { font-weight: 700; }