@import url("../../../icomoon/style.css");

/* Add arrows to buttons */

.wp-block-button__link {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    transition-duration: .25s;
}

/* Add hover state for outline button */

.is-style-outline > .wp-block-button__link:hover,
.is-style-outline > .wp-block-button__link.has-text-color:hover,
[class*="is-style-section-primary"] .wp-block-button__link:hover,
[class*="is-style-section-primary"] .is-style-outline > .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
}

/* Add active state */

.wp-block-button__link:active,
.is-style-outline > .wp-block-button__link:active {
    background-color: color-mix(in srgb, var(--wp--preset--color--primary) 80%, var(--wp--preset--color--contrast));
    border-color: color-mix(in srgb, var(--wp--preset--color--primary) 80%, var(--wp--preset--color--contrast));
    color: var(--wp--preset--color--base);
}

/* Add icons for button styles */

.is-style-video > .wp-block-button__link:before,
.is-style-contact > .wp-block-button__link:before,
.is-style-profile > .wp-block-button__link:before {
    content: "\e914";
    font-family: "icomoon" !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    transition-duration: .25s;
    font-weight: 100;
    margin-right: 10px;
}

.is-style-video > .wp-block-button__link:before {
    content: "\e9fe";
}

.is-style-contact > .wp-block-button__link:before {
    content: "\ea47";
}

.is-style-profile > .wp-block-button__link:before {
    content: "\ea48";
}

/* Inline styles for buttons with icons */
.is-style-inline > .wp-block-button__link:before {
    content: "\ea55";
    font-family: "icomoon" !important;
    display: flex;
    align-items: center;
    font-size: 90%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    justify-content: center;
    background-color: var(--wp--preset--color--contrast-light);
    color: var(--wp--preset--color--contrast);
    transition: all 0.3s ease-in-out;
    font-weight: 100;
    margin-right: 10px;
}
.is-style-video > .wp-block-button__link,
[class*="is-style-section-primary"] .is-style-outline > .wp-block-button__link {
    border-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--base);
}

/* Make sure outline buttons with custom text color influences the border color too */
.is-style-outline > .wp-block-button__link.has-text-color {
    border-color: currentColor;
}

/* Stack buttons on mobile */
@media (max-width: 782px) {
    .wp-block-buttons.is-style-stack {
        flex-direction: column;

        & > .wp-block-button,
        & > .wp-block-button > .wp-block-button__link {
            width: 100%;
        }
    }
}

/* Stack resized buttons in columns smaller than 700px */
@container (max-width:700px) {
    .wp-block-buttons:has(.wp-block-button[class*="wp-block-button__width-"][class*="is-style-"]) {
        gap: var(--wp--preset--spacing--20);
    }
    .wp-block-column .wp-block-buttons > .wp-block-button[class*="wp-block-button__width-"][class*="is-style-"] {
        width: 100%;
    }
}

[class*="is-style-section-contrast"] .is-style-inline > .wp-block-button__link {
    color: var(--wp--preset--color--base);
    font-weight: normal;
}

[class*="is-style-section-contrast"] .is-style-inline > .wp-block-button__link:before {
    background-color: rgba(255,255,255, 0.2);
    color: var(--wp--preset--color--base);
}

[class*="is-style-section-contrast"] .is-style-inline > .wp-block-button__link:hover:before {
    background-color: rgba(255,255,255, 1);
    color: var(--wp--preset--color--contrast);
}


.is-style-external > .wp-block-button__link,
.is-style-download > .wp-block-button__link {
    width: 50px !important;
    height: 50px;
    flex: 0 0 50px !important;
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: auto;
    overflow: hidden;
    font-size: 0;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    transition-duration: .25s;
}

.is-style-external > .wp-block-button__link:hover,
.is-style-download > .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--primary);
}

.is-style-external > .wp-block-button__link:before {
    content: "\ea56";
    font-family: "icomoon" !important;
    font-size: var(--wp--preset--font-size--large);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 20;
    text-align: center;
}

.is-style-download > .wp-block-button__link:before {
    content: "\ea57";
    font-family: "icomoon" !important;
    font-size: var(--wp--preset--font-size--large);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 20;
    text-align: center;
}

.wp-block-button:has(.wp-block-button__link.wp-load-more__button) {
    display: flex;
    justify-content: flex-start;
}

.wp-block-button .wp-block-button__link.wp-load-more__button  {
    border-radius: 0;
    padding: 0;
    width: auto;
    background-color: transparent;
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
}

.wp-block-button .wp-block-button__link.wp-load-more__button:before {
    content: "\ea01";
    font-family: "icomoon" !important;
    display: flex;
    align-items: center;
    font-size: 90%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    justify-content: center;
    background-color: var(--wp--preset--color--contrast-light);
    color: var(--wp--preset--color--contrast);
    transition: all 0.3s ease-in-out;
    font-weight: 100;
    margin-right: 10px;
}

/* Hover state */
.wp-block-buttons .wp-block-button:not(.is-style-inline, :has(.qllm-loading), .is-style-external, .is-style-download) .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
}
.wp-block-buttons .wp-block-button:not(.is-style-inline, :has(.qllm-loading), .is-style-external, .is-style-download).is-style-contrast .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
}

.is-style-inline > .wp-block-button__link:hover span,
.wp-block-button__link.wp-load-more__button:hover span {
    text-decoration: underline;
}

.is-style-inline > .wp-block-button__link:hover:before,
.wp-block-button__link.wp-load-more__button:hover:before {
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    text-decoration: none !important;
}

@media (max-width: 782px) {
    .wp-block-buttons .wp-block-button:not(.is-style-inline, :has(.qllm-loading), .is-style-external, .is-style-download) {
        width: 100%;
        flex: 0 0 100%;
    }   
    .wp-block-buttons .wp-block-button:not(.is-style-inline, :has(.qllm-loading), .is-style-external, .is-style-download) .wp-block-button__link {
        width: 100%;
        padding-left: var(--wp--preset--spacing--20);
        padding-right: var(--wp--preset--spacing--20);
        justify-content: center;
    }
    header .wp-block-buttons .wp-block-button:not(.is-style-inline, :has(.qllm-loading), .is-style-external, .is-style-download) .wp-block-button__link {
        padding-left: 19px;
        padding-right: 19px;
    }
}

.is-style-inline > .wp-block-button__link:hover,
.is-style-inline > .wp-block-button__link:focus,
.is-style-inline > .wp-block-button__link:active {
    background-color: transparent !important;
    color: inherit !important;
}