/* Shopify Payment Integration Styles */

/* Payment Button Styles - Matching Theme */
.shopify-payment-btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Noto Serif HK', serif;
    font-size: 1rem;
    margin: 8px 0;
    background: #333333;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shopify-payment-btn:hover {
    background: #444444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.shopify-payment-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.shopify-payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alternative payment button styles */
.shopify-payment-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.shopify-payment-btn.secondary:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.shopify-payment-btn.success {
    background: #333333;
    color: #ffffff;
    border: 2px solid #444444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shopify-payment-btn.success:hover {
    background: #444444;
    border-color: #555555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Payment Option in Contact Form - Matching Theme */
.payment-options {
    margin: 20px 0;
    padding: 20px;
    background: #222222;
    border-radius: 8px;
    border: 1px solid #444444;
}

.payment-options h4 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 18px;
    font-family: 'Noto Serif HK', serif;
}

.payment-option {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 15px;
    background: #333333;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    background: #444444;
}

.payment-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #ffffff;
}

.payment-option input[type="radio"]:checked + .payment-option-content {
    color: #ffffff;
}

.payment-option-content {
    flex: 1;
}

.payment-option-title {
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #ffffff;
    font-family: 'Noto Serif HK', serif;
}

.payment-option-description {
    font-size: 14px;
    color: #e0e0e0;
    margin: 0;
    font-family: 'Noto Serif HK', serif;
}

.payment-option-price {
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Noto Serif HK', serif;
}

/* Loading State - Matching Theme */
.shopify-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: #222222;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #444444;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333333;
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Noto Serif HK', serif;
}

/* Error State - Matching Theme */
.shopify-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4757;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    z-index: 9998;
    max-width: 400px;
    border: 1px solid #ff6b7a;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-content i {
    font-size: 20px;
}

.error-content p {
    margin: 0;
    flex: 1;
    font-family: 'Noto Serif HK', serif;
}

.error-content button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Noto Serif HK', serif;
    transition: all 0.3s ease;
}

.error-content button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Success State - Matching Theme */
.shopify-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    z-index: 9998;
    max-width: 400px;
    border: 1px solid #34ce57;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-content i {
    font-size: 20px;
}

.success-content p {
    margin: 0;
    flex: 1;
    font-family: 'Noto Serif HK', serif;
}

.success-content button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Noto Serif HK', serif;
    transition: all 0.3s ease;
}

.success-content button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Pricing Section Updates */
.pricing-grid .plan-card {
    position: relative;
}

.pricing-grid .plan-card .shopify-payment-btn {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

/* Payment Status Indicators */
.payment-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-status.pending {
    background: #fff3cd;
    color: #856404;
}

.payment-status.success {
    background: #d4edda;
    color: #155724;
}

.payment-status.error {
    background: #f8d7da;
    color: #721c24;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .shopify-payment-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .payment-options {
        padding: 15px;
    }
    
    .payment-option {
        padding: 8px;
    }
    
    .shopify-error {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .loading-content {
        padding: 20px;
        margin: 0 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .payment-options {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .payment-option {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .payment-option-title {
        color: #e2e8f0;
    }
    
    .payment-option-description {
        color: #a0aec0;
    }
    
    .loading-content {
        background: #2d3748;
        color: #e2e8f0;
    }
}
