/* business-dashboard.css */

/* Column clamp (keeps left column narrow and tidy) */
.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;  /* protects against any override */
  background: white;               /* optional: avoids dark bars on contain */
}

/* Remove the 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;
}

#dashboard-modal .payment-header {
  text-align: center;
}

#dashboard-modal .product-name {
  margin: 0;
  font-size: 1.5em;
}

#dashboard-modal .product-description {
  margin: 0.25em 0 1em;
  color: #555;
}

#dashboard-modal .total-due {
  margin-top: 0.5em;
}

/* 1) Root exists in DOM but does NOT control layout anymore */
.dashboard-modal {
  /* keep it in DOM; don't rely on this being display:none */
  position: relative;
}

/* 2) Overlay is the thing that actually shows/hides */
.dashboard-modal .dashboard-modal-overlay {
  display: none;                /* hidden by default */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay-bg);
  justify-content: center;
  align-items: center;
  z-index: var(--modal-z);
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* 3) When open, show overlay (flex) */
.dashboard-modal.is-open .dashboard-modal-overlay {
  display: flex;
}

/* Modal card */
.dashboard-modal .dashboard-modal-content {
  position: relative;
  background: var(--modal-content-bg);
  border-radius: var(--radius-md);
  width: 90vw;
  max-width: var(--modal-max-w);
  max-height: 95vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--shadow-modal);
}

/* Close row pinned to top */
.dashboard-modal .modal-close-wrapper {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  z-index: calc(var(--modal-z) + 1);
  margin-bottom: -10px;

  /* Important: don't block clicks on the content beneath */
  pointer-events: none;
}
.dashboard-modal .modal-close-wrapper .close-popup {
  pointer-events: auto;
}

/* “X” button */
.dashboard-modal .close-popup {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  transition: background-color .2s ease, color .2s ease;
}
.dashboard-modal .close-popup:hover {
  background: #f0f0f0;
  color: #0073aa;
}

/* Headings / intro rows within modal */
.dashboard-modal .modal-header,
.dashboard-modal .dashboard-modal-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: inherit;
  padding: 10px;
  z-index: calc(var(--modal-z) + 1);
}
.dashboard-modal .dashboard-modal-header h2,
.dashboard-modal .dashboard-modal-header h3 {
  text-align: center;
}

/* Text blocks used in several modals */
.dashboard-modal .dashboard-modal-lines p,
.dashboard-modal .modal-lines p {
  margin: 4px 0;
  color: #555;
  text-align: left;
  font-size: 14px;
}

/* Small screens: slightly tighter card */
@media (max-width: 480px) {
  .dashboard-modal .dashboard-modal-content {
    padding: 16px;
    width: 94vw;
  }
}

/* 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; } /* non-bold */
.post-list-table.ll-post-list td.post-meta .ll-when-venue strong { font-weight: 500; } /* venue bold */


/* Postcard Areas */

/* Status colors / animation */
.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); }
}


/* Temporary strong visual confirmation */
.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; /* space for the icon */
  margin-bottom: 0.6em;
}

/* Bold right arrow bullet */
.ll-green-list li::before {
  content: "\27A4";              /* ➤ Heavy right arrow */
  position: absolute;
  left: 0;
  top: 0.2em;                    /* ← raise/lower the arrow */
  font-size: 1.2em;
  font-weight: 900;
  color: #2f9e44;
  line-height: 1;                /* helps alignment */
}

.ll-interest-label-active {
  color: #2f9e44;
  font-weight: 700;
}

/* Start Here link colors */
#start-here-content a {
  text-decoration: none; /* keep your styling */
  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;
}

/* Optional: shrink checkbox cell even more */
.ll-postcard-interest-row td:first-child {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

.ll-postcard-interest-row {
  height: auto !important;
}

/* Modal root should NEVER be display:none in overlay-driven model */
#dashboard-modal.dashboard-modal {
  display: block !important;
  position: relative; /* ok */
}

/* Overlay controls open/close */
/* Keep dashboard modal below WP Media modal */
#dashboard-modal .dashboard-modal-overlay {
  z-index: 100000 !important;
}

/* WP Media: backdrop must be BELOW the modal */
.media-modal-backdrop {
  z-index: 160000 !important;
}

/* WP Media: modal/wrap must be ABOVE backdrop */
.media-modal-wrap,
.media-modal {
  z-index: 160010 !important;
}

/* Sometimes the actual frame needs a bump too */
.media-frame,
.media-frame-content {
  z-index: 160020 !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;
}





.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;
}

/* TRACK */
.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;
}

/* TEXT */
.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;
}

/* RIGHT SIDE (OFF / INACTIVE) */
.ll-status-pill-toggle__text--inactive {
  right: 22px;
  color: #4b5563;
  opacity: 1;
}

/* LEFT SIDE (ON / ACTIVE) */
.ll-status-pill-toggle__text--active {
  left: 22px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  opacity: 0;
}

/* KNOB */
.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;
}

/* ACTIVE STATE */
.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;
}

/* KNOB MOVE */
.ll-status-pill-toggle input.ll-status-toggle:checked + .ll-status-pill-toggle__track .ll-status-pill-toggle__knob {
  transform: translateX(132px);
}

/* TEXT SWAP */
.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;
}

/* FOCUS */
.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;
}

/* DISABLED */
.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;      /* smaller than title */
  font-weight: 400;      /* normal (non-bold) */
  opacity: 0.75;         /* optional: de-emphasize */
  margin-left: 6px;      /* breathing room */
}

.ll-interview-input-row{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: flex-end;   /* keeps button aligned to bottom when textarea grows */
  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;        /* ✅ user can make it taller */
}

.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;

  /* reduced padding */
  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;
}
