#pp-nearby-widget {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  margin: 1em auto;
  padding: 10px;
  color: #333;
  background: #fff;
}

.ppc-score-bar {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

.ppc-score-bar label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
  color: #222;
  cursor: pointer;
}

.ppc-score-bar.main-score {
  margin-bottom: 20px;
  background: #f5f5f5;
  transition: background-color 0.2s;
}

.ppc-score-bar.main-score:hover {
  background-color: #f0f0f0;
}

.ppc-score-bar.main-score .ppc-caret {
  float: right;
  font-size: 14px;
  transition: transform 0.3s;
}

.ppc-score-bar.main-score label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Caret icon */
.ppc-caret {
  font-size: 14px;
  margin-left: 6px;
  color: #666;
  transition: transform 0.3s ease;
}

.ppc-score-bar:hover .ppc-caret {
  color: #111;
}

.ppc-bar-container {
  position: relative;
  height: 22px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.ppc-bar-container:hover {
  background: #ccc;
  transition: background 0.3s ease;
}

.ppc-bar {
  height: 100%;
  transition: width 0.4s ease-in-out;
}

.ppc-bar.green {
  background-color: #3b7a2f;
}

.ppc-bar.orange {
  background-color: #5ab44d;
}

.ppc-bar.red {
  background-color: #a8e1a0;
}

.ppc-score-text {
  position: absolute;
  right: 10px;
  top: 0;
  height: 100%;
  line-height: 22px;
  font-weight: bold;
  color: #fff;
  font-size: 14px;
}

/* Grid container for the small bars */
.ppc-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 8px;
}

.ppc-grid-hidden {
  display: none !important;
}

/* Each individual small bar */
.ppc-score-bar.small {
  flex: 1 1 calc(50% - 8px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* If odd number, make last one full width */
.ppc-score-bar.full-width {
  flex: 1 1 100%;
}

/* Details always below the bar */
.ppc-details {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f1f1f1;
  border-left: 4px solid #ccc;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  color: #444;
}

.ppc-details ul {
  list-style: disc inside;
  margin: 0;
  padding: 0;
}

.ppc-details li {
  padding: 2px 0;
}

/* Responsive mobile view */
@media (max-width: 1155px) {
  .ppc-grid {
    flex-direction: column;
    gap: 12px;
  }

  .ppc-score-bar.small {
    flex: 1 1 100%;
  }

  .ppc-score-bar label {
    padding-bottom: 6px;
  }
}
