#comparison {
  overflow-x: hidden;
}

#ctable {
  max-width: 100%;
  overflow-x: hidden;
}

#ctable .row {
  margin-right: 0;
  margin-left: 0;
}

.bg-white {
  background-color: #ffffff !important;
}

.text-muted {
  color: #6b7280 !important;
}

.comparison-card {
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#ctable .d-flex.align-content-center {
  border-radius: 16px;
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#ctable .d-flex.align-content-center form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.speriod.btn-group-toggle {
  display: flex;
  gap: 0.2rem;
  padding: 0 !important;
}

.speriod.btn-group-toggle .btn {
  letter-spacing: 0;
  text-transform: none;
  padding: 0.5rem !important;
  border-radius: 0.5rem !important;
}

#monthly-btn.active,
#yearly-btn.active {
  background-color: #e7e5ff !important;
  border-color: #212529 !important;
  color: #000000 !important;
}

#monthly-btn:not(.active),
#yearly-btn:not(.active) {
  background-color: transparent;
  border-color: #212529;
  color: #212529;
}

.yearly-badge-inline {
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.susers.btn-group-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 20px;
}

.susers.btn-group-toggle::before {
  font-family: 'Font Awesome 5 Free', sans-serif;
  font-weight: 400;
  color: #6b7280;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
}

.susers.btn-group-toggle .btn {
  display: none;
}

.susers.btn-group-toggle .btn.active {
  display: inline-flex;
  background: #212529;
  border: none;
  color: #ffffff;
  font-weight: 400;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

.susers.btn-group-toggle .btn.active span {
  font-size: inherit;
}

@media (min-width: 768px) {
  .susers.btn-group-toggle::before {
    font-size: 0.9375rem;
  }
}

.slider-container {
  width: 100%;
}

input[type="range"].user-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 0.5rem;
  background: linear-gradient(to right, #212529 0%, #e5e7eb 0%);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

input[type="range"].user-slider:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

input[type="range"].user-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  cursor: grab;
  border: 2px solid #212529;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

input[type="range"].user-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

input[type="range"].user-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1);
}

input[type="range"].user-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  cursor: grab;
  border: 2px solid #212529;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.scurrency.btn-group-toggle {
  display: none !important;
}

.page-milestone {
  margin-top: 0;
}

.cprice-bar .w-100px img {
  height: 24px;
  width: auto;
  object-fit: contain;
  margin-right: 8px;
}

.cprice-bar .progress {
  overflow: visible;
  position: relative;
  flex: 1;
}

.page-milestone .cprice-bar:first-child {
  background: #d1f1e1;
  padding-block: 18px 18px !important;
  margin-bottom: 0;
  width: 100%;
}


.cprice-bar .w-90px a {
  color: #6366f1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.cprice-bar .w-90px a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.comparison-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
}

.comparison-legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #9ca3af;
  font-weight: 500;
}

.comparison-legend-color {
  width: 36px;
  height: 16px;
  border-radius: 6px;
}

.comparison-legend-color.best-value {
  background: #10b981;
}

.comparison-legend-color.competitors {
  background: #f59e0b;
}

#ctable .mt-5.text-center {
  margin-top: 2rem !important;
  text-align: right;
}

#ctable .btn-link:hover {
  color: #64748b;
  text-decoration: underline;
}

@media (max-width: 767px) {
  #ctable {
    padding: 1rem;
  }

  .controls-card {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .comparison-card {
    padding: 1rem;
  }

  .speriod.btn-group-toggle {
    width: 70%;
    justify-content: center;
  }

  .speriod.btn-group-toggle .btn {
    flex: 1;
    font-size: 0.813rem;
    padding: 0.5rem 0.75rem !important;
  }

  .yearly-badge-inline {
    font-size: 0.563rem;
    padding: 0.125rem 0.25rem;
  }

  .susers.btn-group-toggle {
    width: 50%;
    align-items: start;
  }

  .susers.btn-group-toggle::before {
    font-size: 0.813rem;
  }

  .susers.btn-group-toggle .btn.active {
    font-size: 0.813rem;
    min-width: 50px;
  }

  .cprice-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .cprice-bar .w-100px {
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }

  .cprice-bar .progress {
    width: 100%;
    height: 32px !important;
    margin-right: 5px !important;
  }

  .cprice-bar .w-90px {
    width: 100%;
    text-align: left;
  }

  .page-milestone .cprice-bar:first-child {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .comparison-legend {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
}

@media (min-width: 768px) {
  .comparison-card {
    padding: 1.5rem;
  }

  .cprice-bar {
    padding: 0.625rem 0;
    gap: 1.25rem;
  }

  .cprice-bar .w-100px {
    min-width: 130px;
    font-size: 1rem;
  }

  .cprice-bar .progress,
  .page-milestone .cprice-bar:first-child .progress {
    height: 25px !important;
  }
}
