/*** Buttons Styles ***/
a.button,
.wpcf7 input[type="button"],
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"],
button.primary,
button.secondary,
button.tertiary,
button.download,
button.tag,
button.tab {
    display: inline-block;
    text-align: center;
    text-decoration: none!important;
    -webkit-box-shadow: none;
    box-shadow: none;
    cursor: pointer;
    transition: ease all 0.3s;
    border: none;
    margin-left: 0;
    margin-right: 15px;
    margin-bottom: 10px;
    white-space: nowrap;
    height: fit-content;
    height: max-content;
}
a.button:first-of-type,
.wpcf7 button[type="submit"]:first-of-type,
.wpcf7 input[type="submit"]:first-of-type,
button.primary:first-of-type,
button.secondary:first-of-type,
button.tertiary:first-of-type,
button.download:first-of-type,
button.tag:first-of-type,
button.tab:first-of-type {
    margin-left: 0;
}

a.button.disabled,
a.button:disabled,
.wpcf7 input[type="button"]:disabled,
.wpcf7 input[type="button"].disabled,
button.primary:disabled,
button.primary.disabled,
button.secondary:disabled,
button.secondary.disabled,
button.tertiary:disabled,
button.tertiary.disabled,
.wpcf7 input[type="submit"]:disabled,
.wpcf7 input[type="submit"].disabled,
.wpcf7 button[type="submit"]:disabled,
.wpcf7 button[type="submit"].disabled,
button.tag:disabled,
button.tag.disabled,
button.tab:disabled,
button.tab.disabled {
    cursor: not-allowed !important;
}

button:focus {
    outline: none !important;
}
button:hover {
    cursor: pointer;
}
button:disabled:hover {
    cursor: not-allowed;
}
input:disabled:hover {
    cursor: not-allowed;
}

