#keyOneDiv {
    background-color: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0;
    margin: 0;
}

#keyoneCheckoutButton,
.keyoneCheckoutButton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    height: var(--k1fach-btn-h, 50px);
    min-height: var(--k1fach-btn-h, 50px);
    max-height: var(--k1fach-btn-h, 50px);
    padding: 0 16px;
    border: none;
    border-radius: var(--k1fach-btn-radius, 0);
    background: var(--k1fach-btn-bg, #086FB7);
    color: var(--k1fach-btn-color, #fff);
    font-family: var(--k1fach-btn-font-family, inherit);
    font-size: var(--k1fach-btn-font-size, 16px);
    font-weight: var(--k1fach-btn-font-weight, 700);
    letter-spacing: var(--k1fach-btn-letter-spacing, normal);
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
    overflow: visible;
}
#keyoneCheckoutButton:hover,
.keyoneCheckoutButton:hover {
    background: var(--k1fach-btn-bg-hover, #065c96);
}
#keyoneCheckoutButton:disabled:hover,
.keyoneCheckoutButton:disabled:hover {
    background: var(--k1fach-btn-bg, #086FB7);
}

/* In-button info icon — fixed px so it never collapses */
#keyOneToolTip.k1fach-btn__icon,
.k1fach-btn__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    min-width: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    cursor: pointer;
    z-index: 2;
}
#keyOneToolTip.k1fach-btn__icon svg,
.k1fach-btn__icon svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

#keyOneToolTip .keyOneToolTipText {
    visibility: hidden;
    width: 250px;
    color: black;
    text-align: center;
    border-radius: 6px;
    border: 2px solid black;
    padding: 10px;
    position: absolute;
    z-index: 1001;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    background: white;
    pointer-events: none;
}
#keyOneToolTip:hover .keyOneToolTipText {
    visibility: visible;
    opacity: 1;
}
#keyOneToolTip .keyOneToolTipText a {
    color: #00f;
    text-decoration: underline;
    font-size: 8px;
}

.k1fach-btn__text {
    white-space: nowrap;
    flex: 0 1 auto;
}
.k1fach-logo {
    height: auto;
    max-height: 84%;
    width: auto;
    display: block;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 6px;
    padding: 1px 1px;
    box-sizing: border-box;
}

.wc-proceed-to-checkout #keyOneDiv {
    justify-content: flex-end;
    width: 100%;
}
#keyoneCheckoutButton:disabled,
.keyoneCheckoutButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.k1fach-loading .k1fach-logo {
    display: none;
}

.k1fach-loading .k1fach-btn__text::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.5em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: k1fach-spin 0.6s linear infinite;
}

@keyframes k1fach-spin {
    to { transform: rotate(360deg); }
}