/*
  Buttons CSS
*/

.btn,
.wpforms-container .wpforms-form button[type=submit] {
    font-size: 14px;
    line-height: 29px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 17px 30px;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border-radius: 7px;
    flex-shrink: 0;
    border: none;

    span {
        position: relative;
    }

    /* Btn With Arrow */
    &.with-arrow {
        &:hover {
            padding-left: 45px;
            padding-right: 15px;

            &::after {
                transform: translateX(10px);
                filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
                opacity: 0;
            }
        }
    }

    /* Small */
    &.btn-sm {
        padding: 10px 23px;
        font-size: 13px;
        line-height: 32px;

        &.with-arrow {
            &:after {
                font-size: 7px;
                top: -2px;
            }

            &:hover {
                padding-left: 35px;
                padding-right: 11px;
            }

        }
    }

    /* Medium */
    &.btn-md {
        padding: 10px 33px;
        font-size: 14px;
    }

    /* Disabled */
    &.disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
}

/* With Arrow */
.with-arrow {
    &:after {
        font-family: "ico moon";
        speak: never;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        content: "\e90d";
        display: inline-block;
        vertical-align: baseline;
        font-size: 8px;
        line-height: inherit;
        padding-left: 15px;
        position: relative;
        top: -1px;
        transition: all .3s ease;
    }
}


/* Primary */
.btn-primary{
    color: var(--white);
    background: var(--dark);
    position: relative;
    overflow: hidden;

    &:hover {
        background: var( --gray );
    }
}

/* Primary Outline */
.btn-outline-primary {
    border: 1px solid var( --dark );
    color: var( --dark ) ;
    background: transparent;

    &:hover {
        color: var( --white ) ;
        background: var( --dark ) ;
    }
}


/* Btn Link */
.btn-link {
    font-size: 20px;
    line-height: 1.8em;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--dark);
    text-transform: uppercase;
    display: inline-block;

    .label {
        position: relative;
        z-index: 1;

        &:before, &:after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -10px;
            width: 100%;
            height: 1px;
        }

        &:before {
            z-index: 1;
            background-color: var( --dark );
            transform: scaleX(0);
            transition: transform .35s ease-in-out;
            transform-origin: 0 50%;
        }

        &:after {
            z-index: 0;
            background-color: var( --gray-light );
            transition: .9s ease-in-out;
            transition-delay: .3s;
        }
    }

    &:hover {
        .label {
            &:before {
                transform: scaleX(1);
            }

            &:after {
                width: 100%;
            }
        }

        &.with-arrow {
            &:after {
                color: var( --dark );
                transform: translateX(7px);
            }
        }
    }

    &.with-arrow {
        &:after {
            font-size: 10px;
            color: var( --gray-light );
        }
    }
}


/* Mobile Menu Button */
.nav-cta {
    display: flex;

    a {
        font-size: 13px;
        line-height: 25px;
        padding: 8px 11px;
        min-width: 130px;
        border-radius: 4px;
    }
}



/* CookieYes Button */
.cky-title {
    margin-bottom: 15px !important;
}

.cky-btn {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    border-radius: 5px !important;
    letter-spacing: 1px;
}


/* Edit Post Button */
.edit-post-button {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 999999;

    a {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 3px 10px;
        font-size: 13px;
        color: white;
        border-radius: 3px;
        background: rgb(0 0 0 / 66%);
        transition: all 0.3s ease;

        &:hover {
            background: rgb(0 0 0);
        }

        .dashicons {
            font-size: 14px;
            width: 14px;
            position: relative;
            top: 3px;
        }
    }
}


/* ---------- DESKTOP --------- */
@media only screen and (min-width: 981px) {

}



/* ---------- MOBILE 768 AND BELOW ---------- */
@media only screen and (max-width: 768px) {
    .btn, .wpforms-container .wpforms-form button[type="submit"] {
        font-size: 12px;
        line-height: 26px;
        padding: 15px 24px;

        &.with-arrow {
            &:after {
                font-size: 6px;
                top: -2px;
            }

            &:hover {
                padding-left: 39px;
                padding-right: 9px;
            }
        }

        &.btn-sm {
            padding: 11px 17px;
            font-size: 12px;
            line-height: 25px;

            &.with-arrow {
                &:after {
                    font-size: 6px;
                    top: -2px;
                }

                &:hover {
                    padding-left: 31px;
                    padding-right: 3px;
                }
            }
        }
    }

    .btn-link {
        font-size: 16px;

        &.with-arrow {
            &:after {
                font-size: 8px;
            }
        }
    }

}

