/* =========================================================
   Animated Custom Button - 161c99b6
   Defaults = reference design (yellow pill, dark green text)
   ========================================================= */

/* ---- Default variables (zero specificity so Elementor controls always win) ---- */
:where(.btn-wrap-161c99b6) {
    --btn-bg: #FFC93C;
    --btn-color: #1A4D2E;

    --hover-duration: 0.3s;

    --arrow-speed: 1.5s;
    --arrow-distance: 6px;

    --shine-speed: 3s;
    --shine-color: #ffffff;
    --shine-intensity: 0.45;
    --shine-width: 40%;
    --shine-skew: -20deg;

    --grow-speed: 2s;
    --grow-scale: 1.05;
}

/* ---- Button types (override defaults, still lose to Elementor controls) ---- */
:where(.btn-wrap-161c99b6.btn-type-info)    { --btn-bg: #6EC1E4; --btn-color: #ffffff; }
:where(.btn-wrap-161c99b6.btn-type-success) { --btn-bg: #61CE70; --btn-color: #ffffff; }
:where(.btn-wrap-161c99b6.btn-type-warning) { --btn-bg: #F4B400; --btn-color: #1a1a1a; }
:where(.btn-wrap-161c99b6.btn-type-danger)  { --btn-bg: #D9534F; --btn-color: #ffffff; }

/* ---- Wrapper (handles alignment) ---- */
.btn-wrap-161c99b6 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

/* ---- Button ---- */
.btn-wrap-161c99b6 .btn-161c99b6 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    max-width: 100%;
    padding: 16px 40px;
    overflow: hidden;
    border: 0 solid currentColor;
    border-radius: 100px;
    background-color: var(--btn-bg);
    color: var(--btn-color);
    font-family: 'Nunito', 'Baloo 2', 'Fredoka', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition-property: background-color, color, border-color, box-shadow, transform;
    transition-duration: var(--hover-duration);
    transition-timing-function: ease;
}

.btn-wrap-161c99b6 .btn-161c99b6:visited {
    color: var(--btn-color);
}

.btn-wrap-161c99b6 .btn-161c99b6:hover,
.btn-wrap-161c99b6 .btn-161c99b6:focus {
    color: var(--btn-hover-color, var(--btn-color));
    background-color: var(--btn-hover-bg, var(--btn-bg));
    text-decoration: none;
}

/* Default hover = slightly darker version of the background */
@supports (background: color-mix(in srgb, red, blue)) {
    .btn-wrap-161c99b6 .btn-161c99b6:hover,
    .btn-wrap-161c99b6 .btn-161c99b6:focus {
        background-color: var(--btn-hover-bg, color-mix(in srgb, var(--btn-bg) 88%, #000));
    }
}

.btn-wrap-161c99b6 .btn-161c99b6:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* ---- Text ---- */
.btn-wrap-161c99b6 .btn-text-161c99b6 {
    position: relative;
    z-index: 2;
}

/* ---- Icon ---- */
.btn-wrap-161c99b6 .btn-icon-161c99b6 {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    color: inherit;
    transition: color var(--hover-duration) ease;
}

.btn-wrap-161c99b6 .btn-icon-161c99b6 i {
    display: block;
    line-height: 1;
}

.btn-wrap-161c99b6 .btn-icon-161c99b6 svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.btn-wrap-161c99b6 .btn-161c99b6.icon-before .btn-icon-161c99b6 {
    order: -1;
}

/* ---- Arrow loop: moves left and returns, seamless ---- */
.btn-wrap-161c99b6 .btn-161c99b6.has-arrow-anim .btn-icon-161c99b6 {
    animation: arrow-loop-161c99b6 var(--arrow-speed) ease-in-out infinite;
    will-change: translate;
}

@keyframes arrow-loop-161c99b6 {
    0%, 100% { translate: 0 0; }
    50%      { translate: calc(var(--arrow-distance) * -1) 0; }
}

/* ---- Shine: left to right, with a short rest between sweeps ---- */
.btn-wrap-161c99b6 .btn-shine-161c99b6 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: var(--shine-width);
    opacity: var(--shine-intensity);
    background: linear-gradient(90deg, transparent 0%, var(--shine-color) 50%, transparent 100%);
    transform: translateX(-250%) skewX(var(--shine-skew));
    pointer-events: none;
    will-change: transform;
}

.btn-wrap-161c99b6 .btn-161c99b6.has-shine-anim .btn-shine-161c99b6 {
    animation: shine-161c99b6 var(--shine-speed) ease-in-out infinite;
}

@keyframes shine-161c99b6 {
    0%       { transform: translateX(-250%) skewX(var(--shine-skew)); }
    45%, 100% { transform: translateX(450%) skewX(var(--shine-skew)); }
}

/* ---- Grow / shrink: uses the `scale` property so it never fights hover transforms or layout ---- */
.btn-wrap-161c99b6 .btn-161c99b6.has-grow-anim {
    animation: grow-shrink-161c99b6 var(--grow-speed) ease-in-out infinite;
    will-change: scale;
}

@keyframes grow-shrink-161c99b6 {
    0%, 100% { scale: 1; }
    50%      { scale: var(--grow-scale); }
}

/* ---- Accessibility: respect reduced-motion settings ---- */
@media (prefers-reduced-motion: reduce) {
    .btn-wrap-161c99b6 .btn-161c99b6,
    .btn-wrap-161c99b6 .btn-icon-161c99b6,
    .btn-wrap-161c99b6 .btn-shine-161c99b6 {
        animation: none !important;
    }
}