.king-addons-magnetic-buttons {
    --ka-magnetic-icon-gap: 8px;
    --ka-magnetic-button-bg: #111827;
    --ka-magnetic-button-color: #ffffff;
    --ka-magnetic-button-border: #111827;
    --ka-magnetic-button-border-width: 1px;
    --ka-magnetic-button-border-style: solid;
    --ka-magnetic-button-bg-hover: #0f172a;
    --ka-magnetic-button-color-hover: #ffffff;
    --ka-magnetic-button-border-hover: #0f172a;
    --ka-magnetic-button-transition: 220ms;
    --ka-magnetic-card-bg: #ffffff;
    --ka-magnetic-card-border: #e2e8f0;
    --ka-magnetic-card-radius: 16px;
    --ka-magnetic-card-padding: 20px;
    --ka-magnetic-card-gap: 14px;
    --ka-magnetic-card-title-color: #0f172a;
    --ka-magnetic-card-text-color: #475569;
    --ka-magnetic-card-image-ratio: 1.6;
    --ka-magnetic-badge-bg: #111827;
    --ka-magnetic-badge-color: #ffffff;
    --ka-magnetic-icon-bg: #f1f5f9;
    --ka-magnetic-icon-color: #0f172a;
    --ka-magnetic-icon-size: 22px;
    --ka-magnetic-icon-padding: 12px;
    --ka-magnetic-icon-radius: 999px;
}

.king-addons-magnetic-buttons__wrap {
    display: inline-block;
    position: relative;
}

.king-addons-magnetic-buttons__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--ka-magnetic-button-bg);
    color: var(--ka-magnetic-button-color);
    border-width: var(--ka-magnetic-button-border-width);
    border-style: var(--ka-magnetic-button-border-style);
    border-color: var(--ka-magnetic-button-border);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color var(--ka-magnetic-button-transition) ease,
        color var(--ka-magnetic-button-transition) ease,
        border-color var(--ka-magnetic-button-transition) ease,
        box-shadow var(--ka-magnetic-button-transition) ease;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.king-addons-magnetic-buttons__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ka-magnetic-icon-gap);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.king-addons-magnetic-buttons__button:hover {
    background-color: var(--ka-magnetic-button-bg-hover);
    color: var(--ka-magnetic-button-color-hover);
    border-color: var(--ka-magnetic-button-border-hover);
}

.king-addons-magnetic-buttons__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.king-addons-magnetic-buttons__button.is-icon-right .king-addons-magnetic-buttons__content {
    flex-direction: row-reverse;
}

.king-addons-magnetic-buttons__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.king-addons-magnetic-buttons__icon i,
.king-addons-magnetic-buttons__icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

.king-addons-magnetic-buttons--size-small .king-addons-magnetic-buttons__button {
    padding: 8px 18px;
    font-size: 13px;
}

.king-addons-magnetic-buttons--size-medium .king-addons-magnetic-buttons__button {
    padding: 12px 24px;
    font-size: 15px;
}

.king-addons-magnetic-buttons--size-large .king-addons-magnetic-buttons__button {
    padding: 16px 30px;
    font-size: 17px;
}

@media (max-width: 767px) {
    .king-addons-magnetic-buttons__button {
        padding: 10px 22px;
    }
}

.king-addons-magnetic-buttons__card {
    display: block;
    background-color: var(--ka-magnetic-card-bg);
    border: 1px solid var(--ka-magnetic-card-border);
    border-radius: var(--ka-magnetic-card-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.king-addons-magnetic-buttons__card-inner {
    display: flex;
    flex-direction: column;
    gap: var(--ka-magnetic-card-gap);
    padding: var(--ka-magnetic-card-padding);
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.king-addons-magnetic-buttons[data-card-layout="horizontal"] .king-addons-magnetic-buttons__card-inner {
    flex-direction: row;
    align-items: center;
}

.king-addons-magnetic-buttons__card-media {
    width: 100%;
    aspect-ratio: var(--ka-magnetic-card-image-ratio);
    overflow: hidden;
    border-radius: calc(var(--ka-magnetic-card-radius) - 6px);
    background: #f1f5f9;
    flex-shrink: 0;
}

.king-addons-magnetic-buttons[data-card-layout="horizontal"] .king-addons-magnetic-buttons__card-media {
    width: 40%;
    flex-basis: 40%;
}

.king-addons-magnetic-buttons__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.king-addons-magnetic-buttons__card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.king-addons-magnetic-buttons__card-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: var(--ka-magnetic-badge-bg);
    color: var(--ka-magnetic-badge-color);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.king-addons-magnetic-buttons__card-title {
    margin: 0;
    color: var(--ka-magnetic-card-title-color);
    font-weight: 600;
}

.king-addons-magnetic-buttons__card-text {
    margin: 0;
    color: var(--ka-magnetic-card-text-color);
}

.king-addons-magnetic-buttons__card-button {
    align-self: flex-start;
}

.king-addons-magnetic-buttons__icon-target {
    display: inline-flex;
    align-items: center;
    gap: var(--ka-magnetic-icon-gap);
    text-decoration: none;
    color: inherit;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.king-addons-magnetic-buttons__icon-inner {
    display: inline-flex;
    align-items: center;
    gap: var(--ka-magnetic-icon-gap);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.king-addons-magnetic-buttons__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--ka-magnetic-icon-size) + var(--ka-magnetic-icon-padding));
    height: calc(var(--ka-magnetic-icon-size) + var(--ka-magnetic-icon-padding));
    border-radius: var(--ka-magnetic-icon-radius);
    background-color: var(--ka-magnetic-icon-bg);
    color: var(--ka-magnetic-icon-color);
    flex-shrink: 0;
}

.king-addons-magnetic-buttons__icon-wrap.is-no-bg {
    background-color: transparent;
    width: var(--ka-magnetic-icon-size);
    height: var(--ka-magnetic-icon-size);
}

.king-addons-magnetic-buttons__icon-wrap i,
.king-addons-magnetic-buttons__icon-wrap svg {
    width: var(--ka-magnetic-icon-size);
    height: var(--ka-magnetic-icon-size);
}

.king-addons-magnetic-buttons__icon-label {
    font-weight: 500;
}

.king-addons-magnetic-buttons__selector-placeholder {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px dashed #cbd5f5;
    border-radius: 10px;
    font-size: 13px;
    color: #64748b;
    background-color: #f8fafc;
}
