/* business-dashboard.css */

/* Column clamp */
.post-list-table td.post-info {
  width: 220px;
  max-width: 220px;
  text-align: center;
  vertical-align: top;
}

/* Unified thumbnail rules for ALL post types */
.post-list-table td.post-info img.ll-thumb {
  display: block;
  max-width: 100%;
  height: auto !important;
  max-height: 120px;
  width: auto;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain !important;
  background: white;
}

/* Remove overlay title inside thumbnails */
.post-list-table td.post-info .ll-thumb-title {
  display: none !important;
}

/* Title below image */
.post-list-table td.post-info .ll-title {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  color: #111;
  word-break: break-word;
  text-decoration: none !important;
}

/* Hide “Business / Expires” lines in dashboard list */
.post-list-table td.post-info .ll-type,
.post-list-table td.post-info .ll-badges {
  display: none !important;
}

/* Middle column width & spacing */
.post-list-table.ll-post-list td.post-meta {
  vertical-align: top;
}

.post-list-table.ll-post-list td.post-meta .ll-news-meta {
  margin-bottom: 0;
}

.post-list-table.ll-post-list td.post-meta .ll-recurrence {
  font-weight: 400;
}

.post-list-table.ll-post-list td.post-meta .ll-when-venue strong {
  font-weight: 500;
}

/* Postcard Areas */

.ll-postcard-interest-status {
  transition: color 0.2s ease;
}

.ll-postcard-interest-status-saving {
  color: #555;
}

.ll-postcard-interest-status-success {
  color: #1d7f3f;
}

.ll-postcard-interest-status-error {
  color: #b32d2e;
}

.ll-postcard-interest-row.ll-postcard-row-saved {
  background-color: #e6ffed !important;
  transition: background-color 0.6s ease;
}

.ll-postcard-interest-table.ll-postcard-table-error {
  animation: ll-postcard-table-shake 0.3s;
}

@keyframes ll-postcard-table-shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-3px); }
  50%  { transform: translateX(3px); }
  75%  { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

.ll-postcard-name-highlight {
  color: #009245 !important;
  font-weight: 700 !important;
  transition: color 0.8s ease, font-weight 0.8s ease;
}

/* Remove horizontal lines & borders from table rows */
.ll-postcard-interest-table,
.ll-postcard-interest-table tr,
.ll-postcard-interest-table td {
  border: none !important;
  box-shadow: none !important;
}

/* Remove default WP striped background */
.ll-postcard-interest-table tr:nth-child(odd),
.ll-postcard-interest-table tr:nth-child(even) {
  background: transparent !important;
}

/* Wrapper: center the whole block */
.ll-postcard-interest-table-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Two-column layout container */
.ll-postcard-interest-columns {
  display: flex;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 900px;
}

/* Each column */
.ll-postcard-interest-column {
  flex: 1 1 0;
}

/* Tables fill their column */
.ll-postcard-interest-table {
  width: 100% !important;
  max-width: none !important;
}

.ll-green-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.ll-green-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.6em;
}

.ll-green-list li::before {
  content: "\27A4";
  position: absolute;
  left: 0;
  top: 0.2em;
  font-size: 1.2em;
  font-weight: 900;
  color: #2f9e44;
  line-height: 1;
}

.ll-interest-label-active {
  color: #2f9e44;
  font-weight: 700;
}

/* Start Here link colors */
#start-here-content a {
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Reduce vertical spacing in postcard interest lists */
.ll-postcard-interest-table td {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  line-height: 1.1 !important;
}

