
/* ==========================================================
   A2 Site Core — Kinsey Button
   Restored from Kinsey assets/css/base/elementor.css
   ========================================================== */

/* Theme variables scoped to the custom widget */
.elementor-widget-kinsey-button {
    --primary: #FDD441;
    --primary_hover: #FDD441;
    --text: #60707B;
    --border: #DCE2E6;
    --accent: #051C2C;
    --white: #FFFFFF;
    --size-icon: 24px;
    --color-icon: var(--white);
}

/* Base button */
.elementor-widget-kinsey-button .elementor-button {
    display: inline-grid;
    position: relative;
    font-family: var(
        --e-global-typography-accent-font-family,
        "Inter", Arial, sans-serif
    );
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 1.2em;
    letter-spacing: 0px;
    padding: 0;
    border: none;
    border-radius: 0;
    text-shadow: none;
    -webkit-appearance: none;
    color: var(--white);
    background-color: transparent !important;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Button icons */
.elementor-widget-kinsey-button .elementor-button svg {
    fill: var(--color-icon, #fff);
    width: var(--size-icon, 24px);
    height: var(--size-icon, 24px);
    transition: all 0.3s ease;
}

.elementor-widget-kinsey-button .elementor-button i {
    color: var(--color-icon, #fff);
    font-size: var(--size-icon, 24px);
    transition: all 0.3s ease;
}

.elementor-widget-kinsey-button .elementor-button:hover svg,
.elementor-widget-kinsey-button .elementor-button:focus svg,
.elementor-widget-kinsey-button .elementor-button:active svg {
    fill: var(--color-icon_hover, #fff);
}

.elementor-widget-kinsey-button .elementor-button:hover i,
.elementor-widget-kinsey-button .elementor-button:focus i,
.elementor-widget-kinsey-button .elementor-button:active i {
    color: var(--color-icon_hover, #fff);
}

/* Wrapper and content */
.elementor-widget-kinsey-button .elementor-button-wrapper {
    display: inline-grid;
}

.elementor-widget-kinsey-button.elementor-align-justify
.elementor-button-wrapper {
    width: 100%;
}

.elementor-widget-kinsey-button .elementor-button-content-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    overflow: hidden;
}

.elementor-widget-kinsey-button .elementor-button-text {
    position: relative;
    overflow: hidden;
}

.elementor-widget-kinsey-button .content-wrapper-text {
    display: inline-flex;
    padding: 16px 36px;
    background-color: var(--primary);
    border-radius: 0 20px;
    transition: all 0.3s ease;
}

.elementor-widget-kinsey-button .content-wrapper-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 54px;
    height: 54px;
    font-size: 24px;
    background-color: var(--primary);
    border-radius: 20px 0;
    transition: all 0.3s ease;
}

.elementor-widget-kinsey-button.elementor-align-justify
.content-wrapper-text {
    flex: 1;
}

/* Text hover animation */
.elementor-widget-kinsey-button .content-wrapper-text {
    position: relative;
}

.elementor-widget-kinsey-button .text-default,
.elementor-widget-kinsey-button .text-hover {
    display: block;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.elementor-widget-kinsey-button .text-default {
    transform: translateY(0);
    opacity: 1;
}

.elementor-widget-kinsey-button .text-hover {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
}

.elementor-widget-kinsey-button .elementor-button:hover .text-default {
    transform: translateY(-100%);
    opacity: 0;
}

.elementor-widget-kinsey-button .elementor-button:hover .text-hover {
    transform: translateY(-100%);
    opacity: 1;
}

/* Link variant */
.elementor-widget-kinsey-button.elementor-button-type-link
.elementor-button {
    --color-icon: var(--accent);
    --color-icon_hover: var(--primary);
    color: var(--accent);
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent !important;
}

.elementor-widget-kinsey-button.elementor-button-type-link
.elementor-button:hover {
    color: var(--primary);
}

.elementor-widget-kinsey-button.elementor-button-type-link
.elementor-button .elementor-button-content-wrapper {
    gap: 12px;
}

.elementor-widget-kinsey-button.elementor-button-type-link
.elementor-button .content-wrapper-text,
.elementor-widget-kinsey-button.elementor-button-type-link
.elementor-button .content-wrapper-icon {
    padding: 0;
    border-radius: 0;
    background-color: transparent !important;
}

.elementor-widget-kinsey-button.elementor-button-type-link
.elementor-button .content-wrapper-icon {
    width: auto;
    height: auto;
}

/* Outline variant */
.elementor-widget-kinsey-button.elementor-button-outline
.elementor-button {
    --color-icon: var(--accent);
    --color-icon_hover: var(--primary);
    border: none;
    color: var(--accent);
}

.elementor-widget-kinsey-button.elementor-button-outline
.elementor-button .content-wrapper-text,
.elementor-widget-kinsey-button.elementor-button-outline
.elementor-button .content-wrapper-icon {
    border: 1px solid var(--border);
    background-color: transparent !important;
    box-sizing: content-box;
}

.elementor-widget-kinsey-button.elementor-button-outline
.elementor-button:hover .content-wrapper-text,
.elementor-widget-kinsey-button.elementor-button-outline
.elementor-button:hover .content-wrapper-icon {
    border-color: var(--primary);
}

/* Icon hover animation — only when enabled in widget settings */
.elementor-widget-kinsey-button.icon-animation-yes
.elementor-button .elementor-button-icon {
    position: relative;
    overflow: hidden;
}

.elementor-widget-kinsey-button.icon-animation-yes
.elementor-button .icon-default,
.elementor-widget-kinsey-button.icon-animation-yes
.elementor-button .icon-hover {
    display: inline-flex;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.elementor-widget-kinsey-button.icon-animation-yes
.elementor-button .icon-default {
    transform: translateX(0);
    opacity: 1;
}

.elementor-widget-kinsey-button.icon-animation-yes
.elementor-button .icon-hover {
    position: absolute;
    left: -100%;
    top: 0;
    opacity: 0;
}

.elementor-widget-kinsey-button.icon-animation-yes
.elementor-button:hover .icon-default {
    transform: translateX(100%);
    opacity: 0;
}

.elementor-widget-kinsey-button.icon-animation-yes
.elementor-button:hover .icon-hover {
    transform: translateX(100%);
    opacity: 1;
}
