/* =============================================================================
   SHORTLIST STYLING
   Styles the shortlist
============================================================================= */

/* Temporary test styling for floating shortlist button */
/* Floating shortlist button */

.tbe-floating-shortlist {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    z-index: 999999 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #BA0002;
    color: #ffffff !important;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.tbe-floating-shortlist:hover {
    background: #008277;
    color: #ffffff !important;
}

.tbe-floating-shortlist-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    background: #ffffff;
    color: #BA0002;
    border-radius: 999px;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .tbe-floating-shortlist {
        right: 12px !important;
        bottom: 16px !important;
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* Shortlist page: centred card matching the Contact page. */
.tbe-shortlist-page {
    box-sizing: border-box;
    width: min(100%, 1040px);
    margin: 40px auto 80px;
    padding: 0 20px;
}
.tbe-shortlist-page .tbe-shortlist-empty,
.tbe-shortlist-page .tbe-shortlist-has-items {
    box-sizing: border-box;
    min-width: 0;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid transparent;
    border-top-width: 5px;
    border-radius: 26px;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #008277, #ba0002) border-box;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}
.tbe-shortlist-page .tbe-shortlist-eyebrow {
    margin: 0 0 12px;
    color: #008277;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.tbe-shortlist-page h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(1.8rem, 3.3vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}
.tbe-shortlist-intro,
.tbe-shortlist-empty > p:not(.tbe-shortlist-eyebrow),
.tbe-shortlist-next > p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}
.tbe-shortlist-empty > .tbe-button { margin-top: 28px; }
.tbe-shortlist-items {
    display: grid;
    gap: 14px;
    margin: 30px 0;
}
.tbe-shortlist-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: #f7fbfa;
    border: 1px solid #dcebe8;
    border-radius: 16px;
    padding: 22px;
}
.tbe-shortlist-item__content { min-width: 0; overflow-wrap: anywhere; }
.tbe-shortlist-item__content h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tbe-shortlist-item__content h3 a { color: #111827; text-decoration: none; }
.tbe-shortlist-item__content h3 a:hover { color: #008277; text-decoration: underline; }
.tbe-shortlist-item__content p { margin: 0; color: #4b5563; }
.tbe-shortlist-remove {
    flex-shrink: 0;
    min-height: 44px;
    background: #fff;
    color: #ba0002;
    border: 1px solid #ba0002;
    border-radius: 999px;
    padding: 9px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.tbe-shortlist-remove:hover { background: #ba0002; color: #fff; }
.tbe-shortlist-next { border-top: 1px solid #e2e8f0; padding-top: 28px; }
.tbe-shortlist-next h3 { margin: 0 0 12px; color: #111827; font-size: 1.4rem; }
.tbe-shortlist-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.tbe-shortlist-actions .tbe-button { text-align: center; white-space: normal; }
.tbe-shortlist-next .tbe-shortlist-note { margin: 18px 0 0; font-size: .92rem; }
.tbe-shortlist-page a:focus-visible,
.tbe-shortlist-page button:focus-visible { outline: 3px solid #008277; outline-offset: 4px; }
@media (max-width: 600px) {
    .tbe-shortlist-page { padding: 0 14px; margin: 24px auto 88px; }
    .tbe-shortlist-item { align-items: flex-start; flex-direction: column; padding: 18px; gap: 14px; }
    .tbe-shortlist-actions { flex-direction: column; }
    .tbe-shortlist-actions .tbe-button { box-sizing: border-box; width: 100%; }
}