.ll-postcard-interest-row td:first-child {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

.ll-postcard-interest-row {
  height: auto !important;
}

.post-list-table td.ll-row-wrap {
  padding: 0;
}

.post-list-table .ll-row-title {
  text-align: left;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  padding: 12px 12px;
}

.post-list-table .ll-row-title-link {
  text-decoration: none;
}

.post-list-table .ll-row-body {
  display: flex;
  gap: 16px;
  padding: 12px 12px;
  align-items: flex-start;
}

.post-list-table .ll-row-body .post-info {
  width: 220px;
  max-width: 220px;
  text-align: center;
}

.post-list-table .ll-right-col {
  flex: 1;
  min-width: 0;
}

/* Status toggle */

.ll-status-toggle-wrap,
.ll-status-toggle-wrap--dashboard {
  display: inline-flex;
  align-items: center;
}

.ll-status-pill-toggle {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.ll-status-pill-toggle input.ll-status-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ll-status-pill-toggle__track {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 180px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #aeb4bb;
  background: linear-gradient(180deg, #eeeeee 0%, #d6d6d6 100%);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.7),
    inset 0 -2px 3px rgba(0,0,0,0.08),
    0 1px 2px rgba(0,0,0,0.12);
  transition: background 0.22s ease, border-color 0.22s ease;
}

.ll-status-pill-toggle__text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.ll-status-pill-toggle__text--inactive {
  right: 22px;
  color: #4b5563;
  opacity: 1;
}

.ll-status-pill-toggle__text--active {
  left: 22px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  opacity: 0;
}

.ll-status-pill-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  z-index: 2;
  background:
    radial-gradient(circle at 35% 35%, #ffffff 0%, #f0f0f0 28%, #d8d8d8 68%, #bebebe 100%);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.22),
    inset 0 1px 2px rgba(255,255,255,0.9),
    inset 0 -1px 2px rgba(0,0,0,0.14);
  transition: transform 0.22s ease;
  pointer-events: none;
}

.ll-status-pill-toggle input.ll-status-toggle:checked + .ll-status-pill-toggle__track {
  background: linear-gradient(180deg, #22e548 0%, #08c931 100%);
  border-color: #08b52c;
}

.ll-status-pill-toggle input.ll-status-toggle:checked + .ll-status-pill-toggle__track .ll-status-pill-toggle__knob {
  transform: translateX(132px);
}

.ll-status-pill-toggle input.ll-status-toggle:checked + .ll-status-pill-toggle__track .ll-status-pill-toggle__text--inactive {
  opacity: 0;
}

.ll-status-pill-toggle input.ll-status-toggle:checked + .ll-status-pill-toggle__track .ll-status-pill-toggle__text--active {
  opacity: 1;
}

.ll-status-pill-toggle input.ll-status-toggle:focus-visible + .ll-status-pill-toggle__track {
  outline: 3px solid rgba(59,130,246,0.45);
  outline-offset: 3px;
}

.ll-status-pill-toggle input.ll-status-toggle:disabled + .ll-status-pill-toggle__track {
  opacity: 0.65;
  cursor: not-allowed;
}

.ll-owner-publish-toggle-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
}

.ll-owner-publish-toggle-inner {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ll-owner-publish-toggle-inner .ll-status-toggle-wrap,
.ll-owner-publish-toggle-inner .ll-status-toggle-wrap--dashboard {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ll-owner-publish-toggle-inner .ll-status-pill-toggle {
  display: block;
  margin: 0 auto;
}

.ll-owner-publish-toggle-inner .ll-status-pill-toggle__track {
  display: block;
  margin: 0 auto;
}

.ll-row-title .ll-giveaway-drawing {
  font-size: 0.85em;
  font-weight: 400;
  opacity: 0.75;
  margin-left: 6px;
}

/* Interview input */

.ll-interview-input-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: flex-end;
  flex-wrap: nowrap;
}

.ll-interview-input-row .ll-interview-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.35;
  border: 2px solid #111;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
}

.ll-interview-input-row .ll-interview-send {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0 16px;
  height: 46px;
}

/* Review & Edit button tweaks */
.ll-interview-btn-review {
  background: #b10000 !important;
  border-color: #b10000 !important;
  color: #fff !important;
  padding: 4px 10px !important;
  min-height: 30px !important;
  line-height: 1.2 !important;
}

.ll-interview-btn-review:hover,
.ll-interview-btn-review:focus {
  background: #8f0000 !important;
  border-color: #8f0000 !important;
  color: #fff !important;
}

.ll-promote-post--disabled,
.ll-promote-post:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}

#ll-client-survey .ll-postcard-interested-businesses h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.35;
}

.ll-social-proof-note {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-left: 4px solid #075dcc;
  background: #f7faff;
  color: #334155;
  font-size: 20px;
}

.ll-business-required-notice {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 18px 22px;
}

.ll-business-required-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 5px solid #c62828;
  border-radius: 50%;
  color: #c62828;
  font-size: 34px;
  font-weight: 800;
  line-height: 44px;
  text-align: center;
  margin-top: 2px;
}

