/* =========================
   GBP Modal + Admin
   ========================= */

.ll-gbp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.ll-gbp-modal[hidden] {
  display: none;
}

.ll-gbp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.ll-gbp-modal__dialog {
  position: relative;
  margin: 6vh auto;
  max-width: 820px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 16px;
}

.ll-gbp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ll-gbp-modal__body {
  max-height: 65vh;
  overflow: auto;
}

.ll-gbp-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .ll-gbp-admin-grid {
    grid-template-columns: 1fr;
  }
}

.ll-gbp-progress {
  position: relative;
  height: 18px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ll-gbp-progress__bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6aa84f, #38761d);
}

.ll-gbp-progress__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.ll-gbp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ll-gbp-checklist li {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px;
}

.ll-gbp-checklist--readonly .tick {
  margin-right: 6px;
}

.ll-gbp-checklist--readonly li.is-done {
  opacity: 0.85;
}

.ll-gbp-notes__box {
  white-space: pre-wrap;
  border: 1px dashed #ccc;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}

.ll-gbp-hours td {
  padding: 2px 6px;
}

/* =========================
   Business Identity Display
   ========================= */

.ll-business-name + .ll-business-address {
  margin-top: 3px;
}

.ll-business-address {
  font-weight: 400;
  color: #555;
  font-size: 12px;
  line-height: 1.3;
}

.ll-related-offers h3 {
  margin: 8px 0 12px;
}

/* =========================
   Google Visibility Report
   ========================= */

.ll-gbp-visibility-report {
  font-family: Arial, sans-serif;
}

.ll-gbp-report-card {
  border: 2px solid #d8e2dc;
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0 20px;
  background: #f8fafc;
}

.ll-gbp-report-intro {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 5px solid #0073aa;
  font-size: 17px;
  line-height: 1.55;
  color: #1f2937;
}

.ll-gbp-report-intro p {
  margin: 0 0 10px;
}

.ll-gbp-report-intro ul {
  margin: 0;
  padding-left: 22px;
}

.ll-gbp-report-intro li {
  margin: 6px 0;
}

.ll-gbp-report-card.is-good {
  border-color: #b7e4c7;
  background: #f0fff4;
}

.ll-gbp-report-card.is-warning {
  border-color: #facc15;
  background: #fffbeb;
}

.ll-gbp-report-card.is-bad {
  border-color: #fecaca;
  background: #fff1f2;
}

.ll-gbp-report-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ll-gbp-report-card__header h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.ll-gbp-report-card__header p {
  color: #374151;
  line-height: 1.4;
}

.ll-gbp-headline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.ll-gbp-headline-arrow {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
  flex: 0 0 auto;
}

.ll-gbp-headline-arrow.is-good {
  color: #2e7d32;
}

.ll-gbp-headline-arrow.is-bad {
  color: #c62828;
}

.ll-gbp-lookup-missing {
  border-left: 5px solid #d32f2f;
  padding-left: 14px;
}

.ll-gbp-cta-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.ll-gbp-cta-link {
  font-size: 1.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.ll-gbp-last-checked {
  margin: 0 0 10px;
  color: #666;
  font-size: 13px;
  font-weight: 400;
}

.ll-gbp-repair-cta {
  margin-top: 14px;
}

.ll-gbp-info-link-wrap {
  margin: 14px 0;
}

.ll-gbp-setup-help-copy,
.ll-gbp-post-payment-server {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  line-height: 1.5;
}

.ll-gbp-setup-help-copy p:first-child,
.ll-gbp-post-payment-server p:first-child {
  margin-top: 0;
}

.ll-gbp-setup-help-copy p:last-child,
.ll-gbp-post-payment-server p:last-child {
  margin-bottom: 0;
}

.ll-gbp-repair-checkout {
  margin-top: 16px;
}

.ll-gbp-setup-help-copy .ll-gbp-repair-checkout {
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

/* =========================
   GBP Candidate Selection
   ========================= */

.ll-gbp-candidate-selection {
  max-width: 860px;
}

.ll-gbp-candidate-selection h2 {
  margin-top: 0;
}

.ll-gbp-candidate-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  max-height: 420px;
  overflow: auto;
}

.ll-gbp-candidate-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.ll-gbp-candidate-row:hover {
  border-color: #0073aa;
  background: #f8fafc;
}

.ll-gbp-candidate-row input {
  margin-top: 4px;
}

.ll-gbp-candidate-body {
  display: grid;
  gap: 4px;
  line-height: 1.35;
}

.ll-gbp-candidate-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ll-gbp-candidate-score {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 2px 8px;
}

.ll-gbp-candidate-address,
.ll-gbp-candidate-phone {
  color: #374151;
}

.ll-gbp-candidate-reasons {
  color: #6b7280;
}

.ll-gbp-candidate-warning {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 4px solid #d97706;
  background: #fffbeb;
}

.ll-gbp-candidate-actions {
  margin-top: 14px;
}

/* =========================
   GBP Assessment Form
   ========================= */

.ll-gbp-assessment-form {
  max-width: 860px;
  margin: 0 auto;
  padding: 4px 0 16px;
}

.ll-gbp-assessment-form .ll-step {
  display: none;
}

.ll-gbp-assessment-form .ll-step.ll-step-active {
  display: block;
}

.ll-step-progress {
  margin: 8px 0 22px;
}

.ll-progress-track {
  position: relative;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 4px 10px;
}

.ll-progress-indicator {
  width: 16.6667%;
  height: 100%;
  background: #0073aa;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.ll-step-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

.ll-step-labels li {
  margin: 0;
  padding: 0;
}

.ll-step-labels li.active {
  color: #0073aa;
  font-weight: 700;
}

.ll-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ll-field {
  margin: 0 0 14px;
}

.ll-field label,
.ll-field legend {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
  color: #111827;
}

.ll-field input[type="text"],
.ll-field input[type="tel"],
.ll-field input[type="url"],
.ll-field input[type="email"],
.ll-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  box-sizing: border-box;
}

.ll-field textarea {
  min-height: 100px;
}

.ll-check-group,
.ll-radio-group {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #f9fafb;
}

.ll-checkbox-line,
.ll-radio-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  line-height: 1.4;
}

.ll-gbp-assessment-scope-box {
  border-left: 5px solid #0073aa;
  padding: 12px 14px;
  margin: 12px 0 16px;
  background: #f0f6fc;
}

.ll-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.ll-step-actions .submit-final {
  display: none;
}

.ll-gbp-assessment-form.is-final-step .next-step {
  display: none;
}

.ll-gbp-assessment-form.is-final-step .submit-final {
  display: inline-block;
}

.required {
  color: #d63638;
}

/* =========================
   GBP Report Details
   ========================= */

.ll-toggle-details {
  margin-top: 6px;
  display: inline-block;
  font-size: 12px !important;
  line-height: 1.2;
  color: #222 !important;
  border: 1px solid #ddd;
  background: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.ll-toggle-details:hover {
  background: #f5f5f5;
}

.ll-gbp-presence-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  text-align: left;
}

.ll-gbp-competition-section .ll-gbp-presence-list {
  max-width: 230px;
  margin: 10px auto 0;
}

.ll-gbp-presence-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 6px;
  align-items: start;
  margin: 0;
  line-height: 1.25;
  font-size: 16px;
}

