.animated-button {
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 3px 2px 1px rgba(0,0,0,.2);
    margin-bottom: 20px;
    margin-top: 20px;
    overflow: hidden;
}

.animated-button .btn-base {
    background-color: #f3f3f3;
    color: inherit;
    cursor: pointer;
    display: flex;
    outline: none;
    padding: .5em;
    position: relative;
    text-decoration: none;
}

.animated-button .btn-base:hover {
    background-color: #e8e8e8;
}

.animated-button .btn-base .img-area {
    align-items: center;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    width: 300px;
}

.animated-button .btn-base .img-area img {
    width: 100%;
}

.animated-button .btn-base .img-area .empty-img {
    background-color: #ececec;
    display: flex;
    flex-flow: wrap;
    height: 100%;
    width: 100%;
}

.animated-button .btn-base .img-area .empty-img .empty-img-msg,
.animated-button .btn-base .img-area .empty-img svg {
    color: #b4b4b4;
    font-size: 40px;
    margin: auto;
}

.animated-button .btn-base .img-area .empty-img .empty-img-msg {
    font-size: 16px;
}

.animated-button .btn-base .infos-area {
    display: flex;
    flex-flow: column;
    padding: 0 20px;
    width: calc(100% - 300px);
}

.animated-button .btn-base .infos-area span {
    float: left;
    font-size: 14px;
    position: relative;
    text-transform: uppercase;
    width: 100%;
}

/* Estilos para data-type="2" */
.animated-button .btn-base .infos-area .second-level-info {
    color: #3b3b3b;
    font-weight: bold;
    text-transform: uppercase;
}

.animated-button .btn-base .infos-area .second-level-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    margin-top: 4px;
    text-align: center;
}

.animated-button .btn-base .infos-area .second-level-description {
    margin: 10px;
    text-align: center;
}

.animated-button .btn-base .infos-area .second-level-cta {
    animation: blinker 2s linear infinite;
    background-color: var(--wp--preset--color--accent) !important;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    margin: auto;
    padding: 10px;
    text-transform: uppercase;
    width: -moz-fit-content;
    width: fit-content;
}