.ll-business-required-content h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.25;
}

.ll-business-required-content p {
  margin: 0 0 14px;
}

.ll-business-required-content p:last-child {
  margin-bottom: 0;
}

/* Sponsored Newsletter Ads */

.ll-newsletter-sponsorship-inline {
  max-width: 1100px;
  margin: 0 auto 2em;
}

.ll-newsletter-sponsorship-hero {
  margin-bottom: 24px;
}

.ll-newsletter-sponsorship-hero__image-wrap {
  position: relative;
  overflow: visible;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.10),
    0 24px 48px rgba(0, 0, 0, 0.08);
}

#ll-client-survey .ll-newsletter-sponsorship-hero__image,
.ll-newsletter-sponsorship-hero__image {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

#ll-client-survey .ll-community-card-hero__image.ll-newsletter-sponsorship-hero__image {
  max-height: none !important;
  height: auto !important;
  object-fit: contain !important;
}

.ll-newsletter-sponsorship-callout {
  position: absolute;
  top: 240px;
  right: -50px;
  max-width: 220px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #dc2626;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

.ll-ns-inline-composer {
  max-width: 800px;
  margin: 24px auto 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
}

/* Sponsored Newsletter Ads Calendar */

.ll-ns-inline-calendar-wrap {
  max-width: 900px;
  margin: 0 auto 22px;
  padding: 16px;
  border: 1px solid #d7e3ef;
  border-radius: 8px;
  background: #fff;
}

.ll-ns-inline-calendar-wrap h3 {
  margin: 0 0 10px;
  text-align: center;
}

.ll-ns-inline-calendar-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 13px;
}

.ll-ns-inline-calendar-key {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 3px;
  vertical-align: -1px;
}

.ll-ns-inline-calendar-key--mine,
.ll-ns-inline-calendar-cell.is-paid-mine .ll-ns-inline-calendar-day {
  background: #0b72d9;
}

.ll-ns-inline-calendar-key--other,
.ll-ns-inline-calendar-cell.is-paid-other .ll-ns-inline-calendar-day {
  background: #f59e0b;
}

.ll-ns-inline-calendar-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ll-ns-inline-calendar-month {
  border: 1px solid #d7e3ef;
  border-radius: 6px;
  overflow: visible;
}

.ll-ns-inline-calendar-month-title {
  padding: 8px;
  font-weight: 700;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid #d7e3ef;
}

.ll-ns-inline-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.ll-ns-inline-calendar-grid--days {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  background: #f1f5f9;
}

.ll-ns-inline-calendar-grid--days div {
  padding: 5px 2px;
}

.ll-ns-inline-calendar-cell {
  position: relative;
  min-height: 38px;
  padding: 5px;
  border-top: 1px solid #edf2f7;
  border-left: 1px solid #edf2f7;
  font-size: 12px;
}

.ll-ns-inline-calendar-cell.is-empty {
  background: #fafafa;
}

