/*
   One fixed look on every demo.
   Fonts inherit from the demo so the panel does not feel foreign; every colour,
   size and spacing is defined here so a demo's palette can never change it.
   Collapsed to a small tab by default — a permanently open panel sat on top of
   slider arrows and right-edge controls on most demos.
   Values marked !important defend against demo themes styling generic a/ul/li.
*/

.wpestate_buy_now_wrap{
    /* Neutral on purpose: demos ship blue, green, orange and red palettes, so any
       hue here clashes with some of them. Dark-on-white reads as deliberate everywhere. */
    --wpestate-bn-bg:      #ffffff;
    --wpestate-bn-text:    #1a1d29;
    --wpestate-bn-muted:   #6b7280;
    --wpestate-bn-accent:  #1a1d29;
    --wpestate-bn-accent-h:#000000;
    --wpestate-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 ---------- */

.wpestate_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(--wpestate-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(0, 0, 0, 0.18);
    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;
}

.wpestate_buy_now_tab:hover{
    background: var(--wpestate-bn-accent-h) !important;
    box-shadow: -3px 0 22px 0 rgba(0, 0, 0, 0.32);
    padding: 16px 8px !important;
}

.wpestate_buy_now_wrap.is-open .wpestate_buy_now_tab{
    display: none;
}

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

.wpestate_buy_now_footer{
    display: none;
    position: relative;
    width: 190px;
    background: var(--wpestate-bn-bg) !important;
    box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 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(--wpestate-bn-text) !important;
}

.wpestate_buy_now_wrap.is-open .wpestate_buy_now_footer{
    display: block;
}

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

.wpestate_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(--wpestate-bn-text) !important;
}

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

/* Own button styling — no theme button class, so the demo palette cannot leak in */
.wpestate_buy_now_footer a.wpestate_buy_now_link{
    display: block;
    background: var(--wpestate-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;
}

.wpestate_buy_now_footer a.wpestate_buy_now_link:hover{
    background: var(--wpestate-bn-accent-h) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.14) !important;
}

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

.wpestate_buy_now_footer a.wpestate_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(--wpestate-bn-muted) !important;
    background: none !important;
    padding: 0 !important;
}

.wpestate_buy_now_footer a.wpestate_buy_now_alldemos:hover{
    color: var(--wpestate-bn-text) !important;
    text-decoration: underline !important;
}

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

#wpestate_buy_now_footerclose:hover{
    color: var(--wpestate-bn-text) !important;
    background: #f2f3f5 !important;
}

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