/* 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 */
#dashboard-modal .dashboard-modal-overlay {
  display: none;                /* closed */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay-bg);
  justify-content: center;
  align-items: center;
  z-index: 999999;              /* force on top; later you can swap back to var(--modal-z) */
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
}

#dashboard-modal.is-open .dashboard-modal-overlay {
  display: flex;                /* open */
}
