/* ============================================================
   WMB Membership — styles
   Follows the CleanBuild Pro colour/typography conventions:
     Primary   #c1856e  |  Secondary  #8a664d
     Body font avenir-lt-pro  |  Heading font capitolium-2
   ============================================================ */


/* ─── Badges ─────────────────────────────────────────────── */

.wmb-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
/* Pro = solid dark, Online = light tint + outline — distinct by weight,
   not just shade, while staying in the brand browns/terracotta. */
.wmb-badge--pro       { background: #3f2b1f; color: #fff; border: 1px solid #3f2b1f; }
.wmb-badge--online    { background: #f8ece6; color: #a35f47; border: 1px solid #e3c2b4; }
.wmb-badge--approved  { background: #2ecc71; color: #fff; }
.wmb-badge--pending   { background: #e67e22; color: #fff; }
.wmb-badge--unbooked  { background: #b0a9a1; color: #fff; }
.wmb-badge--sub       { background: #3498db; color: #fff; }
.wmb-badge--former    { background: #b0a9a1; color: #fff; }
.wmb-badge--declined  { background: #c0392b; color: #fff; }
.wmb-badge--expiring  { background: #f6e4dc; color: #a4664f; border: 1px solid #c1856e; padding: 1px 8px; font-size: 11px; margin-left: 4px; white-space: nowrap; }


/* ─── Notices ────────────────────────────────────────────── */

.wmb-notice {
  padding: 16px 20px;
  margin-bottom: 30px;
  border-radius: 4px;
}
.wmb-notice p          { margin: 0; color: #fff; font-weight: 600; }
.wmb-notice a          { color: #fff; text-decoration: underline; }
.wmb-notice--success   { background: #2ecc71; }
.wmb-notice--error     { background: #e74c3c; }
.wmb-notice--warning   { background: #e67e22; }
.wmb-notice--info      { background: #3498db; }


/* ─── Member profile layout ──────────────────────────────── */
/* Avatar overlaps a floating, shadowed card — breaks the flat
   banner→content seam for a bit more depth than a plain sidebar. */

.wmb-profile-aside {
  flex: 0 0 300px;
  position: sticky;
  top: 175px;
  align-self: flex-start;
  margin-top: -130px;
}

@media only screen and (max-width: 980px) {
  .member-profile .flex.wmb-profile-layout {
    flex-direction: column;
    gap: 40px !important;
  }
  .wmb-profile-aside {
    flex: 0 0 auto !important;
    width: 100%;
    position: static;
    text-align: center;
    margin-top: -80px;
  }
}

.wmb-profile-avatar {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  margin: 0 auto -50px;
  padding: 6px;
  background: linear-gradient(135deg, #c1856e 0%, #8a664d 100%);
  box-shadow: 0 18px 34px -12px rgba(138, 102, 77, 0.55);
  position: relative;
  z-index: 2;
}
.wmb-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  border: 4px solid #fff;
}

.wmb-profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 62px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 60px -28px rgba(43, 28, 17, 0.28), 0 2px 10px rgba(43, 28, 17, 0.06);
  position: relative;
  z-index: 1;
}

.wmb-profile-level {
  text-align: center;
  margin-bottom: 12px;
}
.wmb-profile-level .wmb-badge {
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.25);
}

.wmb-profile-location {
  font-size: 14px;
  font-weight: 600;
  color: #8a664d;
  text-align: center;
  margin: 0 0 12px;
}
.wmb-profile-location i { color: #c1856e; margin-right: 5px; }

.wmb-profile-expiry {
  font-size: 14px;
  color: #878787;
  text-align: center;
  margin: 0 0 12px;
}
.wmb-profile-expiry i { color: #c1856e; margin-right: 5px; }

/* ─── Expertise tags ─────────────────────────────────────── */
/* Profile aside (links to a directory search), directory cards, and the
   chip input on the profile forms (assets/js/membership.js). */

.wmb-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.wmb-tags li { margin: 0; padding: 0; }
.wmb-tags li::before { display: none; }

.wmb-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #f8ece6;
  border: 1px solid #e3c2b4;
  color: #8a664d;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}
a.wmb-tag:hover,
a.wmb-tag:focus { background: #c1856e; border-color: #c1856e; color: #fff; }

.wmb-member-tags { margin: 4px 0 12px; }
.wmb-member-tags .wmb-tag { font-size: 12px; padding: 2px 9px; }

.wmb-tag-input-list { justify-content: flex-start; margin-bottom: 8px; }
.wmb-tag-input-list:empty { display: none; }
.wmb-tag-remove {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 -3px 0 0;
  font-size: 16px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
}
.wmb-tag-remove:hover { color: #c0392b; }
.wmb-tag-input-entry:disabled { opacity: .6; cursor: not-allowed; }
.wmb-tag-input-count { margin-top: 6px; }

.wmb-profile-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.wmb-profile-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #f0e6de;
  background: #fdfbf9;
  color: #8a664d;
  font-size: 17px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.wmb-profile-social a:hover {
  background: linear-gradient(135deg, #c1856e 0%, #8a664d 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -6px rgba(138, 102, 77, 0.5);
}

.wmb-edit-toggle {
  margin-top: 20px !important;
  width: 100%;
  text-align: center;
}


/* ─── Profile bio ────────────────────────────────────────── */

.wmb-profile-bio {
  margin-bottom: 40px;
}
.wmb-profile-bio h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 24px;
}
.wmb-profile-bio h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c1856e, #8a664d);
}
.wmb-profile-bio-inner {
  position: relative;
  max-width: 100%;
  background: #fdfbf9;
  border: 1px solid #f0ede9;
  border-radius: 16px;
  padding: 32px 36px;
  line-height: 1.8;
  box-shadow: 0 20px 40px -30px rgba(43, 28, 17, 0.3);
}
.wmb-profile-bio-quote {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 32px;
  color: #e6d5ca;
  z-index: 0;
}
.wmb-profile-bio-inner p {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  line-height: 1.7;
}
.wmb-profile-bio-inner p:last-of-type { margin-bottom: 0; }

/* Embeds (YouTube etc.) pasted into a bio/company bio — keep them full-width
   and correctly proportioned inside the card rather than the provider's
   default fixed pixel size. */
.wmb-profile-bio-inner iframe,
.wmb-profile-bio-inner embed,
.wmb-profile-bio-inner object {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 20px 0;
  border: 0;
  border-radius: 8px;
}


/* ─── Profile company + recommendations ─────────────────── */

.wmb-profile-company,
.wmb-profile-recommendations {
  margin-bottom: 40px;
}
.wmb-profile-company h2,
.wmb-profile-recommendations h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 24px;
}
.wmb-profile-company h2::before,
.wmb-profile-recommendations h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c1856e, #8a664d);
}
/* Testimonials ("What Clients Say") — quote cards matching the bio card
   above, in a slider showing 2 at a time (1 on smaller screens) — see
   js/site.js. Before/without the slider they just stack. */
.wmb-recommendations-slider:not(.slick-initialized) .wmb-recommendation-slide + .wmb-recommendation-slide {
  margin-top: 24px;
}
.wmb-recommendations-slider.slick-initialized .slick-list {
  margin: 0 -12px;
  padding-bottom: 30px; /* room for the card shadow, which overflow:hidden would clip */
}
.wmb-recommendations-slider.slick-initialized .slick-track {
  display: flex;
}
.wmb-recommendations-slider.slick-initialized .wmb-recommendation-slide {
  height: auto;
  display: flex;
  padding: 0 12px;
}
.wmb-recommendations-slider.slick-initialized .wmb-recommendation {
  width: 100%;
}
.wmb-recommendations-slider .slick-dots {
  margin-top: 0;
}
.wmb-recommendation {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #fdfbf9;
  border: 1px solid #f0ede9;
  border-radius: 16px;
  padding: 32px 30px 28px;
  box-shadow: 0 20px 40px -30px rgba(43, 28, 17, 0.3);
}
.wmb-recommendation-icon {
  font-size: 26px;
  color: #e6d5ca;
  margin-bottom: 14px;
}
.wmb-recommendation blockquote {
  flex: 1 1 auto;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
.wmb-recommendation blockquote p {
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: #2b1c11;
  margin: 0;
}
.wmb-recommendation figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 18px;
  border-top: 1px solid #f0ede9;
}
/* "Read more" on long quotes — opens the full quote in the theme's shared
   .review-modal-wrap modal (inc/content/recommendation-modal.php). */
.wmb-recommendation .read-more {
  display: inline-block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  color: #c1856e;
  text-decoration: underline;
  cursor: pointer;
  transition: color .3s ease;
}
.wmb-recommendation .read-more:hover,
.wmb-recommendation .read-more:focus { color: #8a664d; }
.wmb-recommendation-modal .wmb-recommendation {
  box-shadow: none;
  border: 0;
  padding: 44px 40px 32px;
}
.wmb-recommendation-modal blockquote p {
  font-size: 18px;
}
@media only screen and (max-width: 500px) {
  .wmb-recommendation-modal .wmb-recommendation { padding: 44px 22px 24px; }
}

.wmb-recommendation-name {
  font-weight: 600;
  color: #8a664d;
}
.wmb-recommendation-company {
  font-size: 14px;
  color: #878787;
}
@media only screen and (max-width: 500px) {
  .wmb-recommendation { padding: 26px 22px 22px; }
  .wmb-recommendation blockquote p { font-size: 16px; }
}

/* Logo sits alongside the company description (stacks on smaller screens). */
.wmb-profile-company-body.has-logo {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.wmb-profile-company-body.has-logo .wmb-profile-bio-inner {
  flex: 1 1 auto;
  min-width: 0;
}
.wmb-profile-company-logo-wrap {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
  border: 1px solid #f0ede9;
  border-radius: 16px;
  box-shadow: 0 20px 40px -30px rgba(43, 28, 17, 0.3);
}
.wmb-profile-company-body:not(.has-logo) .wmb-profile-company-logo-wrap {
  display: inline-flex;
  width: 240px; /* logo only, no description */
}
.wmb-profile-company-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}
@media only screen and (max-width: 700px) {
  .wmb-profile-company-body.has-logo {
    flex-direction: column;
    gap: 20px;
  }
  .wmb-profile-company-logo-wrap {
    flex-basis: auto;
    width: 100%;
    max-width: 280px;
  }
}


/* ─── Profile "Send a message" (WMB_Member_Messages) ──────── */

.wmb-message-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
}
.wmb-message-modal .wmb-message-inner {
  background: #fff;
  border-radius: 16px;
  padding: 44px 40px 36px;
  text-align: left;
}
.wmb-message-modal h3 {
  margin: 0 0 10px;
  padding-right: 30px;
}
.wmb-message-modal .wmb-field-help {
  font-size: 15px;
  color: #6b5648;
  margin: 0 0 20px;
}
.wmb-message-modal textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  margin-bottom: 12px;
}
.wmb-message-status {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
}
.wmb-message-status:empty { display: none; }
.wmb-message-status.is-success { color: #2c6e34; }
.wmb-message-status.is-error   { color: #c0392b; }
@media only screen and (max-width: 500px) {
  .wmb-message-modal .wmb-message-inner { padding: 44px 22px 26px; }
}


/* ─── Profile / Application edit form ───────────────────── */

.wmb-edit-form {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #fafafa;
}
.wmb-edit-form h3 { margin-bottom: 24px; }
.wmb-edit-form h4 { margin: 30px 0 16px; }

.wmb-form-group {
  margin-bottom: 20px;
}
.wmb-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #8a664d;
}
.wmb-form-group label i { color: #c1856e; margin-right: 6px; }

.wmb-form-group input[type="text"],
.wmb-form-group input[type="url"],
.wmb-form-group input[type="email"],
.wmb-form-group input[type="password"],
.wmb-form-group select,
.wmb-form-group textarea {
  width: 100%;
  padding: 11px 20px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  font-family: 'avenir-lt-pro', sans-serif;
  font-size: 17px;
  color: #8a664d;
  transition: border-color 0.2s ease;
  appearance: none;
  margin-bottom: 0;
}
.wmb-form-group input[type="text"]:focus,
.wmb-form-group input[type="url"]:focus,
.wmb-form-group input[type="email"]:focus,
.wmb-form-group input[type="password"]:focus,
.wmb-form-group select:focus,
.wmb-form-group textarea:focus {
  outline: none;
  border-color: #c1856e;
}
.wmb-form-group input[type="file"] {
  padding: 8px 0;
  font-size: 15px;
}
.wmb-form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.wmb-field-help {
  font-size: 14px;
  color: #878787;
  margin: 6px 0 0;
}

/* Override the theme's global capitalised/bold placeholder styling —
   these fields use full descriptive hints, not short single words. */
.wmb-form-group input::-webkit-input-placeholder,
.wmb-form-group textarea::-webkit-input-placeholder,
.wmb-articles-table textarea::-webkit-input-placeholder {
  text-transform: none;
  font-weight: 400;
  color: #a19a93;
}
.wmb-form-group input:-moz-placeholder,
.wmb-form-group textarea:-moz-placeholder,
.wmb-articles-table textarea:-moz-placeholder {
  text-transform: none;
  font-weight: 400;
  color: #a19a93;
}
.wmb-form-group input::-moz-placeholder,
.wmb-form-group textarea::-moz-placeholder,
.wmb-articles-table textarea::-moz-placeholder {
  text-transform: none;
  font-weight: 400;
  color: #a19a93;
}
.wmb-form-group input:-ms-input-placeholder,
.wmb-form-group textarea:-ms-input-placeholder,
.wmb-articles-table textarea:-ms-input-placeholder {
  text-transform: none;
  font-weight: 400;
  color: #a19a93;
}
.wmb-form-group input::placeholder,
.wmb-form-group textarea::placeholder,
.wmb-articles-table textarea::placeholder {
  text-transform: none;
  font-weight: 400;
  color: #a19a93;
}

.wmb-required { color: #e74c3c; }

.wmb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
.wmb-form-group--full { grid-column: 1 / -1; }

@media only screen and (max-width: 720px) {
  .wmb-form-grid { grid-template-columns: 1fr; }
}

.wmb-social-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
@media only screen and (max-width: 720px) {
  .wmb-social-fields { grid-template-columns: 1fr; }
}

.wmb-recommendation-row {
  border: 1px solid #e6ded6;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
}
.wmb-recommendation-row textarea {
  width: 100%;
}
.wmb-recommendation-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin-top: 10px;
}
@media only screen and (max-width: 720px) {
  .wmb-recommendation-meta { grid-template-columns: 1fr; }
}
.wmb-recommendation-row .wmb-remove-recommendation {
  margin-top: 12px;
}

/* select wrapper arrow */
.wmb-form-group .select-wrap {
  position: relative;
}
.wmb-form-group .select-wrap::after {
  content: '\f107';
  font-family: 'Font Awesome 7 Pro';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #c1856e;
}


/* ─── "When would you like to start?" widget (page-apply.php) ──────────── */

.wmb-start-date-toggle {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.wmb-start-date-option {
  padding: 10px 20px;
  border: 1px solid #d8cec6;
  border-radius: 30px;
  background: #fff;
  color: #8a664d;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
.wmb-start-date-option:hover {
  border-color: #c1856e;
}
.wmb-start-date-option.is-active {
  background: #c1856e;
  border-color: #c1856e;
  color: #fff;
}
.wmb-start-date-month-wrap {
  margin-top: 14px;
  max-width: 280px;
}
.wmb-start-date-confirmation {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #8a664d;
}
.wmb-start-date-confirmation:empty {
  display: none;
}


/* ─── Member directory search ────────────────────────────── */

.wmb-directory-search {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 36px;
}
.wmb-directory-search .wmb-form-group {
  margin-bottom: 0;
}
.wmb-directory-search-keyword {
  flex: 1 1 auto;
  min-width: 0;
}
.wmb-directory-search-location,
.wmb-directory-search-level {
  flex: 0 0 220px;
}
/* Same height as the search box and dropdowns beside it */
.wmb-directory-clear.btn {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 16px;
  white-space: nowrap;
}
.wmb-directory-clear i { margin-right: 4px; }
.wmb-directory-clear.btn:disabled {
  opacity: .45;
  cursor: default;
  background: transparent;
  color: inherit;
}
@media only screen and (max-width: 640px) {
  .wmb-directory-search {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .wmb-directory-search-location,
  .wmb-directory-search-level {
    flex-basis: auto;
  }
  .wmb-directory-clear.btn {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

#wmb-directory-results {
  position: relative;
  min-height: 80px;
  transition: opacity 0.15s ease;
}
#wmb-directory-results.wmb-loading {
  opacity: 0.45;
  pointer-events: none;
}

.wmb-directory-empty {
  text-align: center;
  color: #878787;
  padding: 60px 20px;
  font-size: 17px;
}


/* ─── Member directory cards ─────────────────────────────── */
/* Grid sizing + visual polish for these lives in the theme's style.scss
   (CARDS section), alongside the shared .card/.card-gap it builds on. */


/* ─── Submit article form ────────────────────────────────── */

.wmb-submission-form .wmb-form-group textarea {
  min-height: 280px;
}

.wmb-submission-form .wmb-field-help {
  margin-bottom: 24px;
}

/* "Where would you like to post this?" — profile only vs blog (WMB_Profile_Posts). */
.wmb-destination-choice {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wmb-destination-choice legend {
  grid-column: 1 / -1;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
}
.wmb-destination-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid #e6dcd5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.wmb-destination-option:has(input:checked) {
  border-color: #c1856e;
  background: #fdf6f2;
}
.wmb-destination-option input { margin-top: 4px; flex-shrink: 0; }
.wmb-destination-option span { font-size: 15px; line-height: 1.5; color: #6b5648; }
.wmb-destination-option strong { display: block; color: #2b1c11; font-size: 16px; }
@media only screen and (max-width: 640px) {
  .wmb-destination-choice { grid-template-columns: 1fr; }
}

/* TinyMCE editor wrapper */
.wmb-editor-group .wp-editor-wrap {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.wmb-editor-group .mce-toolbar .mce-btn button {
  padding: 4px 6px;
}

/* Ensure the editor doesn't fight with the theme's global box-sizing */
.wmb-editor-group #wp-wmb_content-editor-container {
  font-family: avenir-lt-pro, sans-serif;
}


/* ─── Application form ───────────────────────────────────── */

.wmb-application-form .wmb-form-group { }


/* ─── Member dashboard ───────────────────────────────────── */

.wmb-page-header {
  background: linear-gradient(90deg, #8a664d 0%, #c1856e 50%, #8a664d 100%); /* matches .footer */
  padding: 70px 0 50px;
}
.wmb-page-header .eyebrow {
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 8px;
}
.wmb-page-header p {
  color: rgba(255,255,255,0.85);
  margin: 10px 0 0;
}
.wmb-page-header h1 {
  color: #fff;
  margin: 0;
}
.wmb-page-header .wmb-page-header-company {
  font-family: capitolium-2, serif;
  font-size: 22px;
  color: #fff;
  margin-top: 6px;
}

.wmb-dashboard {
  padding-top: 50px;
  padding-bottom: 80px;
}

/* User summary strip */
.wmb-dash-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 0 40px;
  border-bottom: 1px solid #f0ede9;
  margin-bottom: 0;
}
.wmb-dash-avatar {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #c1856e;
  background: #fafafa;
}
.wmb-dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wmb-dash-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.wmb-dash-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.wmb-dash-expiry {
  font-size: 14px;
  color: #878787;
}
.wmb-dash-profile-link {
  font-size: 14px;
  color: #c1856e;
  text-decoration: none;
}
.wmb-dash-profile-link:hover { text-decoration: underline; }
.wmb-dash-profile-link i { margin-left: 4px; font-size: 12px; }

/* Tab navigation */
.wmb-dash-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #f0ede9;
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wmb-dash-tab {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #878787;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.wmb-dash-tab:hover { color: #8a664d; }
.wmb-dash-tab.active {
  color: #c1856e;
  border-bottom-color: #c1856e;
}
.wmb-dash-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #e67e22;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

/* Tab content wrapper — no cap, so tables/cards use the full dashboard width */
.wmb-dash-content {
  max-width: 100%;
}

/* Text-entry forms keep a readable line length even at full container width */
.wmb-profile-form,
.wmb-submission-form,
.wmb-event-details-form {
  max-width: 700px;
}

/* Overview stat cards */
.wmb-dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.wmb-dash-card {
  background: #fdfbf9;
  border: 1px solid #f0ede9;
  border-radius: 8px;
  padding: 28px 24px;
}
.wmb-dash-card-icon {
  font-size: 28px;
  color: #c1856e;
  margin-bottom: 14px;
}
.wmb-dash-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #878787;
}
.wmb-dash-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #8a664d;
  margin: 0 0 4px;
  line-height: 1.2;
}
.wmb-dash-card-sub {
  font-size: 14px;
  color: #878787;
  margin: 0;
}
.wmb-dash-card-sub a { color: #c1856e; }

@media only screen and (max-width: 720px) {
  .wmb-dash-cards { grid-template-columns: 1fr 1fr; }
  .wmb-dash-card-value { font-size: 22px; }
}
@media only screen and (max-width: 480px) {
  .wmb-dash-cards { grid-template-columns: 1fr; }
  .wmb-dash-header { flex-direction: column; text-align: center; }
  .wmb-dash-meta { justify-content: center; }
}

/* Quick action buttons */
.wmb-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Profile form in dashboard */
.wmb-avatar-upload-group .wmb-dash-avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #c1856e;
  background: #fafafa;
  margin-bottom: 14px;
}
.wmb-avatar-upload-group .wmb-dash-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Articles table */
.wmb-articles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid #f0ede9;
}
.wmb-articles-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a664d;
  background: #fdfbf9;
  border-bottom: 2px solid #e6ded4;
}
.wmb-articles-table td {
  padding: 16px;
  border-bottom: 1px solid #f5f3f0;
  vertical-align: top;
}
.wmb-articles-table tbody tr:hover { background: #fdfbf9; }
.wmb-articles-table tr:last-child td { border-bottom: 0; }
.wmb-articles-table td a {
  color: #c1856e;
  text-decoration: none;
  font-weight: 600;
}
.wmb-articles-table td a:hover { text-decoration: underline; }

/* Dashboard Payments tab (WMB_Member_Payments) */
.wmb-payments-table td { white-space: nowrap; }
.wmb-payments-table td[data-label="Description"] { white-space: normal; }
.wmb-invoice-link i { margin-right: 4px; }
@media only screen and (max-width: 720px) {
  /* Stack each payment as a card so six columns fit a phone */
  .wmb-payments-table thead { display: none; }
  .wmb-payments-table tr { display: block; border-bottom: 1px solid #e6ded4; padding: 8px 0; }
  .wmb-payments-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 16px;
    border: 0;
    white-space: normal;
    text-align: right;
  }
  .wmb-payments-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a664d;
    text-align: left;
  }
}

/* Notes / unbook forms nested inside table cells */
.wmb-articles-table td form {
  margin: 0;
}
.wmb-articles-table td textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #8a664d;
  resize: vertical;
  margin-bottom: 8px;
}
.wmb-articles-table td textarea:focus {
  outline: none;
  border-color: #c1856e;
}

/* Destructive action button (e.g. Unbook) — proper hover state instead of
   relying on inline colour overrides that clash with .btn.outline:hover */
.wmb-btn-danger {
  color: #e74c3c;
  border-color: #e74c3c;
}
.wmb-btn-danger:hover {
  color: #fff;
  background-color: #e74c3c;
  border-color: #e74c3c;
}

/* Empty state */
.wmb-dash-empty {
  text-align: center;
  padding: 60px 20px;
  color: #878787;
}
.wmb-dash-empty i {
  font-size: 48px;
  color: #e0d8d0;
  display: block;
  margin-bottom: 16px;
}
.wmb-dash-empty p {
  margin: 0 0 24px;
  font-size: 17px;
}


/* ─── Profile Q&A (public profile) ──────────────────────────── */

.wmb-profile-qa {
  margin-top: 40px;
  margin-bottom: 40px;
}
.wmb-profile-qa-heading {
  position: relative;
  padding-left: 18px;
  margin-bottom: 24px;
  font-size: 22px;
}
.wmb-profile-qa-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c1856e, #8a664d);
}
.wmb-qa-list {
  margin: 0;
}
.wmb-qa-list dt {
  font-weight: 600;
  color: #8a664d;
  margin-top: 24px;
  margin-bottom: 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wmb-qa-list dt:first-child {
  margin-top: 0;
}
.wmb-qa-list dd {
  margin: 0;
  line-height: 1.7;
  color: #3a2e27;
}

/* ─── Profile Q&A (dashboard edit form) ─────────────────────── */

.wmb-qa-edit-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #f0ede9;
}
.wmb-qa-heading {
  margin: 0 0 8px;
  font-size: 20px;
}
.wmb-qa-intro {
  margin: 0 0 24px;
  color: #777;
  font-size: 14px;
}

/* ─── Admin badge styles (injected via wp_enqueue_scripts on admin) ── */

.column-wmb_level,
.column-wmb_status,
.column-wmb_expiry {
  width: 130px;
}



/* ─── Apply page ─────────────────────────────────────────────── */

.wmb-apply-section {
  background: #fdfbf9;
  padding: 40px 0 60px;
}

.wmb-apply-panel {
  background: #fff;
  border: 1px solid #ede8e3;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px -8px rgba(43,28,17,.08);
}
.wmb-apply-heading {
  font-size: 22px;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0ede9;
}
.wmb-apply-lost-pass {
  margin-top: 12px;
  font-size: 14px;
}
.wmb-apply-divider {
  text-align: center;
  position: relative;
  margin: 0 0 32px;
}
.wmb-apply-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: #f0ede9;
}
.wmb-apply-divider span {
  position: relative;
  background: #f9f6f3;
  padding: 0 16px;
  color: #9a8a7e;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wmb-apply-required-note {
  font-size: 13px;
  color: #9a8a7e;
  margin-bottom: 24px;
}
.wmb-required { color: #c1856e; }

/* WordPress login form inside the panel */
.wmb-apply-panel #loginform {
  max-width: 100%;
}
.wmb-apply-panel #loginform label {
  font-weight: 600;
  color: #8a664d;
}
.wmb-apply-panel #loginform input[type="text"],
.wmb-apply-panel #loginform input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d8cfc8;
  border-radius: 6px;
  font-size: 15px;
  margin-top: 4px;
  margin-bottom: 16px;
}
/* Login button styling comes from the theme's .btn.primary (see wmb_login_form()). */

/* CF7 form inside the panel */
.wmb-apply-panel .wpcf7-form {
  margin: 0;
}
.wmb-apply-panel .wpcf7-form p {
  margin: 0;
}
.wmb-apply-panel .wpcf7-form input[type="text"],
.wmb-apply-panel .wpcf7-form input[type="email"],
.wmb-apply-panel .wpcf7-form input[type="tel"],
.wmb-apply-panel .wpcf7-form input[type="url"],
.wmb-apply-panel .wpcf7-form select,
.wmb-apply-panel .wpcf7-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d8cfc8;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  transition: border-color .15s;
}
.wmb-apply-panel .wpcf7-form input:focus,
.wmb-apply-panel .wpcf7-form select:focus,
.wmb-apply-panel .wpcf7-form textarea:focus {
  outline: none;
  border-color: #c1856e;
}
.wmb-apply-panel .wpcf7-form textarea {
  min-height: 90px;
  resize: vertical;
}
.wmb-apply-panel .wpcf7-form .wpcf7-submit {
  background: #c1856e;
  border: none;
  color: #fff;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s;
  width: auto;
}
.wmb-apply-panel .wpcf7-form .wpcf7-submit:hover {
  background: #8a664d;
}
.wmb-apply-panel .wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 13px;
}
.wmb-apply-panel .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 6px !important;
}
.wmb-apply-panel .wpcf7-mail-sent-ok {
  background: #e8f4ea;
  border-color: #b8debb !important;
  color: #2c6e34;
}
.wmb-apply-panel .wpcf7-mail-sent-ng,
.wmb-apply-panel .wpcf7-spam-blocked {
  background: #fdecea;
  border-color: #f5c0bb !important;
  color: #9c2a21;
}

/* Checkbox grid for dietary options */
.wmb-checkbox-grid .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 16px 4px 0;
}
.wmb-checkbox-grid .wpcf7-list-item input {
  width: auto !important;
  margin: 0;
}
.wmb-checkbox-grid .wpcf7-list-item-label {
  font-size: 14px;
}

/* Acceptance (privacy) checkbox */
.wmb-apply-panel .wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.wmb-apply-panel .wpcf7-acceptance input[type="checkbox"] {
  width: auto !important;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Cost notice box */
.wmb-apply-cost-notice {
  background: #fdfbf9;
  border: 1px solid #f0ede9;
  border-radius: 8px;
  padding: 16px 20px;
}
.wmb-apply-cost-notice p {
  margin: 0 0 6px;
  font-size: 14px;
  color: #5a4a3e;
}
.wmb-apply-cost-notice p:last-child { margin-bottom: 0; }

/* Event registration: the amount to pay, right above "Continue to Payment" */
.wmb-reg-total {
  background: #fdfbf9;
  border: 1px solid #f0ede9;
  border-left: 4px solid #c1856e;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 20px;
  max-width: 420px;
  color: #3a2e27;
}
.wmb-reg-total__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.wmb-reg-total__row--total { border-top: 1px solid #efe7e2; margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 700; color: #8a664d; }
.wmb-reg-total__row--total strong { font-size: 22px; color: #3a2e27; }
.wmb-reg-total__note { margin: 10px 0 0; font-size: 13px; color: #6f625b; line-height: 1.5; }


/* ─── Login page ────────────────────────────────────────────── */

.wmb-login-section {
  background: #fdfbf9;
  padding: 40px 0 60px;
}

.wmb-login-panel {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #f0ede9;
  border-radius: 10px;
  padding: 48px 44px;
  box-shadow: 0 4px 24px rgba(139,102,77,.07);
}

.wmb-login-heading {
  font-size: 28px;
  color: #8a664d;
  margin: 0 0 28px;
  text-align: center;
}

/* Login form fields */
.wmb-login-panel #loginform {
  max-width: 100%;
}
.wmb-login-panel #loginform label {
  display: block;
  font-weight: 600;
  color: #8a664d;
  margin-bottom: 4px;
  font-size: 14px;
}
.wmb-login-panel #loginform input[type="text"],
.wmb-login-panel #loginform input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #d8cfc8;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 18px;
  transition: border-color .15s;
}
.wmb-login-panel #loginform input[type="text"]:focus,
.wmb-login-panel #loginform input[type="password"]:focus {
  outline: none;
  border-color: #c1856e;
}
.wmb-login-panel #loginform .login-username,
.wmb-login-panel #loginform .login-password {
  margin-bottom: 0;
}
.wmb-login-panel #loginform p {
  margin: 0;
}
.wmb-login-panel #loginform .submit {
  margin-top: 8px;
}
/* Colours/padding come from the theme's .btn.primary (see wmb_login_form()). */
.wmb-login-panel #loginform .submit input {
  width: 100%;
}

/* Links below the form */
.wmb-login-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0ede9;
  text-align: center;
}
.wmb-login-link {
  font-size: 14px;
  color: #8a664d;
  text-decoration: none;
}
.wmb-login-link:hover {
  color: #c1856e;
  text-decoration: underline;
}
.wmb-login-link--join {
  font-weight: 600;
  color: #c1856e;
}
.wmb-login-link--join:hover {
  color: #8a664d;
}

@media (max-width: 560px) {
  .wmb-login-panel {
    padding: 32px 24px;
  }
}


/* ─── Bannerless page title bar ─────────────────────────────── */

.wmb-page-title-bar {
  padding: 28px 0 24px;
  background: #fff;
  border-bottom: 1px solid #f0ede9;
}
.wmb-page-title-bar h1 {
  margin: 0;
  color: #8a664d;
}


/* ─── [wmb_upcoming_events] shortcode ───────────────────────── */

.wmb-sc-events {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wmb-sc-event {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1px solid #f0ede9;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.wmb-sc-event:hover {
  border-color: #c1856e;
  box-shadow: 0 4px 16px rgba(193,133,110,.15);
}
.wmb-sc-date-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #c1856e;
  color: #fff;
  border-radius: 6px;
  width: 52px;
  padding: 8px 0;
  text-align: center;
}
.wmb-sc-date-day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.wmb-sc-date-mon {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.wmb-sc-event-body {
  flex: 1;
  min-width: 0;
}
.wmb-sc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.wmb-sc-event-title {
  font-size: 17px;
  color: #8a664d;
  margin: 0 0 10px;
}
.wmb-sc-event-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wmb-sc-event-meta li {
  font-size: 13px;
  color: #6b5648;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.wmb-sc-event-meta li i {
  color: #c1856e;
  margin-top: 2px;
  flex-shrink: 0;
}
.wmb-sc-events-link {
  margin-top: 20px;
}
.wmb-sc-no-events {
  color: #9a8a7e;
  font-style: italic;
}


/* ─── Membership set-up fee (dashboard) ───────────────────────── */

.wmb-setup-fee-panel {
  background: #fdfbf9;
  border: 1px solid #f0ede9;
  border-top: 3px solid #c1856e;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 4px 18px rgba(63, 43, 31, 0.06);
}
.wmb-setup-fee-panel h3 {
  margin: 0 0 10px;
  color: #8a664d;
}
.wmb-setup-fee-panel > p {
  margin: 0 0 20px;
  line-height: 1.6;
}

/* Visitor → member: "Become a member" panel (WMB_Setup_Fee::handle_join_submission()) */
.wmb-join-panel {
  background: #fdfbf9;
  border: 1px solid #f0ede9;
  border-top: 3px solid #c1856e;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 4px 18px rgba(63, 43, 31, 0.06);
  scroll-margin-top: 120px;
}
.wmb-join-panel h3 { margin: 0 0 10px; color: #8a664d; }
.wmb-join-panel > p { margin: 0 0 20px; line-height: 1.6; }
.wmb-join-levels { border: 0; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wmb-join-levels legend { font-weight: 600; color: #8a664d; margin-bottom: 10px; padding: 0; }
.wmb-join-level { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #efe7e2; border-radius: 12px; padding: 16px 18px; cursor: pointer; margin: 0; line-height: 1.5; }
.wmb-join-level:has(input:checked) { border-color: #c1856e; box-shadow: 0 0 0 2px rgba(193, 133, 110, 0.25); }
.wmb-join-level input { margin-top: 5px; accent-color: #8f5640; flex: none; }
.wmb-join-level strong { display: block; color: #3a2e27; font-size: 17px; }
.wmb-join-level small { display: block; margin-top: 6px; color: #6d5f57; font-size: 14px; }
.wmb-join-start { margin: 0 0 20px; max-width: 320px; }
.wmb-join-start label { display: block; font-weight: 600; color: #8a664d; margin-bottom: 6px; }
@media (max-width: 768px) {
  .wmb-join-panel { padding: 20px; }
  .wmb-join-levels { grid-template-columns: minmax(0, 1fr); }
}

/* Outstanding payments / Pay Now / discount code: styled in the theme (style.scss, "PAYMENT METHOD CHOICE"). */

/* ─── Location taxonomy page ─────────────────────────────────── */

/* Banner */

/* ─── Add Substitute: member picker (WMB_Substitute_Picker) ──────── */

.wmb-sub-picker { display: grid; gap: 10px; min-width: 260px; max-width: 420px; }
.wmb-sub-picker [hidden] { display: none !important; }
.wmb-sub-picker__kind { border: 0; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.wmb-sub-picker__kind legend { font-weight: 600; color: #8a664d; margin-bottom: 6px; padding: 0; font-size: 14px; }
.wmb-sub-picker__kind label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; margin: 0; }
.wmb-sub-picker__combo { position: relative; }
.wmb-sub-picker__search { width: 100%; box-sizing: border-box; }
.wmb-sub-picker__results {
  position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px);
  list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid #e3d6ce; border-radius: 10px;
  box-shadow: 0 14px 32px -12px rgba(43, 28, 17, .35);
}
.wmb-sub-picker__results li { margin: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; line-height: 1.35; }
.wmb-sub-picker__results li strong { display: block; font-weight: 600; color: #3a2e27; font-size: 14px; }
.wmb-sub-picker__results li span { display: block; font-size: 12px; color: #878787; }
.wmb-sub-picker__results li mark { background: rgba(193, 133, 110, .22); color: inherit; padding: 0; border-radius: 2px; }
.wmb-sub-picker__results li:hover,
.wmb-sub-picker__results li[aria-selected="true"] { background: #f8eeea; }
.wmb-sub-picker__results .wmb-sub-picker__none { color: #878787; cursor: default; font-size: 13px; }
.wmb-sub-picker__results .wmb-sub-picker__none:hover { background: none; }
.wmb-sub-picker__chosen {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f8eeea; border: 1px solid #e3c2b4; border-radius: 8px; padding: 8px 12px;
  font-weight: 600; color: #3a2e27; font-size: 14px;
}
.wmb-sub-picker__clear { background: none; border: 0; color: #a4664f; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; font-size: 13px; }
.wmb-sub-picker small, .wmb-sub-picker__hint { display: block; font-size: 12px; color: #878787; margin-top: 4px; }
/* wp-admin Attendees page: plain stacked fields */
.wp-admin .wmb-sub-picker .wmb-form-group { margin: 0; }
.wp-admin .wmb-sub-picker .wmb-form-group > label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.wp-admin .wmb-sub-picker input[type="text"], .wp-admin .wmb-sub-picker input[type="email"], .wp-admin .wmb-sub-picker textarea { width: 100%; }

/* ─── Dashboard Events tab: Upcoming events list ─────────────────── */

.wmb-upcoming-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; margin: 8px 0 18px;
}
.wmb-upcoming-head h4 { margin: 0; color: #8a664d; font-size: 22px; }
.wmb-upcoming-filter {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e8ddd6; border-radius: 999px; padding: 4px 6px 4px 14px;
}
.wmb-upcoming-filter label { margin: 0; color: #c1856e; display: flex; align-items: center; line-height: 1; }
.wmb-upcoming-filter select {
  border: 0; background: transparent; padding: 6px 28px 6px 2px; font-size: 14px; color: #3a2e27;
  font-weight: 600; cursor: pointer; min-width: 150px; box-shadow: none; height: auto;
  /* The theme gives every select a 16px bottom margin and full width
     (scss/_forms.scss), which pushed this one up out of line with the pin. */
  margin: 0; width: auto; line-height: 1.3;
  -webkit-appearance: none; appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c1856e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 8px center / 11px no-repeat;
}
.wmb-upcoming-filter select:focus { outline: none; }
.wmb-upcoming-filter:focus-within { border-color: #c1856e; box-shadow: 0 0 0 3px rgba(193, 133, 110, .15); }

.wmb-upcoming { display: flex; flex-direction: column; gap: 8px; }
.wmb-upcoming .is-more { display: none; }
.wmb-upcoming.show-all .is-more { display: flex; }
.wmb-upcoming.show-all h5.is-more { display: block; }

.wmb-upcoming-month {
  margin: 18px 0 4px; padding-bottom: 6px; border-bottom: 1px solid #efe7e2;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c1856e;
}
.wmb-upcoming-month:first-child { margin-top: 0; }

.wmb-upcoming-row {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #efe7e2; border-radius: 14px; padding: 12px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wmb-upcoming-row:hover { border-color: rgba(193, 133, 110, .45); box-shadow: 0 10px 24px -18px rgba(43, 28, 17, .4); }
.wmb-upcoming-row.is-booked { background: #fbf8f6; }

.wmb-upcoming-date {
  flex: none; width: 52px; height: 56px; border-radius: 12px;
  background: rgba(193, 133, 110, .12); color: #a4664f;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.wmb-upcoming-date small { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.wmb-upcoming-date b { font-family: 'capitolium-2', Georgia, serif; font-size: 24px; font-weight: 400; }

.wmb-upcoming-main { flex: 1; min-width: 0; }
.wmb-upcoming-title {
  display: block; font-weight: 700; font-size: 16px; line-height: 1.3; color: #3a2e27; text-decoration: none;
}
.wmb-upcoming-title:hover, .wmb-upcoming-title:focus-visible { color: #c1856e; }
.wmb-upcoming-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px;
  font-size: 13px; color: #6f625b;
}
.wmb-upcoming-meta i { color: #c1856e; margin-right: 2px; }
.wmb-upcoming-kind {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #8a664d;
  background: #f1e9e4; border-radius: 999px; padding: 2px 9px;
}
.wmb-upcoming-speaker {
  margin: 4px 0 0; font-size: 13px; color: #6f625b; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wmb-upcoming-speaker i { color: #c1856e; margin-right: 4px; }

.wmb-upcoming-action { flex: none; display: flex; align-items: center; gap: 14px; }
.wmb-upcoming-action form { margin: 0; }
.wmb-upcoming-action .btn { padding: 9px 22px; font-size: 14px; }
.wmb-upcoming-price { font-family: 'capitolium-2', Georgia, serif; font-size: 18px; color: #8a664d; white-space: nowrap; }
.wmb-upcoming-price small { font-family: inherit; font-size: 11px; color: #878787; }
.wmb-upcoming-included { font-family: 'avenir-lt-pro', sans-serif; font-size: 13px; font-weight: 700; color: #3f7d5a; }
.wmb-upcoming-status {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: #3f7d5a; background: #e6f2ea; border-radius: 999px; padding: 6px 12px;
}
.wmb-upcoming-status--pending { color: #a4664f; background: #f8eeea; }

.wmb-upcoming-more { display: block; margin: 18px auto 0; }

@media (max-width: 640px) {
  .wmb-upcoming-row { flex-wrap: wrap; gap: 12px; }
  .wmb-upcoming-main { flex-basis: calc(100% - 68px); }
  .wmb-upcoming-speaker { white-space: normal; }
  .wmb-upcoming-action { width: 100%; justify-content: space-between; padding-top: 10px; border-top: 1px solid #efe7e2; }
}
