/*
   WPRentals buy now panel.
   Same layout and interaction as the WPResidence buy now plugin: a small
   vertical tab on the right edge that expands into a short selling-point panel.
   Recoloured for WPRentals - the accent is the purple the main demo uses for
   its Submit Property and Search buttons, so the panel reads as part of the
   product rather than as a bolted-on ad.
   Fonts inherit from the demo; every colour, size and spacing is pinned here so
   a demo's palette can never change it.
   Values marked !important defend against demo themes styling generic a/ul/li.
*/

.wprentals_buy_now_wrap{
    /* Deep aubergine - the demo purple's hue family, but dark and desaturated.
       The light #b881fc the main demo uses on its buttons washed out over photo
       sliders and competed with the demo's own purple UI; at this depth the
       panel reads as deliberate on light demos, dark demos and over imagery,
       while the purple cast still separates it from a plain black box. */
    --wprentals-bn-bg:      #ffffff;
    --wprentals-bn-text:    #1a1d29;
    --wprentals-bn-muted:   #6b7280;
    --wprentals-bn-accent:  #261532;
    --wprentals-bn-accent-h:#1a0e23;
    --wprentals-bn-close:   #6b7280;

    /* Mid-height on the right edge: the corners belong to back-to-top and the
       contact widget, and top-right sat on slider arrows and the mega menu. */
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: inherit;
    text-align: left;
}

/* ---------- collapsed tab ---------- */

.wprentals_buy_now_tab{
    display: block;
    /* vertical so it occupies ~36px of edge and never covers demo content */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: var(--wprentals-bn-accent) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    line-height: 1 !important;
    text-transform: uppercase !important;
    white-space: nowrap;
    padding: 14px 7px !important;
    border-radius: 0 4px 4px 0;
    box-shadow: -2px 0 14px 0 rgba(30, 12, 60, 0.32);
    cursor: pointer;
    /* no transform in the transition — the tab is rotated, so animating it here
       fights the rotation and the movement comes out on the wrong axis */
    transition: background .2s ease, box-shadow .2s ease, padding .2s ease;
}

.wprentals_buy_now_tab:hover{
    background: var(--wprentals-bn-accent-h) !important;
    box-shadow: -3px 0 22px 0 rgba(30, 12, 60, 0.48);
    padding: 16px 8px !important;
}

.wprentals_buy_now_wrap.is-open .wprentals_buy_now_tab{
    display: none;
}

/* ---------- expanded panel ---------- */

.wprentals_buy_now_footer{
    display: none;
    position: relative;
    width: 190px;
    background: var(--wprentals-bn-bg) !important;
    box-shadow: 0 2px 20px 0 rgba(26, 29, 41, 0.15);
    padding: 24px 14px 14px 14px;
    box-sizing: border-box;
    border-radius: 4px 0 0 4px;

    /* inherit the demo typeface, pin everything else */
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.45 !important;
    color: var(--wprentals-bn-text) !important;
}

.wprentals_buy_now_wrap.is-open .wprentals_buy_now_footer{
    display: block;
}

.wprentals_buy_now_footer ul{
    list-style: none !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
}

.wprentals_buy_now_footer li{
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    color: var(--wprentals-bn-text) !important;
}

.wprentals_buy_now_footer li:before,
.wprentals_buy_now_footer li:after{
    content: none !important;
}

/* Own button styling — no theme button class, so the demo palette cannot leak in */
.wprentals_buy_now_footer a.wprentals_buy_now_link{
    display: block;
    background: var(--wprentals-bn-accent) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .03em;
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase !important;
    padding: 12px 8px !important;
    border: none !important;
    border-radius: 4px !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.wprentals_buy_now_footer a.wprentals_buy_now_link:hover{
    background: var(--wprentals-bn-accent-h) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px 0 rgba(30, 12, 60, 0.30) !important;
}

.wprentals_buy_now_footer a.wprentals_buy_now_link:active{
    transform: translateY(0);
    box-shadow: none !important;
}

.wprentals_buy_now_footer a.wprentals_buy_now_alldemos{
    display: block;
    margin-top: 9px;
    font-family: inherit;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    text-align: center;
    text-decoration: none !important;
    color: var(--wprentals-bn-muted) !important;
    background: none !important;
    padding: 0 !important;
}

.wprentals_buy_now_footer a.wprentals_buy_now_alldemos:hover{
    color: var(--wprentals-bn-accent-h) !important;
    text-decoration: underline !important;
}

#wprentals_buy_now_footerclose{
    position: absolute;
    top: 7px;
    right: 8px;
    font-family: inherit;
    font-size: 13px !important;
    line-height: 1em !important;
    color: var(--wprentals-bn-close) !important;
    background: none !important;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color .2s ease, background .2s ease;
}

#wprentals_buy_now_footerclose:hover{
    color: var(--wprentals-bn-text) !important;
    background: #f1eef7 !important;
}

@media only screen and (max-width: 1023px){
  .wprentals_buy_now_wrap{
    display: none;
  }
}
