/* PaySSD Frontend Styles */
.payssd-payment-form-wrapper {
    max-width: 400px;
    margin: 20px auto;
}

.payssd-payment-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.payssd-form-header {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    padding: 20px;
    text-align: center;
}

.payssd-logo-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.payssd-logo-small .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.payssd-logo-small .logo-text {
    font-size: 22px;
    font-weight: bold;
    color: white;
}

.payssd-logo-small .logo-text span {
    background: linear-gradient(90deg, #c4b5fd, #e9d5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payssd-amount-display {
    text-align: center;
    padding: 25px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.payssd-amount-display .currency {
    font-size: 18px;
    color: #6b7280;
    vertical-align: top;
}

.payssd-amount-display .amount {
    font-size: 42px;
    font-weight: bold;
    color: #1f2937;
    margin-left: 5px;
}

.payssd-form-group {
    padding: 0 25px;
    margin-bottom: 20px;
}

.payssd-form-group:first-of-type {
    padding-top: 25px;
}

.payssd-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.payssd-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.payssd-form-group input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    outline: none;
}

.payssd-form-group input::placeholder {
    color: #9ca3af;
}

.payssd-description {
    padding: 0 25px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.payssd-pay-button {
    display: block;
    width: calc(100% - 50px);
    margin: 0 25px 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.payssd-pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.payssd-pay-button:active {
    transform: translateY(0);
}

.payssd-pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.payssd-pay-button .button-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.payssd-pay-button .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: payssd-spin 0.8s linear infinite;
}

@keyframes payssd-spin {
    to {
        transform: rotate(360deg);
    }
}

.payssd-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 15px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.payssd-secure-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #10b981;
}

.payssd-error {
    padding: 15px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    text-align: center;
}

/* Payment Methods Icons */
.payssd-payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 25px;
    border-top: 1px solid #e5e7eb;
}

.payssd-payment-methods img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.payssd-payment-methods img:hover {
    opacity: 1;
}

/* Success State */
.payssd-success {
    text-align: center;
    padding: 40px 25px;
}

.payssd-success .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.payssd-success .success-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: white;
}

.payssd-success h3 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 10px;
}

.payssd-success p {
    color: #6b7280;
    margin-bottom: 0;
}

/* WooCommerce Checkout Styles */
.woocommerce-checkout .payment_method_payssd img {
    max-height: 30px;
    margin-left: 10px;
}

.woocommerce-checkout .payment_method_payssd .payment_box {
    background: #f9fafb;
    border-radius: 8px;
}

.payssd-thankyou {
    padding: 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.payssd-thankyou p {
    margin: 0;
    color: #059669;
}

.payssd-thankyou small {
    color: #6b7280;
}
