.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 {
    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-direction: column;
    gap: 10px;
    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%;
}

.animated-button .btn-base .infos-area .second-level-info {
    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);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    margin: 0 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;
    }
}

.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"].with-avatar {
  max-width: 300px;
}

.animated-button[data-type="1"].with-avatar .btn-base {
  padding: 1.45em;
}

.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 {
    display: flex;
    justify-content: center;   
    align-items: center;       
    position: relative;   
    width: 100%;       
    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;       
    outline: none !important;
    cursor: pointer;
}

.outgoing-link:hover,
.outgoing-link:focus {
    background-color: var(--wp--preset--color--accent);
    color: #fff;
}

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

.outgoing-link::after {
    content: "❯";
    animation: blinker 2s linear infinite;
    position: absolute;
    right: 16px;               
    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;
    cursor: pointer; 
}

.btn-custom span {
    color: #00AEEF;
    font-size: 14px;
    font-family: sans-serif;
    font-weight: bold;
    padding: 5px;
    cursor: inherit; 
}

.btn-icon {
    padding: 4px 0px;
    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;
}

.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;
}

.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;
}

.animated-button[data-style] {
  --sb-bg:#f3f3f3;
  --sb-hover:#e8e8e8;
  --sb-text:inherit;
  --sb-muted:#3b3b3b;
}

.animated-button[data-style] .btn-base{
  background-color:var(--sb-bg);
  color:var(--sb-text);
}

.animated-button[data-style] .btn-base:hover{
  background-color:var(--sb-hover);
}

.animated-button[data-style] .second-level-info{
  color:var(--sb-muted);
}

.animated-button[data-style] .second-level-title{
  font-weight:700;
}


.animated-button[data-style~="dark"]{
  --sb-bg:#121212;
  --sb-hover:#1a1a1a;
  --sb-text:#ffffff;
  --sb-muted:#ffffff;
}

.animated-button[data-style~="glass"]{
  background:rgba(255,255,255,0.45);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 8px 32px rgba(0,0,0,.08);
}

.animated-button[data-style~="glass"] .btn-base{
  --sb-bg:rgba(255,255,255,0.35);
  --sb-hover:rgba(255,255,255,0.55);
  --sb-text:#111; 
}

.animated-button[data-style~="glass"][data-style~="dark"]{
  background:rgba(20,20,20,0.55);
  border:1px solid rgba(255,255,255,.08);
}

.animated-button[data-style~="glass"][data-style~="dark"] .btn-base{
  --sb-text:#ffffff;
}


.animated-button[data-style~="minimal"]{
  border:none;
  box-shadow:none;
}

.animated-button[data-style~="minimal"] .btn-base{
  --sb-bg:#ffffff;
  --sb-hover:#f5f5f5;
}

.animated-button[data-style~="neon"]{
  --sb-bg:#050505;
  --sb-hover:#0c0c0c;
  --sb-text:#00ffff;
  --sb-muted:#7df9ff;
  border:2px solid #00ffff;
  box-shadow:0 0 14px #00ffff33;
}

.animated-button[data-style~="soft"]{
  --sb-bg:#f9fafb;
  --sb-hover:#f1f5f9;
  --sb-text:#1f2937;
  --sb-muted:#6b7280;
  border:1px solid #e5e7eb;
  box-shadow:
    0 6px 14px rgba(0,0,0,.06),
    0 2px 4px rgba(0,0,0,.04);
}


.animated-button[data-style~="full"] .second-level-cta{
  width:100% !important;
  text-align:center;
  display:block;
}

animated-button[data-style~="green"] {
  --sb-accent:#16a34a;
  --gradient-border: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    #16a34a,
    #22c55e 99%,
    transparent
  );
}

.animated-button[data-style~="green"] .second-level-title{
  color:#22c55e !important;
}

.animated-button[data-style~="green"] .second-level-cta{
  background-color:#16a34a !important;
  color:#fff !important;
}


.animated-button[data-style~="red"] {
  --sb-accent:#dc2626;
  --gradient-border: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    #dc2626,
    #ef4444 99%,
    transparent
  );
}

.animated-button[data-style~="red"] .second-level-title{
  color:#ef4444 !important;
}

.animated-button[data-style~="red"] .second-level-cta{
  background-color:#dc2626 !important;
  color:#fff !important;
}

.animated-button[data-style~="purple"] {
  --sb-accent:#7e22ce;
  --gradient-border: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    #7e22ce,
    #a855f7 99%,
    transparent
  );
}

.animated-button[data-style~="purple"] .second-level-title{
  color:#a855f7 !important;
}

.animated-button[data-style~="purple"] .second-level-cta{
  background-color:#7e22ce !important;
  color:#fff !important;
}

.animated-button[data-style~="black"] {
  background:#0b0b0b;
  --gradient-border: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    #444,
    #888 99%,
    transparent
  );
}

.animated-button[data-style~="black"] .btn-base{
  background:#0b0b0b !important;
  color:#ffffff !important;
}

.animated-button[data-style~="black"] .second-level-title{
  color:#ffffff !important;
}

.animated-button[data-style~="black"] .second-level-description{
  color:#bdbdbd !important;
}

.animated-button[data-style~="black"] .second-level-cta{
  background:#111111 !important;
  border:1px solid #333;
}


.animated-button[data-style~="blue"] {
  --sb-accent:#2563eb;
  --gradient-border: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    #2563eb,
    #3b82f6 99%,
    transparent
  );
}

.animated-button[data-style~="blue"] .second-level-title{
  color:#3b82f6 !important;
  font-weight:700;
}

.animated-button[data-style~="blue"] .second-level-cta{
  background-color:#2563eb !important;
  color:#fff !important;
}

.animated-button[data-style~="gold"] {
  --sb-accent:#b68d2c;
  --gradient-border: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    #b68d2c,
    #facc15 99%,
    transparent
  );
}

.animated-button[data-style~="gold"] .second-level-title{
  color:#d4af37 !important;
  font-weight:700;
}

.animated-button[data-style~="gold"] .second-level-cta{
  background-color:#b68d2c !important;
  color:#fff !important;
}

.animated-button .btn-base {
    align-items: stretch;
}

.animated-button .btn-base .img-area {
    height: auto;
}

.animated-button .btn-base .img-area img {
    height: 100%;
    object-fit: cover;
}

.second-button {
  background-color: red !important;
}

.animated-button .btn-base:hover {
    opacity: 1 !important;
    filter: none !important;
    background-color: #f3f3f3 !important;
}

.animated-button[data-style~="dark"] .btn-base:hover {
    background-color: #121212 !important;
}