/* ── WC Buy Now Button — buy-now.css ── */

/* Base */
.wcbn-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
    transition-property: background-color, color, transform, box-shadow, opacity;
    transition-duration: 200ms;
    transition-timing-function: ease;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
}

.wcbn-button:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.25);
    outline-offset: 2px;
}

.wcbn-button .wcbn-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.wcbn-button .wcbn-icon svg {
    display: block;
}

/* ── Loading State ── */
.wcbn-button.wcbn-loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.wcbn-button.wcbn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wcbn-spin 0.6s linear infinite;
    margin-inline-start: 8px;
    flex-shrink: 0;
}

@keyframes wcbn-spin {
    to { transform: rotate(360deg); }
}

/* ── Hover Effects ── */

/* Scale */
.wcbn-hover-scale:hover {
    transform: scale(1.04);
}
.wcbn-hover-scale:active {
    transform: scale(0.97);
}

/* Pulse */
@keyframes wcbn-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,0,0,0.2); }
    70%  { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
.wcbn-hover-pulse:hover {
    animation: wcbn-pulse 0.6s ease;
}

/* Slide Up */
.wcbn-hover-slide {
    transform: translateY(0);
}
.wcbn-hover-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.wcbn-hover-slide:active {
    transform: translateY(-1px);
}

/* Glow */
.wcbn-hover-glow:hover {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.25), 0 4px 20px rgba(0,0,0,0.2);
}

/* Slide-in shimmer (decorative) */
.wcbn-hover-slide::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.4s ease;
    pointer-events: none;
}
.wcbn-hover-slide:hover::before {
    left: 140%;
}

/* ── RTL support ── */
[dir='rtl'] .wcbn-button {
    direction: rtl;
}