.animated-button.animated-border {
    --border-angle: 0turn;
    --main-bg: conic-gradient(from var(--border-angle),#213,#112 5%,#112 60%,#213 95%);
    border: 3px solid transparent;
    border-radius: 10px;
    box-shadow: none;
    --gradient-border: conic-gradient(from var(--border-angle),transparent 25%, var(--wp--preset--color--accent),#f03 99%,transparent);
    animation: bg-spin 3s linear infinite;
    background: var(--main-bg) padding-box, var(--gradient-border) border-box, var(--main-bg) border-box;
    background-position: 50%;
}

.animated-button.animated-border:hover {
    animation-play-state: paused;
}

@media(max-width: 600px) {
    .animated-button .btn-base {
        flex-flow: column;
    }
    .animated-button .btn-base .img-area {
        margin: auto;
        width: 100%;
    }
    .animated-button .btn-base .infos-area {
        margin-top: 15px;
        padding: 0;
        text-align: center;
        width: 100%;
    }
    .animated-button .btn-base .infos-area .second-level-description {
        text-align: center;
        margin: 10px;
    }

    .animated-button .btn-base .infos-area .second-level-cta {
        margin-top: 15px;
    }
    .animated-button .btn-base .img-area .empty-img {
        height: 200px;
    }
}

/* Estilos para data-type="1" */
.animated-button[data-type="1"] {
    margin: 1.5em auto;
    max-width: 265px;
}

.animated-button[data-type="1"] .btn-base {
    align-items: center;
    background-color: #f3f3f3;
    display: flex;
    flex-flow: column;
    outline: none;
    padding: .5em;
    text-decoration: none;
}

.animated-button[data-type="1"] .btn-base:hover {
    background-color: #e8e8e8;
}

.animated-button[data-type="1"] .btn-base .img-area {
    align-items: center;
    display: flex;
    height: unset;
    width: 100%;
}

.animated-button[data-type="1"] .btn-base .img-area img {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    height: -moz-fit-content;
    height: fit-content;
    max-height: 280px;
    max-width: 280px;
    position: relative;
    width: 100%;
}

.animated-button[data-type="1"] .btn-base .text-area {
    margin: .5em auto;
    padding: 0 10px;
}

.animated-button[data-type="1"] .btn-base .text-area .first-level-title {
    font-size: 20px;
    line-height: 26px;
    margin: 0;
    text-align: center;
}

.animated-button[data-type="1"] .btn-base .text-area .first-level-description {
    font-size: 16px;
    line-height: 18px;
    margin: 10px;
}

.animated-button[data-type="1"] .btn-base .icon-area {
    display: none;
}

.animated-button[data-type="1"] .btn-base .first-level-cta-area,
.animated-button[data/type="1"] .btn-base .first-level-cta-area {
    animation: blinker 2s linear infinite;
    border-radius: 6px;
    box-shadow: 0 0 4px #a4a4a4;
    color: #fff;
    display: flex;
    flex-flow: wrap;
    font-weight: 700;
    height: 35px;
    margin-top: 15px;
    padding: 2px 8px;
    width: -moz-fit-content;
    width: fit-content;
    align-items: center;
}

.animated-button[data-type="1"] .btn-base .first-level-cta-area .btn.first-level-cta {
    animation: blinker 2s linear infinite;
    background-color: var(--wp--preset--color--accent) !important;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    margin: auto;
    padding: 15px;
    text-transform: uppercase;
    width: -moz-fit-content;
    width: fit-content;
}

.animated-button[data-type="1"] .btn-base:hover .icon-area {
    background-color: #000;
    color: #fff;
}

.outgoing-link {
    /* Button styling */
    display: flex;
    justify-content: center;   /* center the text horizontally */
    align-items: center;       /* center the text vertically */
    position: relative;        /* needed for absolutely positioned pseudo-elements */
    width: 100%;               /* full width of the container */
    background-color: var(--wp--preset--color--accent) !important;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 24px;        /* some padding to make room for the arrows */
    outline: none !important;
    cursor: pointer;
}

/* Keep text and icons visible on hover/focus */
.outgoing-link:hover,
.outgoing-link:focus {
    background-color: var(--wp--preset--color--accent);
    color: #fff;
}

/* Left arrow */
.outgoing-link::before {
    content: "❯";
    animation: blinker 2s linear infinite;
    position: absolute;
    left: 16px;                 /* adjust as needed */
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: inherit;
}

/* Right arrow */
.outgoing-link::after {
    content: "❯";
    animation: blinker 2s linear infinite;
    position: absolute;
    right: 16px;                /* adjust as needed */
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    font-size: 24px;
    color: inherit;
}


.btn-custom {
    padding: 10px 10px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    border: 4px solid #00AEEF;
    border-radius: 10px;
    background-color: #ffffff;
    overflow: hidden;
    margin-top: 3px;
    font-size: 16px !important;
    margin-top: 6px;
    text-decoration: none; /* Remove underline */
    cursor: pointer; /* Makes the entire button clickable */
}

.btn-custom span {
    color: #00AEEF;
    font-size: 14px;
    font-family: sans-serif;
    font-weight: bold;
    padding: 5px;
    cursor: inherit; /* Inherits pointer cursor from the button */
}

.btn-icon {
    padding: 4px 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-left: auto;
    margin-right: 5px;
    border-radius: 5px;
    animation: blinker 2s linear infinite;
}

.btn-icon div {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-radius: 5px;
    border: 2px solid #00AEEF;
}

.btn-icon div span {
    font-size: 10px;
    font-weight: bold;
}

.btn-icon svg {
    width: 12px;
    fill: #00AEEF;
    margin-right: 3px;
}

/* THEME */
.btn-custom.theme {
    background-color: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
}

.btn-custom.theme {
    font-weight: bold !important;
    color: #ffffff !important;
}

.btn-custom.theme .btn-icon div {
    background-color: var(--wp--preset--color--accent) !important;
    border-color: #ffffff !important;
}

.btn-custom.theme .btn-icon div span {
    color: #ffffff !important;
}

.btn-custom.theme .btn-icon svg {
    fill: #ffffff !important;
}

/* OUTLINE THEME */
.btn-custom.theme-outline {
    border-color: var(--wp--preset--color--accent) !important;
}

.btn-custom.theme-outline {
    font-weight: bold !important;
    color: var(--wp--preset--color--accent) !important;
}

.btn-custom.theme-outline .btn-icon div {
    border-color: var(--wp--preset--color--accent) !important;
}

.btn-custom.theme-outline .btn-icon div span {
    color: var(--wp--preset--color--accent) !important;
}

.btn-custom.theme-outline .btn-icon svg {
    fill: var(--wp--preset--color--accent) !important;
}

@media(max-width: 600px) {
    .animated-button[data-type="1"] .btn-base {
        flex-flow: column;
    }
    .animated-button[data-type="1"] .btn-base .img-area {
        width: 100%;
    }
    .animated-button[data-type="1"] .btn-base .img-area img {
        height: unset;
        margin: auto;
        max-height: unset;
        width: 100%;
    }
    .animated-button[data-type="1"] .btn-base .text-area {
        margin-top: 22px;
    }
    .animated-button[data-type="1"] .btn-base .icon-area {
        margin-top: 20px;
    }
}

@keyframes bg-spin {
    to {
        --border-angle: 1turn;
    }
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

@property --border-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
}
