/* Sizes
--------------------------------------------- */

.wp-block-buttons.has-x-small-font-size .wp-element-button {
    padding: 10px !important;
}
.wp-block-buttons.has-small-font-size .wp-element-button {
    padding: 20px !important;
}
.wp-block-buttons.has-medium-font-size .wp-element-button {
    padding: 30px 40px !important;
}
.wp-block-button .wp-block-button__link.is-style-outline,
.wp-block-button.is-style-outline > .wp-block-button__link {
    padding: 8px 1.333em;
}

body .is-layout-constrained > .wp-block-group.alignfull {
    margin-block-start: 0px !important;
}
body .is-layout-constrained .alignfull,
body .alignfull.is-layout-flow {
    margin-block-start: 0px !important;
}

/* Button
--------------------------------------------- */

body a.wp-element-button,
body a.wp-block-button__link {
	color: var(--wp--preset--color--base);
}

.wp-block-button.is-style-cta .wp-element-button {
    background-color: var(--wp--preset--color--cta);
    color: var(--wp--preset--color--base);
}
.wp-block-button.is-style-link .wp-element-button {
    background-color: transparent;
    padding: 4px 0 0 2px;
    color: #000;
}

.wp-block-navigation__submenu-container.has-contrast-background-color .wp-block-button.is-style-link .wp-element-button {
    color: #fff !important;
}

.wp-block-button.is-style-pill .wp-element-button,
.wp-block-button.is-style-pill .wp-element-button:hover {
    border-radius: 50px !important;
}
.wp-block-button.is-style-shadow .wp-element-button {
    box-shadow: 5px 5px var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline .wp-element-button:hover {
    color: var(--wp--preset--color--contrast) !important;
    background-color: var(--wp--preset--color--base) !important;
}

.wp-block-button .has-contrast-color.has-base-background-color:hover {
    color: var(--wp--preset--color--base) !important;
    background-color: var(--wp--preset--color--contrast) !important;
}
.wp-block-button.is-style-outline-shadow .has-base-background-color.has-background:hover {
    color: var(--wp--preset--color--base) !important;
    background-color: var(--wp--preset--color--cta);
}
.wp-block-button.is-style-outline-shadow .has-contrast-color:hover {
    color: var(--wp--preset--color--base) !important;
    background-color: var(--wp--preset--color--contrast) !important;
}

.wp-block-button.is-style-underline-hover a {
    background-color: transparent;
    border: solid 1px currentColor;
    color: currentColor;
    cursor: pointer;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 3.125rem;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 0.875rem;
    line-height: 1.5rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-in-out;
    transition-timing-function: ease-in-out;
    -webkit-transition-property: color, border-color, background-color;
    transition-property: color, border-color, background-color;
}
.wp-block-button.is-style-underline-hover .wp-element-button:hover:after {
    position: absolute;
    -webkit-transform: scale(1, 1) !important;
    -ms-transform: scale(1, 1) !important;
    transform: scale(1, 1) !important;
}
.wp-block-button.is-style-underline-hover .wp-element-button:after {
    content: "";
    position: absolute;
    display: block;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.1875rem;
    background-color: currentColor;
    -webkit-transform: scale(0, 1);
    -ms-transform: scale(0, 1);
    transform: scale(0, 1);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-in-out;
    transition-timing-function: ease-in-out;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
}

.wp-block-button.is-style-rounded .wp-element-button,
.wp-block-button.is-style-rounded .wp-element-button:hover {
    border-radius: 8px !important;
}

.wp-block-button.is-style-pill-outline .wp-element-button {
    border-radius: 50px !important;
    background-color: transparent;
    border: 2px solid;
    border-color: currentColor;
}

.wp-block-button.is-style-outline-shadow .wp-element-button {
    background-color: transparent;
    border: 2px solid;
    color: #000;
    border-color: #000;
}

.wp-block-button.is-style-outline-shadow .wp-element-button {
    box-shadow: 5px 5px var(--wp--preset--color--contrast);
    border: 2px solid var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline-shadow .wp-element-button.has-cta-color {
    box-shadow: 5px 5px var(--wp--preset--color--ctahover);
    border: 2px solid var(--wp--preset--color--ctahover);
}
.wp-block-button.is-style-outline-shadow .wp-element-button.has-primary-color {
    box-shadow: 5px 5px var(--wp--preset--color--senary);
    border: 2px solid var(--wp--preset--color--senary);
}
.wp-block-button.is-style-outline-shadow .wp-element-button.has-primary-background-color {
    color: var(--wp--preset--color--base);
    border: 2px solid var(--wp--preset--color--senary);
}

.wp-block-button.is-style-outline-shadow .wp-element-button.has-secondary-color {
    box-shadow: 5px 5px var(--wp--preset--color--septenary);
    border: 2px solid var(--wp--preset--color--septenary);
}
.wp-block-button.is-style-outline-shadow .wp-element-button.has-tertiary-color {
    box-shadow: 5px 5px var(--wp--preset--color--octonary);
    border: 2px solid var(--wp--preset--color--octonary);
}

/* Button Hovers
--------------------------------------------- */
.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background):hover,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
    color: var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--contrast);
}
.wp-block-button .has-primary-background-color:hover {
    background-color: var(--wp--preset--color--senary) !important;
}

.wp-block-button.is-style-outline-shadow .has-primary-color:hover {
    background-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--base) !important;
}
.wp-block-button.is-style-outline-shadow .has-secondary-color:hover {
    background-color: var(--wp--preset--color--secondary) !important;
    color: var(--wp--preset--color--base) !important;
}
.wp-block-button.is-style-outline-shadow .has-tertiary-color:hover {
    background-color: var(--wp--preset--color--tertiary) !important;
    color: var(--wp--preset--color--base) !important;
}

