/* Preview stub.
   In production this file forces a bright blue bar on a set of legacy class
   names (.site-topbar, .topbar-call, .header-search, .header-tools, .topbar-row,
   .topbar-links). This theme deliberately avoids those names, so the stub is empty. */

.company-services {
  margin-top: 0.35rem;
  margin-bottom: 14px;
  color: var(--directory-muted);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
}

.company-services-more,
.company-services-less {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  min-height: 0;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  vertical-align: baseline;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.company-services-less {
  margin-left: 0.25em;
}

.company-services-more[hidden],
.company-services-less[hidden],
.company-services-rest[hidden] {
  display: none;
}

.company-hours {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.company-status.is-open {
  color: #1b7f3a;
}

.company-status.is-closed {
  color: #6b7280;
}

.stars {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
}

.stars::before {
  content: "★★★★★";
  color: #d1d5db;
  letter-spacing: 0.05em;
}

.stars::after {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
  color: #f5b400;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.directory-section {
  margin-top: 40px;
}

@media (max-width: 799px) {
  .directory-section {
    margin-top: 32px;
  }
}

.directory-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.cookie-veil {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(28, 36, 48, 0.45);
}

.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  width: min(630px, calc(100% - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  background: #ffffff;
  color: #1c2430;
  font-size: 0.875rem;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-banner-reject,
.cookie-banner-accept {
  padding: 8px 16px;
  border-radius: 8px;
  min-height: 44px;
  cursor: pointer;
}

.cookie-banner-reject {
  border: 1px solid #e6e8ee;
  background: #f5f6f8;
  color: #1c2430;
}

.cookie-banner-accept {
  border: 1px solid #0f4c81;
  background: #0f4c81;
  color: #ffffff;
}

.company-rate {
  display: block;
  width: 100%;
}

.company-rate-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.company-rate-row .company-rating {
  margin: 0;
}

.company-rate-row .stars {
  position: relative;
  top: -2px;
}

.company-rate-panel {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--directory-line, #e6e8ee);
  border-radius: 8px;
}

.company-rate-stars {
  display: flex;
  justify-content: flex-start;
  gap: 2px;
}

.company-rate-stars button {
  flex: 0 0 auto;
  font-size: 1.35rem;
  color: #d1d5db;
  min-height: unset;
  padding: 0;
  border: 0;
  background: transparent;
}

.company-rate-stars button.is-on {
  color: #f5b400;
}

.company-rate-link {
  min-height: unset;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--directory-muted, #667084);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
}

.company-rate-link::after {
  content: "▼";
  margin-left: 0.25em;
  font-size: 0.65em;
}

.company-rate-link.is-open::after {
  content: "▲";
}

.company-rate-note {
  margin: 4px 0 0;
  color: var(--directory-muted, #667084);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.legal-body .company-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-body .company-row {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.legal-body .company-label {
  display: block;
  padding-top: 9px;
}

.legal-body .company-field input:not([type="checkbox"]):not([type="radio"]),
.legal-body .company-field textarea {
  width: 100%;
}

.legal-body .company-field input:not([type="checkbox"]):not([type="radio"]):user-invalid,
.legal-body .company-field textarea:user-invalid {
  border-color: #8f2d2d;
}

.legal-body .company-actions {
  grid-column: 2;
}

.legal-body .company-form .error {
  display: block;
  margin-top: 6px;
  color: #8f2d2d;
  font-size: 0.875rem;
}

.legal-body .company-field .company-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 575px) {
  .legal-body .company-form .company-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-body .company-form .company-actions {
    grid-column: auto;
  }

  .legal-body .company-form button.license-lookup {
    width: 100%;
  }
}
