/*
 * UNIMERCE Marketplace
 * Developer & Lead Architect: Morris Robinson / morrisrobinson1688@aol.com
 * Patch 359R187: merchant pre-approval hard-hide public marketing content and inventory.
 */

.um-merchant-preapproval-profile-block-r184,
.um-private-profile-preview.um-merchant-preapproval-profile-block-r184 {
  width: 100%;
  margin: 0;
  padding: clamp(26px, 4vw, 52px) 0;
  background:
    radial-gradient(circle at top left, rgba(199, 157, 69, 0.22), transparent 34%),
    linear-gradient(135deg, #24170f 0%, #3a281d 54%, #17110d 100%);
  color: #fffaf0;
  border-top: 1px solid rgba(199, 157, 69, 0.34);
  border-bottom: 1px solid rgba(199, 157, 69, 0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.um-merchant-preapproval-profile-block-r184 .um-merchant-preapproval-fluid-r184,
.um-private-profile-preview .um-merchant-preapproval-fluid-r184,
.um-private-profile-preview .container-fluid.um-merchant-preapproval-fluid-r184 {
  width: 100%;
  max-width: none !important;
}

.um-merchant-preapproval-copy-r184 {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(22px, 3.2vw, 44px);
  border-radius: 0;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(199, 157, 69, 0.28);
}

.um-merchant-preapproval-eyebrow-r184,
.um-merchant-preapproval-profile-block-r184 .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #f1c86f !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 800;
}

.um-merchant-preapproval-profile-block-r184 h1,
.um-merchant-preapproval-profile-block-r184 h2,
.um-private-profile-preview.um-merchant-preapproval-profile-block-r184 h1,
.um-private-profile-preview.um-merchant-preapproval-profile-block-r184 h2 {
  margin: 0 0 12px;
  color: #fffaf0 !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.08;
}

.um-merchant-preapproval-profile-block-r184 p,
.um-private-profile-preview.um-merchant-preapproval-profile-block-r184 p {
  color: #f5ead5 !important;
  max-width: 1060px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.um-merchant-preapproval-lead-r184 {
  margin: 0 0 10px;
}

.um-merchant-preapproval-reason-r184 {
  margin: 0 0 18px;
  font-weight: 700;
  color: #ffefc1 !important;
}

.um-merchant-preapproval-status-row-r184 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
  align-items: center;
  justify-content: flex-start;
}

.um-merchant-preapproval-status-pill-r184,
.um-profile-header-status-button-r153 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(241, 200, 111, 0.46);
  color: #fffaf0 !important;
  font-weight: 700;
}

.um-merchant-preapproval-status-pill-r184 strong,
.um-merchant-preapproval-profile-block-r184 strong {
  color: #f1c86f !important;
}

.um-merchant-preapproval-actions-r184 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-start;
}

/* Defensive cleanup for older/private-preview markup that may still be cached or partially installed. */
.um-private-profile-preview:not(.um-merchant-preapproval-profile-block-r184) {
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.um-private-profile-preview:not(.um-merchant-preapproval-profile-block-r184) > .container-fluid {
  width: 100%;
  max-width: none !important;
}

.um-private-profile-preview:not(.um-merchant-preapproval-profile-block-r184) .panel {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .um-merchant-preapproval-copy-r184 {
    padding: 22px 18px;
  }
  .um-merchant-preapproval-status-pill-r184 {
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
  }
  .um-merchant-preapproval-actions-r184 .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Patch 359R185: pre-approval anti-spam protection.
   Merchant-entered public summary/details are intentionally hidden until onboarding/payment readiness is complete. */
.um-public-profile-hero-preapproval-r185 .um-profile-summary,
.um-private-profile-preview ~ .um-public-profile-hero .um-profile-summary,
.um-private-profile-preview ~ .um-profile-content-section {
  display: none !important;
  visibility: hidden !important;
}

/* Patch 359R187: pre-approval inventory/search must not show at all.
   This defensive CSS covers older cached markup while the PHP view stops rendering the section. */
.um-public-profile-hero-preapproval-r185 ~ .um-profile-inventory-section,
.um-merchant-preapproval-profile-block-r184 ~ .um-public-profile-hero ~ .um-profile-inventory-section {
  display: none !important;
  visibility: hidden !important;
}

/* Patch 359R187 hard guard: any merchant hero marked as pre-approval/private must not show merchant-entered marketing copy. */
.um-merchant-preapproval-hide-public-content-r187 .um-profile-summary,
.um-merchant-preapproval-hide-public-content-r187 ~ .um-profile-content-section,
.um-merchant-preapproval-hide-public-content-r187 ~ .um-profile-inventory-section,
.um-public-profile-hero-preapproval-r185.um-merchant-preapproval-hide-public-content-r187 .um-profile-summary,
.um-public-profile-hero-preapproval-r185.um-merchant-preapproval-hide-public-content-r187 ~ .um-profile-content-section,
.um-public-profile-hero-preapproval-r185.um-merchant-preapproval-hide-public-content-r187 ~ .um-profile-inventory-section {
  display: none !important;
  visibility: hidden !important;
  max-height: 0 !important;
  overflow: hidden !important;
}
