/* ==========================================================================
   Gated deal detail page
   Paired with resources/views/v3/deal-description-locked.blade.php

   The mockup underneath is decoration: it exists so the page has the shape of
   a deal page behind the auth component instead of an empty screen. It holds
   no real listing data, is blurred past the point of being readable, and is
   taken out of the accessibility tree and the tab order by the view.
   ========================================================================== */

.deal-locked {
    position: relative;
}

.deal-locked__mock {
    filter: blur(7px) saturate(0.55);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    transform: scale(1.012); /* hides the soft edge the blur leaves at the sides */
}

/* A second, lighter veil over the mockup so the component reads as the only
   thing on the page that is actually meant to be used. */
.deal-locked__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(246, 248, 252, 0.35) 0%, rgba(246, 248, 252, 0.82) 55%, #f6f8fc 100%);
    pointer-events: none;
}

/* ---------- the bar that brings the component back once dismissed ---------- */

.deal-locked__cta {
    position: relative;
    z-index: 3;
    max-width: 680px;
    margin: -220px auto 72px;
    padding: 30px 28px;
    background: #fff;
    border: 1px solid #e3e9f3;
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(10, 22, 52, 0.12);
    text-align: center;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

.deal-locked__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #eef4ff;
    color: #2d6cdf;
    font-size: 21px;
}

.deal-locked__cta h2 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.32;
    color: #0d1b4c;
    margin: 0 0 8px;
}

.deal-locked__cta p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #5b6b86;
    margin: 0 auto 20px;
    max-width: 440px;
}

.deal-locked__buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.deal-locked__buttons button {
    min-width: 170px;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.deal-locked__buttons .is-primary {
    border: 0;
    background: #2d6cdf;
    color: #fff;
}

.deal-locked__buttons .is-primary:hover {
    background: #2259bd;
}

.deal-locked__buttons .is-secondary {
    border: 1.5px solid #dde4ef;
    background: #fff;
    color: #0d1b4c;
}

.deal-locked__buttons .is-secondary:hover {
    border-color: #2d6cdf;
    color: #2d6cdf;
}

.deal-locked__reassure {
    margin: 18px 0 0;
    font-size: 12.5px;
    color: #8b99ad;
}

/* ---------- mockup furniture ---------- */

.deal-locked__bar {
    height: 12px;
    border-radius: 999px;
    background: #cdd6e4;
    margin-bottom: 10px;
}

.deal-locked__bar.is-wide  { width: 92%; }
.deal-locked__bar.is-mid   { width: 74%; }
.deal-locked__bar.is-short { width: 48%; }
.deal-locked__bar.is-tiny  { width: 30%; }
.deal-locked__bar.is-light { background: #e2e8f2; }

.deal-locked__chip {
    display: inline-block;
    height: 26px;
    width: 96px;
    border-radius: 999px;
    background: #d7dfec;
    margin: 0 8px 8px 0;
    vertical-align: middle;
}

.deal-locked__block {
    height: 190px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e4eaf4 0%, #d3dcea 100%);
}

@media (max-width: 767.98px) {
    .deal-locked__cta {
        margin: -140px 16px 56px;
        padding: 24px 20px;
    }

    .deal-locked__buttons button {
        width: 100%;
    }
}

/* ---------- the component, as it sits on this page ---------- */

/* The component ships a dark scrim, which is right for a modal interrupting a
   page someone was already reading. Here the page behind it is a mockup that
   is meant to be seen - faintly - so the scrim is lightened to let it through
   rather than painting over it. */
.deal-locked .md-auth__backdrop {
    background: linear-gradient(180deg, rgba(243, 246, 251, 0.62) 0%, rgba(243, 246, 251, 0.86) 100%);
    backdrop-filter: none;
}