.ll-gbp-presence-icon {
  font-weight: 700;
  text-align: center;
}

.ll-gbp-presence-icon.is-ok {
  color: #2e7d32;
}

.ll-gbp-presence-icon.is-bad {
  color: #c62828;
}

/* =========================
   Google Report Buttons
   ========================= */

.ll-owner-google-score-btn,
.ll-owner-gbp-score-btn,
.ll-owner-report-btn {
  display: flex;
  justify-content: center;
}

.ll-owner-google-score-btn {
  margin: 10px 0 14px;
}

.ll-gbp-inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  min-width: 0;
}

.ll-google-score-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--ll-color-primary, #0073aa);
  border-radius: 8px;
  color: var(--ll-color-primary, #0073aa);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  outline: none;
  appearance: none;
  white-space: nowrap;
  max-width: 100%;
  box-shadow: none;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    color 0.12s ease;
}

.ll-google-score-btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.ll-google-g-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
}

.ll-google-score-btn-label {
  display: inline-block;
  line-height: 1.3;
  font-size: 1.6rem;
}

.ll-owner-report-btn .ll-google-score-btn,
.ll-owner-report-btn .ll-btn,
.ll-owner-report-btn button,
.ll-owner-report-btn a {
  width: auto;
  min-width: 180px;
  max-width: 100%;
  background: #fff !important;
  color: var(--ll-color-primary, #0073aa) !important;
  border: 1px solid var(--ll-color-primary, #0073aa) !important;
  box-shadow: none !important;
}

.ll-owner-report-btn .ll-google-score-btn:hover,
.ll-owner-report-btn .ll-btn:hover,
.ll-owner-report-btn button:hover,
.ll-owner-report-btn a:hover {
  background: #fff !important;
  color: var(--ll-color-primary-hover, #005f8d) !important;
  border-color: var(--ll-color-primary-hover, #005f8d) !important;
  box-shadow: 0 0 0 2px var(--ll-color-primary-hover, #005f8d) inset !important;
}


.ll-gbp-lookup-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.ll-gbp-lookup-heading {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.2;
}

.ll-gbp-lookup-explainer {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.6;
    color: #444;
}

.ll-gbp-lookup-intro {
    margin: 0 0 14px;
    font-size: 16px;
    color: #444;
}

.ll-gbp-lookup-box {
    padding: 18px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fbff;
}

.ll-gbp-lookup-form input[type="text"],
.ll-gbp-lookup-form input[type="tel"],
.ll-gbp-lookup-form input[type="email"],
.ll-gbp-lookup-form textarea,
.ll-gbp-lookup-form select {
    background: #fff !important;
    background-color: #fff !important;
    color: #222;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 10px 12px;
    box-shadow: none;
}


/* =========================
   GBP Checkout Modal
   ========================= */

.ll-gbp-checkout-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: block !important;
}

.ll-gbp-checkout-modal * {
  box-sizing: border-box;
}

.ll-gbp-checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.ll-gbp-checkout-modal__dialog {
  position: relative;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  padding: 22px;
}

.ll-gbp-checkout-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ll-gbp-checkout-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.ll-gbp-checkout-modal__left,
.ll-gbp-checkout-modal__right {
  min-width: 0;
}

.ll-gbp-checkout-modal__left {
  padding-right: 18px;
  border-right: 1px solid #e5e7eb;
}

.ll-gbp-checkout-modal__right h2,
.ll-gbp-checkout-info h2 {
  margin-top: 0;
}

.ll-gbp-checkout-info {
  font-size: 15px;
  line-height: 1.55;
}

.ll-gbp-checkout-info ul {
  margin: 12px 0 0 20px;
}

.ll-gbp-checkout-info li {
  margin: 0 0 8px;
}

.ll-gbp-checkout-modal .ll-gbp-repair-checkout {
  margin-top: 12px;
}

@media (max-width: 800px) {
  .ll-gbp-checkout-modal__grid {
    grid-template-columns: 1fr;
  }

  .ll-gbp-checkout-modal__left {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 700px) {
  .ll-grid-2 {
    grid-template-columns: 1fr;
  }

  .ll-step-labels {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 8px;
  }
}