@import "../start";
@import "themes";
@import "switch";

body.fs-loading {
    &, * {
        cursor: wait !important;
    }
}

#fs_frame
{
    line-height: 0;
    font-size:   0;
}

.fs-full-size-wrapper
{
    margin: 40px 0 -65px -20px;

    @media (max-width: 600px) {
        margin: 0 0 -65px -10px;
    }
}

.fs-notice
{
    position: relative;

    &.fs-has-title
    {
        margin-bottom: 30px !important;
    }

    &.success
    {
        color: green;
        //        font-weight: normal;
    }

    &.promotion
    {
        border-color:     $fs-notice-promotion-border-color !important;
        background-color: $fs-notice-promotion-bkg !important;
    }

    .fs-notice-body
    {
        margin:  .5em 0;
        padding: 2px;

        .fs-trial-message-container
        {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
        }
    }

    .fs-close
    {
        //        position:      absolute;
        //        top:           2px;
        //        bottom:        2px;
        //        right:         2px;
        //        min-width:     100px;
        //        text-align:    center;
        //        padding-right: 2px;
        cursor: pointer;
        color:  #aaa;
        float:  right;

        &:hover
        {
            color: #666;
            //            background: #A9A9A9;
        }

        > *
        {
            margin-top: 7px;
            display:    inline-block;
        }
    }

    label.fs-plugin-title
    {
        background:  rgba(0, 0, 0, 0.3);
        color:       #fff;
        padding:     2px 10px;
        position:    absolute;
        top:         100%;
        bottom:      auto;
        right:       auto;
        border-radius: 0 0 3px 3px;
        left:        10px;
        font-size:   12px;
        font-weight: bold;
        cursor:      auto;
    }
}

div.fs-notice
{
    &.updated,
    &.success,
    &.promotion
    {
        display: block !important;
    }
}

#fs_connect .fs-error,
.fs-modal .notice-error,
.fs-notice.error {
    ol,
    .fs-api-request-error-show-details-link,
    .fs-api-request-error-details {
        text-align: left;
    }

    ol {
        list-style-type: disc;
    }

    .fs-api-request-error-show-details-link {
        text-decoration: none;
        color: #2271b1;
        box-shadow: none;
    }

    .fs-api-request-error-details {
        border: 1px solid #ccc;
        padding: 5px;
        overflow: auto;
        max-height: 150px;
    }
}

.rtl .fs-notice
{
    .fs-close
    {
        //        left:          2px;
        //        right:         auto;
        //        padding-right: 0;
        //        padding-left:  2px;
        float: left;
    }
}

.fs-secure-notice
{
    position:   fixed;
    top:        32px;
    left:       160px;
    right:      0;
    background: rgb(235, 253, 235);
    padding:    10px 20px;
    color:      green;
    z-index:    9989; // 1 less than WordPress' #adminmenuwrap
    box-shadow: 0 2px 2px rgba(6, 113, 6, 0.3);
    opacity: 0.95;

    &:hover
    {
        opacity: 1;
    }

    a.fs-security-proof
    {
        color:           green;
        text-decoration: none;
    }
}

@media screen and (max-width: 960px) {
    .fs-secure-notice
    {
        left: 36px;
    }
}

@media screen and (max-width: 600px) {
    .fs-secure-notice
    {
        display: none;
    }
}

@media screen and (max-width: 1250px) {
    #fs_promo_tab
    {
        display: none;
    }
}

@media screen and (max-width: 782px) {
    .fs-secure-notice
    {
        left:       0;
        top:        46px;
        text-align: center;
    }
}

span.fs-submenu-item.fs-sub:before
{
    // Add small arrow.
    content: '\21B3';
    padding: 0 5px;
}

.rtl
{
    span.fs-submenu-item.fs-sub:before
    {
        // Add small RTL arrow.
        content: '\21B2';
    }
}

.fs-submenu-item
{
    &.pricing
    {
        &.upgrade-mode
        {
            color: greenyellow;
        }

        &.trial-mode
        {
            color: #83e2ff;
        }
    }
}

#adminmenu .update-plugins.fs-trial
{
    background-color: #00b9eb;
}
.fs-ajax-spinner
{
    border:          0;
    width:           20px;
    height:          20px;
    margin-right:    5px;
    vertical-align:  sub;
    display:         inline-block;
    background:      url('/wp-admin/images/wpspin_light-2x.gif');
    background-size: contain;
    margin-bottom:   -2px;
}

.wrap.fs-section {
    h2 {
        text-align: left;
    }
}

@import "plugin-upgrade-notice";
