/* PT-00544: the favourite heart (favorites.js) and its toast. */
.cs-fav-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.cs-fav-heart:hover { transform: scale(1.1); background: rgba(0, 0, 0, 0.5); }
.cs-fav-heart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cs-fav-heart.is-favorite { color: #ff3b5c; }
.cs-fav-heart.cs-fav-pop i { animation: cs-fav-pop 0.3s ease; }
.cs-fav-heart-sm { width: 1.9rem; height: 1.9rem; font-size: 1rem; }

.cs-light .cs-fav-heart { background: rgba(255, 255, 255, 0.9); color: #6c6585; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.cs-light .cs-fav-heart:hover { background: #fff; }
.cs-light .cs-fav-heart:focus-visible { outline-color: #6f42c1; }
.cs-light .cs-fav-heart.is-favorite { color: #e0244a; }

/* Plain grid cards: the distance owns the top corner, so the heart takes the bottom one. */
.grid-card > .cs-fav-corner { position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 1; }
.grid-card.cs-has-fav-corner .grid-card-body { padding-right: 2.9rem; }
.top-pick-right-col .cs-fav-heart, .gc-top-right .cs-fav-heart, .fc-top-right .cs-fav-heart { align-self: flex-end; }

/* A title with a heart beside it. */
.cs-fav-title-row { display: flex; align-items: flex-start; gap: 0.5rem; justify-content: space-between; }
.cs-fav-title-row > :first-child { min-width: 0; margin-bottom: 0; }

/* PT-00553: what the heart signs the patron up for, shown before the click. */
.cs-fav-signup-line { margin: 0.25rem 0 0.5rem; font-size: 0.8rem; opacity: 0.8; }
.cs-signin-line { font-size: 0.85rem; opacity: 0.8; }
.cs-signin-forgot { display: inline-block; margin: 0.35rem 0 0.25rem; text-decoration: none; }   /* PT-00552 */

@keyframes cs-fav-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .cs-fav-heart, .cs-fav-heart:hover { transition: none; transform: none; }
    .cs-fav-heart.cs-fav-pop i { animation: none; }
}

.cs-fav-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 2000;
    max-width: calc(100vw - 2rem);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background: #2b2540;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cs-fav-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.cs-fav-toast.is-error { background: #a3192f; }

/* The Coupons button's checkbox: ticked while the patron gets that venue's coupons. */
.cs-coupon-check { font-size: 1rem; line-height: 1; opacity: 0.75; margin-left: 0.1rem; }
.cs-coupon-check.is-checked { opacity: 1; }

/* The coupon page's "send me coupons and specials" switch. */
.cs-coupon-signup { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin: 0 0 1rem; padding: 0.75rem 1rem;
    border-radius: 0.6rem; background: rgba(159, 102, 255, 0.12); border: 1px solid rgba(159, 102, 255, 0.35); }
.cs-coupon-signup .form-check { margin: 0; }
.cs-coupon-signup .form-check-input { cursor: pointer; }
.cs-coupon-signup .form-check-label { font-weight: 600; cursor: pointer; }
.cs-coupon-signup-help { font-size: 0.85rem; opacity: 0.8; flex-basis: 100%; }

/* The heart's and the switch's dialog ("You're signed up!" / "You've opted out"). */
.cs-fav-dialog {
    width: min(26rem, calc(100vw - 2rem));
    padding: 1.5rem 1.5rem 1.25rem;
    border: 0;
    border-radius: 0.9rem;
    background: #221d36;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    text-align: center;
}
.cs-fav-dialog::backdrop { background: rgba(10, 8, 20, 0.6); }
.cs-fav-dialog-icon { font-size: 2.2rem; line-height: 1; color: #ff3b5c; margin-bottom: 0.5rem; }
.cs-fav-dialog.is-out .cs-fav-dialog-icon { color: #b8b0d4; }
.cs-fav-dialog-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.75rem; color: inherit; }
.cs-fav-dialog-body { text-align: left; font-size: 0.97rem; }
.cs-fav-dialog-body p { margin: 0 0 0.6rem; }
.cs-fav-dialog-body .cs-fav-dialog-list-intro { font-weight: 600; margin-bottom: 0.3rem; }
.cs-fav-dialog-body ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.cs-fav-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.cs-fav-dialog-actions .cs-fav-dialog-ok { margin-left: auto; min-width: 5.5rem; }
.cs-fav-dialog-link { color: #c9a8ff; font-size: 0.92rem; }
.cs-page-light .cs-fav-dialog { background: #fff; color: #2b2540; }
/* PT-00588: "Send confirmation email" under the notes while the address isn't confirmed. */
.cs-fav-dialog-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0.2rem 0 0.4rem; }
.cs-fav-dialog-confirm-link { color: #c9a8ff; font-size: 0.92rem; }
.cs-page-light .cs-fav-dialog-confirm-link { color: #6f42c1; }

/* The signed-out pop-up: coupons need an account - log in here or register. */
.cs-signin-dialog { position: relative; width: min(24rem, calc(100vw - 2rem)); }
.cs-signin-close { position: absolute; top: 0.6rem; right: 0.6rem; border: 0; background: transparent; color: inherit; opacity: 0.7; font-size: 1rem; padding: 0.25rem; }
.cs-signin-close:hover { opacity: 1; }
.cs-signin-dialog .cs-fav-dialog-icon { color: #c9a8ff; }
.cs-page-light .cs-signin-dialog .cs-fav-dialog-icon { color: #6f42c1; }
.cs-signin-intro { font-size: 0.95rem; margin: 0 0 1rem; opacity: 0.9; }
.cs-signin-form { text-align: left; }
.cs-signin-form .form-label { font-size: 0.85rem; font-weight: 600; margin: 0 0 0.25rem; }
.cs-signin-form .form-control { margin-bottom: 0.75rem; }
.cs-signin-form .form-check { margin-bottom: 0.75rem; font-size: 0.88rem; }
.cs-signin-error { background: rgba(220, 53, 69, 0.15); color: #ff8a98; border-radius: 0.4rem; padding: 0.45rem 0.6rem; font-size: 0.88rem; margin-bottom: 0.75rem; }
.cs-page-light .cs-signin-error { color: #a3192f; }
.cs-signin-divider { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 0.75rem; font-size: 0.85rem; opacity: 0.75; }
.cs-signin-divider::before, .cs-signin-divider::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: 0.35; }
.cs-signin-later { margin-top: 0.25rem; font-size: 0.9rem; color: inherit; opacity: 0.75; text-decoration: none; }
.cs-signin-later:hover { opacity: 1; color: inherit; }
.cs-signin-dialog .btn-outline-primary { color: #c9a8ff; border: 1px solid #c9a8ff; }
.cs-signin-dialog .btn-outline-primary:hover { background: #c9a8ff; border-color: #c9a8ff; color: #221d36; }
.cs-page-light .cs-signin-dialog .btn-outline-primary { color: #6f42c1; border-color: #6f42c1; }
.cs-page-light .cs-signin-dialog .btn-outline-primary:hover { background: #6f42c1; border-color: #6f42c1; color: #fff; }
.cs-page-light .cs-fav-dialog-link { color: #6f42c1; }
.cs-page-light .cs-coupon-signup { background: #f3eeff; border-color: #d9c9ff; }
/* The pop-up sits on <body>, outside the light-page wrappers, so its fields set their own colours. */
.cs-signin-form .form-label, .cs-signin-form .form-check-label { color: inherit; }
.cs-signin-form .form-control { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.cs-signin-form .form-control:focus { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #c9a8ff; box-shadow: 0 0 0 0.2rem rgba(201, 168, 255, 0.3); }
.cs-signin-form .form-check-input { background-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); }
.cs-signin-form .form-check-input:checked { background-color: #9f66ff; border-color: #9f66ff; }
.cs-page-light .cs-signin-form .form-control { background: #fff; color: #2b2540; border-color: #cfc6e6; }
.cs-page-light .cs-signin-form .form-control:focus { background: #fff; color: #2b2540; border-color: #6f42c1; box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.2); }
.cs-page-light .cs-signin-form .form-check-input { background-color: #fff; border-color: #b9add9; }
.cs-page-light .cs-signin-form .form-check-input:checked { background-color: #6f42c1; border-color: #6f42c1; }