/* CTA - Normal + Pill Button hover */
.wp-block-button.is-style-cta .wp-element-button:hover,
.wp-block-button .has-cta-background-color:hover,
.wp-block-button.is-style-pill .has-cta-background-color:hover {
    background-color: var(--wp--preset--color--ctahover) !important;
	border-color: var(--wp--custom--colour--cta--300) !important;
}
.wp-block-button.is-style-cta .wp-element-button:active,
.wp-block-button .has-cta-background-color:active,
.wp-block-button.is-style-pill .has-cta-background-color:active {
    background-color: var(--wp--custom--colour--cta--600) !important;
	border-color: var(--wp--custom--colour--cta--300) !important;
}
.wp-block-button.is-style-cta .wp-element-button:focus,
.wp-block-button .has-cta-background-color:focus,
.wp-block-button.is-style-pill .has-cta-background-color:focus {
    background-color: var(--wp--custom--colour--cta--500) !important;
	border-color: var(--wp--custom--colour--cta--300) !important;
}

/* CTA Style outline */
.wp-block-button.is-style-outline .has-cta-color:hover,
.wp-block-button.is-style-pill-outline .has-cta-color:hover {
    background-color: var(--wp--preset--color--cta) !important;
    color: var(--wp--preset--color--base) !important;
}
.wp-block-button.is-style-outline .has-cta-color:focus,
.wp-block-button.is-style-pill-outline .has-cta-color:focus {
    border-color: var(--wp--custom--colour--cta--700) !important;
    color: var(--wp--custom--colour--cta--700) !important;
}
.wp-block-button.is-style-outline .has-cta-color:active,
.wp-block-button.is-style-pill-outline .has-cta-color:active {
    background-color: var(--wp--custom--colour--cta--600) !important;
    border-color: var(--wp--custom--colour--cta--300) !important;
	color: var(--wp--preset--color--base) !important;
}

/* CTA Others */

.wp-block-button.is-style-outline-shadow .has-cta-color:hover {
    background-color: var(--wp--preset--color--cta) !important;
    color: var(--wp--preset--color--base) !important;
}

/* Normal Button hover contrast */
.wp-block-button.is-style-outline .has-contrast-color:hover {
    background-color: var(--wp--preset--color--ctahover) !important;
    color: var(--wp--preset--color--base) !important;
}


.wp-element-button.has-primary-background-color:hover {
    background-color: var(--wp--preset--color--senary) !important;
}
.wp-element-button.has-secondary-background-color:hover {
    background-color: var(--wp--preset--color--septenary) !important;
}
.wp-element-button.has-tertiary-background-color:hover {
    background-color: var(--wp--preset--color--octonary) !important;
}

.wp-block-button.has-contrast-background-color:hover {
    background-color: var(--wp--preset--color--primary) !important;
}
.wp-block-button .has-contrast-background-color:hover {
    background-color: var(--wp--preset--color--primary) !important;
}
.has-contrast-background-color .wp-block-button.is-style-fill-base .wp-element-button:hover {
    background-color: var(--wp--preset--color--septenary);
    color: var(--wp--preset--color--base);
}
.wp-block-button.is-style-fill-base.is-style-fill .wp-element-button:hover {
    background-color: var(--wp--preset--color--septenary);
    color: var(--wp--preset--color--base);
}

.wp-block-button.is-style-pill .has-primary-background-color:hover {
    background-color: var(--wp--preset--color--senary) !important;
    color: var(--wp--preset--color--base) !important;
}
.wp-block-button.is-style-pill-outline .has-primary-color:hover {
    background-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--base) !important;
}

.wp-block-button.is-style-outline .has-primary-color:hover {
    background-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--base) !important;
}

.wp-block-button.is-style-pill .has-secondary-background-color:hover {
    background-color: var(--wp--preset--color--septenary) !important;
    color: var(--wp--preset--color--base) !important;
}
.wp-block-button.is-style-pill-outline .has-secondary-color:hover {
    background-color: var(--wp--preset--color--secondary) !important;
    color: var(--wp--preset--color--base) !important;
}

.wp-block-button.is-style-outline .has-secondary-color:hover {
    background-color: var(--wp--preset--color--secondary) !important;
    color: var(--wp--preset--color--base) !important;
}
.wp-block-button.is-style-outline .has-tertiary-color:hover {
    background-color: var(--wp--preset--color--tertiary) !important;
    color: var(--wp--preset--color--base) !important;
}

.wp-block-button.is-style-outline-shadow .has-cta-color:active {
    box-shadow: 2px 2px var(--wp--preset--color--ctahover) !important;
    top: 3px;
    transition: 0.1s;
    position: relative;
}
.wp-block-button.is-style-outline-shadow .has-primary-color:active {
    box-shadow: 2px 2px var(--wp--preset--color--senary) !important;
    top: 3px;
    transition: 0.1s;
    position: relative;
}
.wp-block-button.is-style-outline-shadow .has-secondary-color:active {
    box-shadow: 2px 2px var(--wp--preset--color--septenary) !important;
    top: 3px;
    transition: 0.1s;
    position: relative;
}
.wp-block-button.is-style-outline-shadow .has-tertiary-color:active {
    box-shadow: 2px 2px var(--wp--preset--color--octonary) !important;
    top: 3px;
    transition: 0.1s;
    position: relative;
}

.wp-block-button.is-style-shadow .wp-element-button:active {
    box-shadow: 2px 2px var(--wp--preset--color--contrast) !important;
    top: 3px;
    transition: 0.1s;
    position: relative;
}
