:root {
  --posh-pink: #E0457B;
  --posh-blue: #375275;
  --posh-teal: #0ABAB5;
  --posh-gold: #F6B23C;
  --posh-faint-pink: #FDF2F8;
  --posh-white: #FFFFFF;
  --posh-font: 'Poppins', sans-serif;
}

/* Full-width canvas: break out of theme content column without a theme template. */
.posh-bff-campaign {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2rem 1.25rem 3rem;
  font-family: var(--posh-font);
  color: var(--posh-blue);
  background: var(--posh-white);
}

.posh-bff-campaign *,
.posh-bff-campaign *::before,
.posh-bff-campaign *::after {
  box-sizing: border-box;
}

.posh-bff-hero {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.posh-bff-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--posh-pink);
  line-height: 1.2;
}

.posh-bff-hero__subhead {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 600;
  color: var(--posh-blue);
}

.posh-bff-hero__instructions {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--posh-blue);
}

.posh-bff-login-cta {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.posh-bff-btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: var(--posh-font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.posh-bff-btn--primary {
  background: var(--posh-pink);
  color: var(--posh-white);
}

.posh-bff-btn--primary:hover,
.posh-bff-btn--primary:focus {
  opacity: 0.9;
  color: var(--posh-white);
}

.posh-bff-form-mount {
  max-width: 42rem;
  margin: 0 auto;
  min-height: 1px;
}

.posh-bff-nominee-search {
  margin-top: 1.5rem;
}

.posh-bff-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--posh-blue);
}

.posh-bff-helper {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--posh-blue);
  opacity: 0.85;
}

.posh-bff-nominee-field {
  position: relative;
}

.posh-bff-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--posh-font);
  font-size: 1rem;
  color: var(--posh-blue);
  background: var(--posh-white);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
}

.posh-bff-input:focus {
  outline: none;
  border-color: var(--posh-pink);
}

.posh-bff-nominee-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--posh-white);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(55, 82, 117, 0.12);
  max-height: 16rem;
  overflow-y: auto;
}

.posh-bff-nominee-results__item {
  padding: 0.65rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.posh-bff-nominee-results__item:hover,
.posh-bff-nominee-results__item:focus {
  background: var(--posh-faint-pink);
}

.posh-bff-nominee-results__label {
  font-weight: 600;
  color: var(--posh-blue);
}

.posh-bff-nominee-results__sublabel {
  font-size: 0.875rem;
  color: var(--posh-teal);
}

.posh-bff-nominee-results__empty {
  padding: 0.75rem 1rem;
  color: var(--posh-blue);
  opacity: 0.75;
}

.posh-bff-nominee-selected {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--posh-blue);
  background: var(--posh-faint-pink);
  border-radius: 8px;
}

.posh-bff-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.posh-bff-field {
  display: flex;
  flex-direction: column;
}

.posh-bff-textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.75rem 1rem;
  font-family: var(--posh-font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--posh-blue);
  background: var(--posh-white);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  resize: vertical;
}

.posh-bff-textarea:focus {
  outline: none;
  border-color: var(--posh-pink);
}

.posh-bff-statement-count {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--posh-blue);
  opacity: 0.75;
  text-align: right;
}

.posh-bff-statement-count--valid {
  color: var(--posh-teal);
  opacity: 1;
}

.posh-bff-statement-count--invalid {
  color: var(--posh-pink);
  opacity: 1;
}

.posh-bff-file-input {
  font-family: var(--posh-font);
  font-size: 0.9375rem;
  color: var(--posh-blue);
}

.posh-bff-photo-preview-wrap {
  margin-top: 0.75rem;
}

.posh-bff-photo-preview {
  display: block;
  max-width: 100%;
  width: 12rem;
  height: auto;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
}

.posh-bff-field-error {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #D64545;
}

.posh-bff-form-message {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border-radius: 8px;
}

.posh-bff-form-message--error {
  color: #D64545;
  background: #fff5f5;
}

.posh-bff-form-message--success {
  color: var(--posh-blue);
  background: var(--posh-faint-pink);
}

.posh-bff-btn--submit {
  align-self: flex-start;
}

.posh-bff-btn--submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.posh-bff-btn--secondary {
  background: var(--posh-white);
  color: var(--posh-pink);
  border: 2px solid var(--posh-pink);
}

