.service-info-action {
  margin: 0.1rem 0.5rem 0.7rem 1.75rem;
}

.service-info-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e5fb;
  border-radius: 9999px;
  background: #f3f7ff;
  color: #3367d6;
  padding: 0.24rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.service-info-button:hover {
  background: #e8f0fe;
}

.service-info-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.48);
}

.service-info-modal {
  width: min(520px, 100%);
  max-height: min(78vh, 640px);
  overflow: auto;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.25);
}

.service-info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: #202124;
}

.service-info-close {
  border: 1px solid #dadce0;
  border-radius: 9999px;
  padding: 0.32rem 0.7rem;
  background: #fff;
  color: #5f6368;
  font-size: 0.75rem;
  font-weight: 600;
}

.service-info-close:hover {
  background: #f1f3f4;
}

.service-info-content {
  margin-top: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.results-anchor {
  scroll-margin-top: 5.25rem;
}

.service-breakdown {
  border: 1px solid #d8e5fb;
  border-radius: 0.85rem;
  background: #f8fbff;
  margin: 0.75rem 0;
  padding: 0.9rem;
}

.service-breakdown-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.breakdown-options-note {
  color: #5f6368;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0.35rem 0 0.7rem;
}

.breakdown-service-group {
  color: #31568d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0.75rem 0 0.35rem;
  text-transform: uppercase;
}

.breakdown-service-row {
  align-items: center;
  background: #fff;
  border: 1px solid #e6ebf5;
  border-radius: 0.65rem;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  min-height: 3rem;
  padding: 0.42rem 0.55rem;
}

.breakdown-service-choice {
  align-items: center;
  color: #202124;
  cursor: pointer;
  display: flex;
  font-size: 0.84rem;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}

.breakdown-service-choice.is-required {
  cursor: default;
}

.breakdown-service-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.breakdown-service-title {
  font-weight: 500;
}

.breakdown-service-meta {
  color: #6b7280;
  font-size: 0.72rem;
}

.consultancy-subtotal {
  align-items: center;
  border-top: 1px solid #d8e5fb;
  display: flex;
  font-size: 0.88rem;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
}

.consultancy-subtotal strong {
  font-size: 1rem;
}

.breakdown-service-choice input {
  accent-color: #2463d4;
  flex: 0 0 auto;
  height: 1rem;
  width: 1rem;
}

.breakdown-info .service-info-action {
  margin: 0;
}

.breakdown-pending {
  background: #eef4ff;
  border-radius: 0.65rem;
  margin-top: 0.8rem;
  padding: 0.7rem;
}

.breakdown-pending p {
  color: #38558a;
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0 0 0.65rem;
}

.action-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pdf-export .service-breakdown {
  padding: 0.5rem;
}

.pdf-export .breakdown-options-note {
  font-size: 0.7rem;
  line-height: 1.25;
  margin: 0.15rem 0 0.3rem;
}

.pdf-export .breakdown-service-group {
  font-size: 0.62rem;
  margin: 0.28rem 0 0.16rem;
}

.pdf-export .breakdown-service-row {
  margin-bottom: 0.14rem;
  min-height: auto;
  padding: 0.18rem 0.35rem;
}

.pdf-export .breakdown-service-choice {
  font-size: 0.72rem;
}

.pdf-export .breakdown-service-meta {
  font-size: 0.61rem;
}

.pdf-export .consultancy-subtotal {
  font-size: 0.72rem;
  margin-top: 0.32rem;
  padding-top: 0.28rem;
}

.pdf-export .consultancy-subtotal strong {
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .services-selection-panel {
    font-size: 0.83rem;
    line-height: 1.32;
  }

  .services-selection-panel > p {
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
  }

  .services-selection-panel ul {
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .services-selection-panel .checkbox-container {
    margin-bottom: 0.1rem;
    padding: 0.3rem 0.15rem;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .services-selection-panel [type="checkbox"] {
    min-width: 1rem;
    min-height: 1rem;
    width: 1rem;
    height: 1rem;
  }

  .service-info-action {
    margin: 0 0.15rem 0.45rem 1.25rem;
  }

  .service-info-button {
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
  }

  .service-info-modal {
    padding: 0.9rem;
  }

  .service-info-content {
    font-size: 0.8rem;
    line-height: 1.42;
  }

  .service-breakdown {
    padding: 0.7rem;
  }

  .breakdown-service-row {
    gap: 0.35rem;
    padding: 0.4rem 0.42rem;
  }

  .breakdown-service-choice {
    font-size: 0.77rem;
    line-height: 1.32;
  }

  .breakdown-service-meta {
    font-size: 0.67rem;
  }

  .consultancy-subtotal {
    font-size: 0.78rem;
  }

  .consultancy-subtotal strong {
    font-size: 0.9rem;
  }

  .breakdown-service-group {
    font-size: 0.68rem;
    margin-top: 0.62rem;
  }

  .breakdown-info .service-info-button {
    font-size: 0.66rem;
    padding: 0.18rem 0.45rem;
  }
}