/*Fly Out Arrow*/
.fly-out-arrow::after,
.fly-out-arrow::before {
    content: '';
    display: block;
    height: 11px;
    width: 11px;
    background-image: url('assets/primary/arrow-white.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translate(0, -50%);
    transition: transform 0.6s cubic-bezier(.22, 1, .36, 1), opacity 0.5s ease;
}
.fly-out-arrow::before {
    opacity: 1;
}
.fly-out-arrow::after {
    transform: translate(-50px, 30px);
    opacity: 0;
}
.fly-out-arrow:hover::before {
    transform: translate(50px, -40px);
    opacity: 0;
}
.fly-out-arrow:hover::after {
    transform: translate(0, -50%);
    opacity: 1;
}
/*** Primary Buttons ***/
a.button.primary,
button.primary,
.wpcf7 input[type="button"],
.wpcf7 button[type="submit"],
.wpcf7 input[type="submit"],
.woocommerce button.primary,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.primary,
input[type="submit"].button.primary {
    position: relative;
    padding: 12px 30px;
    border-radius: 0;
    border-width: 2px;
    border-style: solid;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400; /* regular */
    font-family: "Atkinson Hyperlegible", sans-serif;
    /* default color buttons (primary and other buttons) - if they do not have a specific color class */
    color: var(--white);
    background-color: var(--ocean);
    border-color: var(--ocean);
    overflow: hidden;
}

/*** FLYOUT ARROW PADDINGS ***/
a.button.primary.fly-out-arrow,
button.primary.fly-out-arrow,
.wpcf7 button[type="submit"].fly-out-arrow,
.wpcf7 input[type="submit"].fly-out-arrow,
.woocommerce button.primary.fly-out-arrow,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.primary.fly-out-arrow,
input[type="submit"].button.primary.fly-out-arrow {
    padding-right: 52px;
}

a.button.primary:hover,
button.primary:hover,
.wpcf7 button[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover,
.woocommerce button.primary:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.primary:hover,
input[type="submit"].button.primary:hover {
    transform: scale(1);
    background-color: var(--coal);
    border-color: var(--coal);
    color: var(--white);
    outline: none;
}

a.button.primary:focus,
button.primary:focus,
button.secondary:focus,
.wpcf7 button[type="submit"]:focus,
.wpcf7 input[type="submit"]:focus,
.wpcf7 input[type="button"]:focus,
.woocommerce button.primary:focus,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.primary:focus,
input[type="submit"].button.primary:focus {
    outline: none;
}





/*** Secondary Buttons ***/
a.button.secondary,
button.secondary,
.wpcf7 button[type="submit"].secondary,
.wpcf7 input[type="submit"].secondary,
.woocommerce button.secondary,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.secondary {
    position: relative;
    padding: 12px 30px;
    border-radius: 0;
    border-width: 2px;
    border-style: solid;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400; /* regular */
    font-family: "Atkinson Hyperlegible", sans-serif;
    /* default color secondary buttons - if they do not have a specific color class */
    background-color: transparent;
    border-color: var(--ocean);
    color: var(--ocean);
}
/*** FLYOUT ARROW PADDINGS ***/
a.button.secondary.fly-out-arrow,
button.secondary.fly-out-arrow,
.wpcf7 button[type="submit"].fly-out-arrow,
.wpcf7 input[type="submit"].fly-out-arrow,
.woocommerce button.secondary.fly-out-arrow,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.secondary.fly-out-arrow {
    padding-right: 52px;
}
a.button.secondary::before,
button.secondary::before,
.wpcf7 input[type="button"]::before,
.wpcf7 button[type="submit"]::before,
.wpcf7 input[type="submit"]::before,
.woocommerce button.secondary::before,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.secondary::before {
    background-image: url('assets/primary/arrow-ocean.svg')!important;
}
a.button.secondary:hover,
button.secondary:hover,
.wpcf7 button[type="submit"].secondary:hover,
.wpcf7 input[type="submit"].secondary:hover,
.woocommerce button.secondary:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.secondary:hover {
    transform: scale(1);
    background-color: var(--ocean);
    border-color: var(--ocean);
    color: var(--white);
}


/*** Tertiary Buttons ***/
a.button.tertiary,
button.tertiary,
.wpcf7 button[type="submit"].tertiary,
.wpcf7 input[type="submit"].tertiary,
.woocommerce button.tertiary,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.tertiary {
    position: relative;
    padding: 0;
    border: none;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400; /* regular */
    padding-right: 44px;
    font-family: "Atkinson Hyperlegible", sans-serif;
    /* default color tertiary buttons - if they do not have a specific color class */
    color: var(--ocean);
    background-color: transparent;
    overflow: hidden;
}
a.button.tertiary::before,
button.tertiary::before,
.wpcf7 button[type="submit"].tertiary::before,
.wpcf7 input[type="submit"].tertiary::before,
.woocommerce button.tertiary::before,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.tertiary::before,
a.button.tertiary::after,
button.tertiary::after,
.wpcf7 button[type="submit"].tertiary::after,
.wpcf7 input[type="submit"].tertiary::after,
.woocommerce button.tertiary::after,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.tertiary::after {
    background-image: url('assets/primary/arrow-ocean.svg');
    right: 22px;
}

/*** Download Buttons ***/
a.button.download,
button.download,
.wpcf7 button[type="submit"].download,
.wpcf7 input[type="submit"].download {
    position: relative;
    padding: 0;
    border: none;
    font-size: 16px;
    font-weight: 400; /* reg */
    /* default color tertiary buttons - if they do not have a specific color class */
    color: var(--coal);
}
a.button.download:hover,
button.download:hover,
.wpcf7 button[type="submit"].download:hover,
.wpcf7 input[type="submit"].download:hover {
    transform: scale(1);
    color: var(--coal);
}
a.button.download::before,
button.download::before,
.wpcf7 button[type="submit"].download::before,
.wpcf7 input[type="submit"].download::before {
    content: '';
    display: inline-block;
    height: 20px;
    width: 16px;
    margin-right: 10px;
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('assets/download/download.svg');
    transition: ease all 0.3s;
    top: 5px;
}
a.button.download::after,
button.download::after,
.wpcf7 button[type="submit"].download::after,
.wpcf7 input[type="submit"].download::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    width: 0;
    bottom: -2px;
    background: var(--coal);
    height: 2px;
    transition-property: width;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}
a.button.download:hover:after,
button.download:hover::after,
.wpcf7 button[type="submit"].download:hover::after,
.wpcf7 input[type="submit"].download:hover::after {
    left: 23px;
    right: auto;
    width: calc(100% - 23px);
}
@media(max-width: 1299.98px) {
    a.button.download::before,
    button.download::before,
    .wpcf7 button[type="submit"].download::before,
    .wpcf7 input[type="submit"].download::before {
        margin-right: 7px;
        height: 17px;
        width: 14px;
    }
}




/*** Arrow Buttons ***/
a.button.arrow,
div.button.arrow,
button.arrow {
    display: inline-block;
    font-size: 0;
    padding: 0;
    margin: 0;
    height: 46px;
    width: 46px;
    border-style: solid;
    border-width: 2px;
    border-radius: 0;
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
    transition: ease all .3s;

    border-color: var(--ocean);
    background-color: transparent;
    background-image: url('assets/arrow/arrow-ocean.svg');
}
a.button.arrow:hover,
div.button.arrow:hover,
button.arrow:hover {
    transform: scale(1);
    border-color: var(--ocean);
    background-color: var(--ocean);
    background-image: url('assets/arrow/arrow-white.svg');
}






/*** Tag Buttons ***/
a.button.tag,
button.tag,
.wpcf7 button[type="submit"].tag,
.wpcf7 input[type="submit"].tag {
    position: relative;
    margin-right: 5px;
    border-radius: 0px;
    font-weight: 400; /* Regular */
    transition: ease all .3s;
    font-family: 'industry', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 21px;
    color: var(--ocean);
    background-color: var(--sediment);
    margin-bottom: 10px;
    padding: 6px 13px;
    padding-top: 8px;
    padding-right: 16px;
    width: fit-content;
    width: max-content;
    -webkit-clip-path: polygon(100% calc(10px), 100% 100%, 100% 100%, 0 100%, 0 0, 0 0, calc(100% - 10px) 0);
    clip-path: polygon(100% calc(10px), 100% 100%, 100% 100%, 0 100%, 0 0, 0 0, calc(100% - 10px) 0);

}
a.button.tag.active,
button.tag.active,
.wpcf7 button[type="submit"].tag.active,
.wpcf7 input[type="submit"].tag.active {
    background-color: var(--ocean);
    color: var(--white);
}
a.button.tag:hover,
button.tag:hover,
.wpcf7 button[type="submit"].tag:hover,
.wpcf7 input[type="submit"].tag:hover {
    transform: scale(1);
    background-color: var(--mid-grey);
    border-color: var(--mid-grey);
    cursor: pointer;
}
a.button.tag.active:hover,
button.tag.active:hover,
.wpcf7 button[type="submit"].tag.active:hover,
.wpcf7 input[type="submit"].tag.active:hover {
    background-color: var(--seafoam);
    color: var(--ocean);
    opacity: 0.8;
}


/*** Tab Buttons ***/
a.button.tab,
button.tab,
.wpcf7 button[type="submit"].tab,
.wpcf7 input[type="submit"].tab {
    position: relative;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.2;
    font-family: 'industry', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* default color tertiary buttons - if they do not have a specific color class */
    color: var(--ocean);
    background-color: transparent;
    transition: ease all .3s;
    opacity: 0.7;
    padding-left: 0;
    white-space: nowrap;
    margin-right: 50px;
}
a.button.tab.active,
button.tab.active,
.wpcf7 button[type="submit"].tab.active,
.wpcf7 input[type="submit"].tab.active{
    opacity: 1;
}

/* Tab After Underline On Hover */
a.button.tab::after,
button.tab::after,
.wpcf7 button[type="submit"].tab::after,
.wpcf7 input[type="submit"].tab::after {
    content: '';
    display: block;
    height: 1px;
    width: 0;
    opacity: 0;
    transition: ease all .4s;
    margin-top: 10px;
    background-color: var(--ocean);
}
a.button.tab.active::after,
button.tab.active::after,
.wpcf7 button[type="submit"].tab.active::after,
.wpcf7 input[type="submit"].tab.active::after {
    opacity: 1;
    width: 100%;
}







/*** DISABLED STATES ***/
/* Primary Disabled */
a.button.primary.disabled,
a.button.primary.disabled:hover,

button.primary.disabled,
button.primary.disabled:hover,

.wpcf7 button[type="submit"]:disabled,
.wpcf7 button[type="submit"]:disabled:hover,

.wpcf7 input[type="submit"]:disabled,
.wpcf7 input[type="submit"]:disabled:hover {
    color: #B1B1B1;
    background-color: #E5E5E5;
    border-color: #E5E5E5;
    transform: scale(1);
}
a.button.primary.disabled:after,
button.primary.disabled:after {
    background-image: url('assets/tertiary/disabled_arrow.svg');
}

/* Secondary Disabled */
a.button.secondary.disabled,
a.button.secondary.disabled:hover,

button.secondary.disabled,
button.secondary.disabled:hover {
    color: #B1B1B1;
    background-color: #E5E5E5;
    border-color: #E5E5E5;
    transform: scale(1);
}
a.button.secondary.disabled:after,
button.secondary.disabled:after {
    background-image: url('assets/tertiary/disabled_arrow.svg');
}

/* Tertiary Disabled */
a.button.tertiary.disabled,
a.button.tertiary.disabled:hover,

button.tertiary.disabled,
button.tertiary.disabled:hover {
    color: #B1B1B1;
    transform: scale(1);
}
a.button.tertiary.disabled:before,
button.tertiary.disabled:before {
    background-color: #b1b1b1;
}
a.button.tertiary.disabled:after,
button.tertiary.disabled:after {
    background-image: url('assets/tertiary/disabled_arrow.svg');
}

/* Download Disabled */
a.button.download.disabled,
a.button.download.disabled:hover {
    color: #B1B1B1;
    transform: scale(1);
}
a.button.download.disabled:after {
    background-image: url('assets/download/download_disabled.svg');
}

/* Arrow Disabled */
a.button.arrow.disabled {
    border-color: #E5E5E5;
    background-color: #E5E5E5;
    background-image: url('assets/arrow/disabled_arrow.svg');
}
a.button.arrow.disabled:hover {
    transform: scale(1);
    opacity: 1;
}