/* WCRF Custom Button Styles */

.wcrf-customize-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.wcrf-customize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    color: #ffffff;
}

.wcrf-customize-btn:active {
    transform: translateY(-1px);
}

.wcrf-customize-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wcrf-customize-btn.loading {
    position: relative;
    color: transparent !important;
}

.wcrf-customize-btn.loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: wcrf-spin 0.8s linear infinite;
}

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

/* Product listing specific styles */
.products .product .wcrf-customize-btn {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Single product specific styles */
.single-product .wcrf-customize-btn {
    margin: 10px 5px;
}

/* Widget area styles */
.widget .wcrf-customize-btn {
    font-size: 14px;
    padding: 8px 16px;
}

/* Error message */
.wcrf-error {
    background: #fff;
    border-left: 4px solid #dc3232;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wcrf-debug {
    display: block;
    font-size: 12px;
    color: #666;
    background: #f7f7f7;
    padding: 5px 10px;
    border: 1px dashed #ccc;
    margin: 5px 0;
}