.ll-ns-inline-calendar-day {
  width: 100%;
  min-height: 28px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ll-ns-inline-calendar-popover {
  display: none;
  position: absolute;
  z-index: 50;
  left: 50%;
  top: 34px;
  width: 300px;
  padding: 12px;
  transform: translateX(-50%);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.ll-ns-inline-calendar-cell:hover .ll-ns-inline-calendar-popover,
.ll-ns-inline-calendar-cell:focus-within .ll-ns-inline-calendar-popover {
  display: block;
}

.ll-ns-inline-calendar-popover strong,
.ll-ns-inline-calendar-popover span,
.ll-ns-inline-calendar-popover em {
  display: block;
  margin-bottom: 5px;
}

.ll-ns-inline-calendar-preview {
  margin-top: 8px;
  max-height: 180px;
  overflow: auto;
}

.ll-ns-inline-calendar-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Dashboard mobile card layout */

@media (max-width: 1200px) {
  .posts-container {
    width: 100%;
  }

  .post-list-table,
  .post-list-table tbody,
  .post-list-table tr,
  .post-list-table td {
    display: block;
    width: 100%;
  }

  .post-list-table.ll-post-list {
    border-collapse: separate;
    border-spacing: 0 14px;
  }

  .post-list-table .ll-dashboard-row {
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
  }

  .post-list-table td.ll-row-wrap {
    padding: 0;
  }

  .post-list-table .ll-row-title {
    font-size: 18px;
    line-height: 1.25;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #edf2f7;
  }

  .post-list-table .ll-row-body {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .post-list-table .ll-left-col,
  .post-list-table .ll-middle-col,
  .post-list-table .ll-right-col {
    width: 100%;
    max-width: 100%;
  }

  .post-list-table .ll-row-body .post-info,
  .post-list-table td.post-info {
    width: 100%;
    max-width: 100%;
  }

  .post-list-table td.post-info img.ll-thumb,
  .post-list-table .post-info img.ll-thumb {
    max-height: 130px;
    max-width: 100%;
    margin: 0 auto;
  }

  .post-actions {
    width: 100%;
  }

  .ll-actions-line-1,
  .ll-actions-line-2 {
    width: 100%;
    justify-content: center;
  }

  .ll-actions-line-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch !important;
  }

  .ll-actions-line-2 > * {
    width: 100%;
    margin: 0 !important;
  }

  .ll-actions-line-2 .ll-btn,
  .ll-actions-line-2 button,
  .ll-actions-line-2 a {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .ll-gbp-inline-actions {
    width: 100%;
  }

  .ll-google-score-btn {
    width: 100%;
  }

  .ll-status-pill-toggle__track {
    width: 120px;
    height: 38px;
  }

  .ll-status-pill-toggle__text {
    font-size: 11px;
  }

  .ll-status-pill-toggle__text--inactive {
    right: 14px;
  }

  .ll-status-pill-toggle__text--active {
    left: 14px;
  }

  .ll-status-pill-toggle__knob {
    width: 32px;
    height: 32px;
  }

  .ll-status-pill-toggle input.ll-status-toggle:checked
  + .ll-status-pill-toggle__track .ll-status-pill-toggle__knob {
    transform: translateX(82px);
  }

  .status-text {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px !important;
    line-height: 1.25;
  }
}

@media (max-width: 900px) {
  .ll-ns-inline-calendar-months {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .ll-newsletter-sponsorship-hero__image-wrap {
    padding: 6px;
  }

  .ll-newsletter-sponsorship-callout {
    position: static !important;
    display: block;
    max-width: 220px;
    margin: 10px auto 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    transform: none !important;
  }
}

@media (max-width: 700px) {
  .ll-ns-inline-calendar-wrap {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    box-sizing: border-box;
  }

  .ll-ns-inline-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .ll-ns-inline-calendar-cell {
    min-width: 0;
    padding: 2px;
    box-sizing: border-box;
  }

  .ll-ns-inline-calendar-day {
    width: auto;
    min-width: 22px;
    max-width: 100%;
    min-height: 22px;
    padding: 0 2px;
    font-size: 10px;
    box-sizing: border-box;
  }
}