/* Keep general link-hover colors from overriding filled Family Bed Explore buttons. */
body .tw-family-landing a.fb-button,
body .tw-family-landing a.fb-button:visited,
body .tw-family-landing a.fb-button:is(:hover,:focus,:focus-visible,:active) {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    text-decoration:none;
}
body .tw-family-landing a.fb-button:is(:hover,:focus,:focus-visible,:active) {
    background:#007677;
    border-color:#007677;
}
/* Family collection cards retain their outlined resting style and readable filled interactions. */
body .product-card:has(> .family-cutout-card) a.card-shop:is(:hover,:focus,:focus-visible,:active) {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    background:#007677 !important;
    border-color:#007677 !important;
    text-decoration:none;
}
body .tw-family-landing a.fb-button:focus-visible,
body .product-card:has(> .family-cutout-card) a.card-shop:focus-visible {
    outline:2px solid #073f43;
    outline-offset:3px;
}
/* Outlined base buttons need dark resting text on white, including visited links. */
body .tw-family-landing a.fb-button.fb-button-outline,
body .tw-family-landing a.fb-button.fb-button-outline:visited {
    color:#073f43 !important;
    -webkit-text-fill-color:#073f43 !important;
    background:#fff;
}
body .tw-family-landing a.fb-button.fb-button-outline:is(:hover,:focus,:focus-visible,:active) {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    background:#007677;
    border-color:#007677;
}
/* Tighter opening copy, while preserving typography and the room image. */
body .tw-family-landing .fb-hero-copy { padding-block:28px 24px; }
body .tw-family-landing .fb-hero-copy > p:not(.fb-kicker) { margin-top:14px; }
body .tw-family-landing .fb-hero-copy .fb-actions { margin-top:18px; }
@media(max-width:760px) {
    body .tw-family-landing .fb-hero-copy { padding-block:18px 16px; }
    body .tw-family-landing .fb-hero-copy > p:not(.fb-kicker) { margin-top:10px; }
    body .tw-family-landing .fb-hero-copy .fb-actions { margin-top:16px; }
}
@media(min-width:761px) {
    body .tw-family-landing #choose-family-bed .fb-model-description { margin-bottom:5px; }
    body .tw-family-landing #choose-family-bed .fb-model-price { margin-bottom:5px; }
    body .tw-family-landing #choose-family-bed .fb-finance-slot .tw-affirm-row { margin-bottom:13px; }
}
