/* Social Login Frontend Styles */

.ksl-social-buttons {
    margin: 20px 0;
}

.ksl-separator {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.ksl-separator span {
    background: #fff;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.ksl-separator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #ddd;
}

.ksl-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ksl-buttons-wrapper.layout-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.ksl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    gap: 10px;
    cursor: pointer;
    min-height: 44px;
}

.ksl-button:hover {
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
}

.ksl-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ksl-button-icon svg {
    width: 18px;
    height: 18px;
}

/* Provider specific colors */
.ksl-button-google:hover {
    background: #4285f4;
    border-color: #4285f4;
    color: #fff;
}

.ksl-button-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.ksl-button-apple:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* Minimal style */
.ksl-style-minimal .ksl-button {
    border: none;
    background: #f5f5f5;
}

.ksl-style-minimal .ksl-button:hover {
    background: #e0e0e0;
}

/* Icon only style */
.ksl-style-icon-only .ksl-buttons-wrapper {
    flex-direction: row;
    justify-content: center;
}

.ksl-style-icon-only .ksl-button {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

.ksl-style-icon-only .ksl-button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Checkout specific */
.ksl-checkout-social-login {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.ksl-checkout-social-login h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Elementor widget */
.ksl-elementor-widget {
    margin: 20px 0;
}

.ksl-widget-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* WooCommerce integration */
.woocommerce-form-login .ksl-social-buttons,
.woocommerce-form-register .ksl-social-buttons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .ksl-buttons-wrapper.layout-horizontal {
        flex-direction: column;
    }
    
    .ksl-button {
        width: 100%;
    }
}

/* Woodmart theme compatibility */
.woodmart-dark .ksl-separator span {
    background: #1a1a1a;
    color: #999;
}

.woodmart-dark .ksl-separator::before {
    background: #333;
}

.woodmart-dark .ksl-button {
    background: #1a1a1a;
    border-color: #333;
    color: #fff;
}

.woodmart-dark .ksl-style-minimal .ksl-button {
    background: #2a2a2a;
}