.posh-bff-btn--secondary:hover,
.posh-bff-btn--secondary:focus {
  opacity: 0.9;
}

.posh-bff-wall-section {
  max-width: 72rem;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #f3e8ef;
}

.posh-bff-wall-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.posh-bff-wall-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--posh-pink);
}

.posh-bff-wall-count {
  margin: 0;
  font-size: 1rem;
  color: var(--posh-teal);
  font-weight: 500;
}

.posh-bff-wall-empty {
  text-align: center;
  color: var(--posh-blue);
  opacity: 0.85;
}

.posh-bff-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .posh-bff-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .posh-bff-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.posh-bff-card {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.posh-bff-card:focus {
  outline: none;
}

.posh-bff-card:focus-visible {
  outline: 2px solid var(--posh-pink);
  outline-offset: 3px;
}

.posh-bff-card--winner {
  position: relative;
}

.posh-bff-card__photo {
  aspect-ratio: 1 / 1;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--posh-faint-pink);
  position: relative;
}

.posh-bff-card__winner-ribbon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--posh-gold);
  color: var(--posh-blue);
  font-family: var(--posh-font);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(55, 82, 117, 0.18);
  pointer-events: none;
}

.posh-bff-card__winner-ribbon--card {
  position: absolute;
  top: 0;
  right: 0.15rem;
}

.posh-bff-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.posh-bff-card__identifier {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--posh-blue);
  text-align: center;
}

.posh-bff-card__statement {
  display: none;
}

.posh-bff-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.posh-bff-lightbox[hidden] {
  display: none !important;
}

.posh-bff-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(55, 82, 117, 0.72);
}

.posh-bff-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--posh-white);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(55, 82, 117, 0.24);
}

.posh-bff-campaign #posh-bff-lightbox .posh-bff-lightbox__close {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--posh-font);
  color: var(--posh-white);
  background: var(--posh-blue);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(55, 82, 117, 0.24);
}

.posh-bff-campaign #posh-bff-lightbox .posh-bff-lightbox__close:hover,
.posh-bff-campaign #posh-bff-lightbox .posh-bff-lightbox__close:focus-visible {
  color: var(--posh-white);
  background: var(--posh-pink);
  outline: 2px solid var(--posh-pink);
  outline-offset: 2px;
}

.posh-bff-campaign #posh-bff-lightbox .posh-bff-lightbox__close-icon {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.posh-bff-lightbox__photo-wrap {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--posh-faint-pink);
}

.posh-bff-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(60vh, 640px);
  object-fit: contain;
  object-position: center;
}

.posh-bff-lightbox__identifier {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--posh-pink);
  line-height: 1.3;
}

.posh-bff-lightbox__statement {
  margin: 0 0 1rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  font-style: normal;
  color: var(--posh-blue);
  border: 0;
}

.posh-bff-lightbox__share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.posh-bff-lightbox__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  font-family: var(--posh-font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--posh-blue);
  text-decoration: none;
  background: var(--posh-faint-pink);
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.posh-bff-lightbox__share-btn:hover,
.posh-bff-lightbox__share-btn:focus-visible {
  color: var(--posh-pink);
  border-color: var(--posh-pink);
  outline: none;
}

.posh-bff-lightbox__share-btn--download[hidden] {
  display: none !important;
}

.posh-bff-lightbox__share-confirm {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--posh-teal);
}

body.posh-bff-lightbox-open {
  overflow: hidden;
}

.posh-bff-scroll-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  padding: 0.5rem 1rem;
  background: var(--posh-white);
  border-bottom: 2px solid var(--posh-faint-pink);
  box-shadow: 0 4px 16px rgba(55, 82, 117, 0.12);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.posh-bff-scroll-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.posh-bff-scroll-cta[hidden]:not(.is-visible) {
  display: block !important;
}

.posh-bff-scroll-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 42rem;
  margin: 0 auto;
}

.posh-bff-scroll-cta__label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--posh-blue);
  line-height: 1.3;
}

.posh-bff-scroll-cta__action {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .posh-bff-scroll-cta__label {
    font-size: 0.8125rem;
  }

  .posh-bff-scroll-cta__action {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .posh-bff-scroll-cta {
    transition: none;
  }
}

.posh-bff-wall-load-more-wrap {
  margin: 1.5rem 0 0;
  text-align: center;
}
