/**
 * Waply Connect Public CSS
 * Styles for the frontend payment buttons
 */

/* Button Container */
.waply-payment-button-container {
    margin: 20px 0;
}

/* Alignment Classes */
.waply-align-left {
    text-align: left;
}

.waply-align-center {
    text-align: center;
}

.waply-align-right {
    text-align: right;
}

/* Base Button Styles */
.waply-payment-button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.waply-payment-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.waply-payment-button:active {
    transform: translateY(1px);
}

/* Button Sizes */
.waply-btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.waply-btn-medium {
    padding: 10px 20px;
    font-size: 16px;
}

.waply-btn-large {
    padding: 12px 24px;
    font-size: 18px;
}

/* Button Styles */
.waply-btn-default {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.waply-btn-rounded {
    border-radius: 50px;
}

.waply-btn-flat {
    border-radius: 0;
}

.waply-btn-3d {
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.waply-btn-3d:active {
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.waply-btn-outline {
    background: transparent !important;
    border: 2px solid;
}

/* Button with icon */
.waply-payment-button i {
    margin-right: 8px;
}

/* Force button colors to override theme styles */
.waply-payment-button[style*="background-color"] {
    background-color: inherit !important;
}

.waply-payment-button[style*="color"] {
    color: inherit !important;
}

/* Ensure button styles are not overridden by themes */
.waply-payment-button {
    background-color: #2271b1 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
}

/* Override common theme button styles */
.waply-payment-button:hover,
.waply-payment-button:focus,
.waply-payment-button:active {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure inline styles take precedence */
.waply-payment-button[style] {
    background-color: inherit !important;
    color: inherit !important;
}
