/*
USAGE: .eec-btn or .cf7-button-style
DEFAULT: green
for other styles add classes:
.white or .blue
*/

.btn-grid {
    display: flex;
    gap: 20px;
}

.product-hero .btn-grid {
	gap: 30px;
}

.btn-grid.align-bottom {
  align-items: end !important;
}

.add-to-cart_section {
    min-width: 0;
}

.cf7-button-style {
    background: transparent;
}

/* fix hero buttons for phone / small phone */
@media screen and (max-width: 767px) {

    .btn-grid .eec-btn .btn-wrap,
    .btn-grid .cf7-button-style span {
        padding: 16px;
    }
}

@media screen and (max-width: 440px) {

    .btn-grid .eec-btn .btn-wrap,
    .btn-grid .cf7-button-style span {
        padding: 16px 12px;
        font-size: 16px;
        white-space: nowrap;
    }
}

.eec-btn,
.cf7-button-style {
    display: block;
    overflow: hidden !important;
    line-height: 1;
    font-weight: 500;
    position: relative;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-stack-text);
    border: none;

    /* increase clickable area and fix a strange bug
    with ugly border on hover, hacky but shouldn't break anything */
    padding: 1px;
}

.eec-btn .btn-wrap,
.cf7-button-style span {
    display: inline-flex;
    padding: 16px 32px;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: var(--black-medium);
    border-radius: 50px;
    width: 100%;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.eec-btn .btn-wrap::before,
.cf7-button-style span::before {
    content: '';
    position: absolute;
    left: -10px;
    bottom: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: var(--black-dark-bg);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.eec-btn:hover .btn-wrap::before,
.cf7-button-style:hover span::before {
    transform: translateY(0);
}

.eec-btn:hover .btn-wrap,
.cf7-button-style:hover span {
    color: var(--green);
    outline: 1px var(--black-dark-bg) solid;
}

.eec-btn.hover-light .btn-wrap::before,
.add-to-cart_section.hover-light .cf7-button-style span::before {
    background: var(--black-medium);
}

.eec-btn.hover-light:hover .btn-wrap,
.add-to-cart_section.hover-light .cf7-button-style:hover span {
    outline: 1px var(--black-medium) solid;
}

.eec-btn.white .btn-wrap,
.add-to-cart_section.white .cf7-button-style span {
    background: var(--text-pure-white);
    color: var(--black-medium);
}

.eec-btn.white:hover .btn-wrap,
.add-to-cart_section.white .cf7-button-style:hover span {
    color: var(--text-pure-white);
}

.eec-btn.blue .btn-wrap,
.add-to-cart_section.blue .cf7-button-style span {
    background: var(--blue);
    color: var(--text-pure-white);
}

.eec-btn.blue:hover .btn-wrap,
.add-to-cart_section.blue .cf7-button-style:hover span {
    color: var(--blue);
}

.eec-btn.left,
.add-to-cart_section.left .cf7-button-style {
    display: table;
    margin-top: 2rem;
}

.eec-btn.video .btn-wrap::after {
    content: '';
    background-image: url(/wp-content/uploads/2026/03/play.svg);
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    width: 17px;
    height: 15px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.eec-btn.video:hover .btn-wrap::after {
    filter: invert(1);
}

@media screen and (min-width: 768px) {
    .eec-btn.video .btn-wrap {
        padding-left: 45px;
    }
}

@media screen and (max-width: 767px) {

    .eec-btn .btn-wrap,
    .cf7-button-style span {
        padding: 16px 20px;
    }

    .eec-btn.video .btn-wrap::after {
        left: 30px;
    }

    .eec-btn span span {
        display: none;
    }
}