/* LP-G41G: exact G20 filter styling, adapted to the home. */
.lp41-home-controls .lpflt-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
}

.lp41-home-controls .lpflt-chip {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 9px 15px;
  border: 1px solid #d8e1db;
  border-radius: 999px;
  background: #fff;
  color: #263b32;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.lp41-home-controls .lpflt-chip.is-active {
  border-color: #216845;
  background: #ecf7ef;
  color: #216845;
}

.lp41-home-controls .lpflt-chip:focus-visible,
.lpflt-dialog :focus-visible {
  outline: 3px solid #5aa77c;
  outline-offset: 2px;
}

.lp41-home-controls .lpflt-context {
  font-size: 13px;
  margin: 0 0 15px;
  color: #58665f;
}

.lp41-home-controls .lpflt-context a {
  color: #216845;
}

.lpflt-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(490px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow: auto;
  color: #263b32;
  box-shadow: 0 22px 75px #0003;
}

.lpflt-dialog::backdrop {
  background: rgba(9, 24, 17, .5);
}

.lpflt-sheet {
  padding: 22px;
  background: #fff;
}

.lpflt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lpflt-head h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}

.lpflt-close {
  border: 0;
  background: transparent;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
}

.lpflt-form {
  display: grid;
  gap: 8px;
}

.lpflt-form label {
  font-size: 14px;
  font-weight: 700;
  margin-top: 5px;
}

.lpflt-form select,
.lpflt-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid #bac9c0;
  border-radius: 10px;
  background: #fff;
  color: #263b32;
  font-size: 16px;
}

.lpflt-hint {
  font-size: 12px;
  line-height: 1.5;
  color: #5f6d64;
  margin: 8px 0;
}

.lpflt-error {
  color: #a31d1d;
  font-size: 13px;
}

.lpflt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}

.lpflt-clear {
  color: #216845;
  font-size: 14px;
  font-weight: 650;
}

.lpflt-apply {
  min-height: 43px;
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  background: #216845;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lpflt-apply:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 760px) {
  .lp41-home-controls .lpflt-strip {
    gap: 7px;
  }

  .lp41-home-controls .lpflt-chip {
    padding: 9px 13px;
    font-size: 13px;
  }

  /* LP_G20_MOBILE_TOP_PREVIEW: top-aligned mobile dialog */
  .lpflt-dialog {
    position: fixed;
    inset: calc(16px + env(safe-area-inset-top, 0px)) 12px auto;
    margin: 0;
    width: calc(100% - 24px);
    max-width: none;
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 20px;
  }

  .lpflt-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .lpflt-sheet {
    padding: 18px 18px max(20px, env(safe-area-inset-bottom));
  }
}


/* Only spacing within the new home controls. */
.lp41-home-controls .lpflt-strip {
    margin: 0;
}

.lp41-home-controls .lpflt-chip {
    flex-shrink: 0;
}

.lp41-home-controls .lp41-period-strip {
    margin-top: 7px;
}

@media (max-width: 760px) {
    .lp41-home-controls .lpflt-strip {
        padding-bottom: 9px;
    }
}

/* G47: highlighted catalog link on the editorial home. */
.lp47-home-catalog-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 14px;
    border: 1px solid #fb625e;
    background: #fb625e;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(229,75,72,.15);
    transition: background .15s ease;
}
.lp47-home-catalog-cta:hover,
.lp47-home-catalog-cta:focus-visible {
    background: #e44f4f;
    color: #fff;
}
.lp47-home-catalog-cta:focus-visible {
    outline: 3px solid #276f50;
    outline-offset: 3px;
}
/* No advanced dialog on the editorial homepage. */
.lp41-home-controls .lpflt-dialog,
.lp41-home-controls .lpflt-overlay,
.lp41-home-controls .lpflt-backdrop {
    display: none !important;
}
@media (max-width:760px) {
    .lp47-home-catalog-cta {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 12px;
        border-radius: 12px;
    }
}


/* LP-G48B: force the same coral catalog CTA on mobile
   and desktop, overriding older heading link rules. */
body .feed-section-v4 .section-heading-v4 a.lp47-home-catalog-cta,
body .feed-section-v4 .section-heading-v4 a.lp47-home-catalog-cta:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #fb625e !important;
    background-image: none !important;
    border: 1px solid #fb625e !important;
    border-radius: 15px !important;
    color: #fff !important;
    text-decoration: none !important;
    opacity: 1 !important;
    box-shadow: 0 5px 15px rgba(229,75,72,.15) !important;
    min-height: 44px !important;
    padding: 11px 18px !important;
    font-weight: 750 !important;
}

body .feed-section-v4 .section-heading-v4 a.lp47-home-catalog-cta:hover,
body .feed-section-v4 .section-heading-v4 a.lp47-home-catalog-cta:focus-visible {
    background: #e44f4f !important;
    border-color: #e44f4f !important;
    color: #fff !important;
}

@media (max-width: 760px) {
    body .feed-section-v4 .section-heading-v4 a.lp47-home-catalog-cta {
        display: inline-flex !important;
        min-height: 40px !important;
        padding: 9px 12px !important;
        font-size: 12px !important;
        border-radius: 12px !important;
        background: #fb625e !important;
        color: #fff !important;
        border-color: #fb625e !important;
    }
}

