/* =========================================
   HERRON HILL STORAGE - SIZE GUIDE WIDGET
========================================= */

.hh-size-guide {
  width: 100%;
  margin: 0 auto;
}

.hh-size-guide-title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  color: #111111;
}

/* Tabs Bar */
.hh-size-guide-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #d8d8d8;
  border-bottom: none;
  overflow: hidden;
}

.hh-size-guide-tab {
  appearance: none;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f7ca5;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(0.9rem, 1.1vw, 1.15rem);
  font-weight: 700;
  line-height: 1.2;
  padding: 18px 14px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Remove border on final tab */
.hh-size-guide-tab:last-child {
  border-right: none;
}

/* Active tab mimics the light selected tab look */
.hh-size-guide-tab.is-active,
.hh-size-guide-tab[aria-selected="true"] {
  background: #e7e7e7;
  color: #111111;
}

/* Hover/focus */
.hh-size-guide-tab:hover {
  background: #0c6d90;
}

.hh-size-guide-tab.is-active:hover,
.hh-size-guide-tab[aria-selected="true"]:hover {
  background: #e7e7e7;
}

.hh-size-guide-tab:focus-visible {
  outline: 3px solid rgba(15, 124, 165, 0.25);
  outline-offset: -3px;
  position: relative;
  z-index: 2;
}

/* Panels Area */
.hh-size-guide-panels {
  border: 1px solid #d8d8d8;
  background: #e7e7e7;
}

.hh-size-guide-panel {
  padding: 56px 42px;
}

.hh-size-guide-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 52px;
  align-items: center;
}

/* Image area */
.hh-size-guide-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hh-size-guide-image {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Content area */
.hh-size-guide-content h3 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 2vw, 2.5rem);
  line-height: 1.1;
  font-weight: 700;
  color: #111111;
}

.hh-size-guide-content h4 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111111;
}

.hh-size-guide-content p {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.65;
  color: #222222;
}

.hh-size-guide-content ul {
  margin: 0;
  padding-left: 20px;
}

.hh-size-guide-content li {
  margin: 6px 0;
  font-size: 1.14rem;
  line-height: 1.55;
  color: #333333;
}

/* Hidden panels */
.hh-size-guide-panel[hidden] {
  display: none;
}

/* =========================================
   TABLET
========================================= */
@media (max-width: 1100px) {
  .hh-size-guide-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hh-size-guide-grid {
    grid-template-columns: 260px 1fr;
    gap: 38px;
  }

  .hh-size-guide-panel {
    padding: 42px 28px;
  }

  .hh-size-guide-content p,
  .hh-size-guide-content li {
    font-size: 1.05rem;
  }
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 768px) {
  .hh-size-guide-title {
    margin-bottom: 14px;
  }

  .hh-size-guide-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hh-size-guide-tab {
    padding: 14px 10px;
    font-size: 0.95rem;
  }

  .hh-size-guide-panel {
    padding: 28px 18px;
  }

  .hh-size-guide-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .hh-size-guide-image {
    max-width: 220px;
  }

  .hh-size-guide-content h3 {
    margin-bottom: 14px;
    font-size: 1.75rem;
  }

  .hh-size-guide-content h4 {
    margin-top: 20px;
    font-size: 1.05rem;
  }

  .hh-size-guide-content p,
  .hh-size-guide-content li {
    font-size: 1rem;
    line-height: 1.6;
  }
}
