/* HKD Stripe Payment Plugin Styles */

.hkd-stripe-payment-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.hkd-stripe-payment-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hkd-stripe-payment-form h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.hkd-stripe-payment-form > p {
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amount-input-wrapper input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.amount-input-wrapper input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.amount-input-wrapper .currency {
    font-weight: 600;
    color: #666;
    min-width: 45px;
}

.help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.error-message {
    padding: 12px;
    margin-bottom: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.cancel-message {
    padding: 12px;
    margin-bottom: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.payment-info h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.payment-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-info li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

.payment-info li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

/* Success Page Styles */
.hkd-stripe-payment-success {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    font-size: 48px;
    line-height: 80px;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hkd-stripe-payment-success h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
}

.payment-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
    border: 1px solid #e9ecef;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.detail-item .value {
    color: #333;
    word-break: break-all;
    text-align: right;
    flex: 1;
    margin-left: 20px;
    max-width: 60%;
    font-size: 14px;
}

.success-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.success-message p {
    margin: 0;
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 91, 98, 0.3);
}

/* Print Styles */
@media print {
    .hkd-stripe-payment-container {
        margin: 0;
        padding: 0;
    }
    
    .action-buttons {
        display: none;
    }
    
    .hkd-stripe-payment-form,
    .hkd-stripe-payment-success {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .hkd-stripe-payment-container {
        margin: 20px auto;
        padding: 10px;
    }

    .hkd-stripe-payment-form {
        padding: 20px;
    }

    .hkd-stripe-payment-form h2 {
        font-size: 20px;
    }

    .amount-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .amount-input-wrapper input {
        width: 100%;
    }

    .amount-input-wrapper .currency {
        text-align: right;
    }
    
    .hkd-stripe-payment-success {
        padding: 30px 20px;
    }
    
    .hkd-stripe-payment-success h2 {
        font-size: 24px;
    }
    
    .payment-details {
        padding: 15px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }
    
    .detail-item .label {
        margin-bottom: 5px;
    }
    
    .detail-item .value {
        text-align: left;
        margin-left: 0;
        max-width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons .btn,
    .action-buttons .btn-secondary {
        width: 100%;
    }
}
