/* ===================================================================
 * Sifency Button Styles
 * =================================================================== */
a.sifency-button-style.sifency-button {
    text-decoration: none;
}

.sifency-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    cursor: pointer;
    appearance: none;
    border: none;
    position: relative;
    overflow: hidden;
    user-select: none;
    letter-spacing: 0.01em;
    will-change: transform, box-shadow, background;
}

.sifency-button-content-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    position: relative;
}

.sifency-button-content-wrapper .sifency-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------
   PRIMARY BUTTON
-------------------------------------------------- */
.sifency-button.primary {
    transition: all 0.3s ease-in-out;
    background: var(--e-global-color-primary);
    color: var(--sifency-addons-whitecolor);
}

.sifency-button.primary:hover {
    transition: all 0.3s ease-in-out;
}

.sifency-button.primary:active {
    transition: all 0.3s ease-in-out;
}

/* --------------------------------------------------
   SECONDARY BUTTON
-------------------------------------------------- */
.sifency-button.secondary {
    background: var(--sifency-addons-whitecolor);
    transition: all 0.3s ease-in-out;
}

.sifency-button.secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transition: all 0.3s ease-in-out;
}

/* --------------------------------------------------
   OUTLINE BUTTON
-------------------------------------------------- */
.sifency-button.outline {
    background: transparent;
    border: 2px solid var(--e-global-color-primary);
    box-shadow: none;
    transition: all 0.3s ease-in-out;
}

.sifency-button.outline span {
    color: var(--e-global-color-primary);
}

.sifency-button.outline:hover {
    background: var(--e-global-color-primary);
    transition: all 0.3s ease-in-out;
    border-color: var(--e-global-color-primary);
}

/* --------------------------------------------------
   GHOST BUTTON
-------------------------------------------------- */
.sifency-button.ghost {
    background: transparent;
    color: #374151;
    border: none;
    padding: 10px 18px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.sifency-button.ghost span {
    color: #374151;
}

.sifency-button.ghost:hover {
    background: rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease-in-out;
}

.sifency-button.ghost:hover span {
    color: var(--e-global-color-primary);
}

/* --------------------------------------------------
   ICON-ONLY BUTTON
-------------------------------------------------- */
.sifency-button.icon-only {
    width: 46px;
    height: 46px;
    border-radius: 50px;
    background: var(--e-global-color-primary);
    color: var(--sifency-addons-whitecolor);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.sifency-button.icon-only .sifency-button-text {
    display: none;
}

/* --------------------------------------------------
   DISABLED STATE
-------------------------------------------------- */
.sifency-button[disabled],
.sifency-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sifency-button[disabled]::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.sifency-button:hover::after {
    opacity: 1;
}

/* --------------------------------------------------
   FLIP
-------------------------------------------------- */
.flip-button-wrapper {
    display: inline-block;
    border: none;
    position: relative;
    overflow: hidden;
}

.flip-button-wrapper span,
.flip-button-wrapper .flip-text span {
    color: #fff;
}

.flip-button-wrapper:hover {
    border: none;
}

.flip-button-wrapper .flip-text {
    display: inline-block;
    position: relative;
    height: 1em;
    perspective: 800px;
}

.flip-button-wrapper .flip-text span {
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
    backface-visibility: hidden;
}

.flip-button-wrapper .flip-text .default-text {
    transform: translateY(0) rotateX(0);
}

.flip-button-wrapper .flip-text .hover-text {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%) rotateX(-90deg);
    opacity: 0;
}

.flip-button-wrapper:hover .flip-text .default-text {
    transform: translateY(-100%) rotateX(90deg);
    opacity: 0;
}

.flip-button-wrapper:hover .flip-text .hover-text {
    transform: translateY(0) rotateX(0);
    opacity: 1;
}

/* =========================================================
   Base Circle Fancy Button
   ========================================================= */
.sifency-button.sifency-circle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    text-decoration: none;
    box-sizing: border-box;
    width: 150px;
    height: 150px;
    border: 1px solid var(--e-global-color-primary);
    background-color: transparent;
    color: var(--white-color);
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.sifency-button.sifency-circle-btn span,
.sifency-button.sifency-circle-btn i,
.sifency-button.sifency-circle-btn svg {
    position: relative;
    z-index: 2;
    color: var(--white-color);
    transition:
        color 0.3s ease,
        fill 0.3s ease;
}

.sifency-button.sifency-circle-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--e-global-color-primary);
    z-index: 1;
    transition: left 0.3s ease-in-out;
}

.sifency-button.sifency-circle-btn:hover {
    border-color: var(--e-global-color-primary);
}

.sifency-button.sifency-circle-btn:hover::before {
    left: 0;
}

.sifency-button.sifency-circle-btn:hover span,
.sifency-button.sifency-circle-btn:hover i,
.sifency-button.sifency-circle-btn:hover svg {
    color: var(--black-color);
    fill: var(--black-color);
}

.sifency-dual-btn-wrapper .sifency-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sifency-dual-btn-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

.sifency-dual-btn-wrapper .sifency-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.sifency-dual-btn-wrapper .sifency-icon-left {
    margin-right: 8px;
}

.sifency-dual-btn-wrapper .sifency-icon-right {
    margin-left: 8px;
}

.sifency-dual-sep {
    display: inline-block;
}

@media (max-width: 767px) {
    .sifency-dual-btn-wrapper {
        justify-content: center;
    }
}

.sifency-button.animated-btn {
    overflow: hidden;
    z-index: 1;
}

.sifency-button.animated-btn::before,
.sifency-button.animated-btn::after {
    content: '';
    position: absolute;
    z-index: -1;
    background: var(--sifency-addons-whitecolor);
}

.sifency-button.wipe-top::before {
    top: 0;
    right: 0;
    bottom: 100%;
    left: 0;
}

.sifency-button.wipe-top:hover::before {
    bottom: 0;
}

.sifency-button.wipe-right::before {
    top: 0;
    right: 0;
    bottom: 0;
    left: 100%;
}

.sifency-button.wipe-right:hover::before {
    left: 0;
}