/**
 * Frontend styles for Affiliate Flow
 */

.affiliate-flow-kyc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.affiliate-flow-kyc-header {
    text-align: center;
    margin-bottom: 30px;
}

.affiliate-flow-kyc-header h2 {
    margin-bottom: 10px;
    color: #333;
}

.affiliate-flow-kyc-header p {
    color: #666;
    font-size: 16px;
}

.affiliate-flow-kyc-iframe-wrapper {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.affiliate-flow-kyc-iframe-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 800px;
}

.affiliate-flow-kyc-complete {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.affiliate-flow-success-message {
    text-align: center;
    padding: 30px;
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.affiliate-flow-success-message h2 {
    color: #0ea5e9;
    margin-bottom: 15px;
}

.affiliate-flow-success-message p {
    color: #333;
    font-size: 16px;
    margin: 10px 0;
}

.affiliate-flow-page-generation {
    text-align: center;
    padding: 30px;
    background: #f9fafb;
    border-radius: 8px;
}

.affiliate-flow-page-generation h3 {
    margin-bottom: 15px;
    color: #333;
}

.affiliate-flow-page-url-preview {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.affiliate-flow-page-url-preview code {
    font-size: 16px;
    color: #0ea5e9;
    font-weight: 600;
}

.affiliate-flow-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #0ea5e9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.affiliate-flow-button:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.affiliate-flow-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.affiliate-flow-button.button-primary {
    background: #0ea5e9;
    padding: 10px 20px;
    margin-top: 10px;
}

.affiliate-flow-page-exists {
    text-align: center;
    padding: 30px;
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 8px;
}

.affiliate-flow-page-exists h3 {
    color: #22c55e;
    margin-bottom: 20px;
}

.affiliate-flow-page-url {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
}

.affiliate-flow-page-url code {
    font-size: 14px;
    color: #333;
    background: #f9fafb;
    padding: 5px 10px;
    border-radius: 4px;
}

#affiliate-flow-generation-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
}

#affiliate-flow-generation-status.loading {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    color: #0ea5e9;
}

#affiliate-flow-generation-status.success {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    color: #15803d;
}

#affiliate-flow-generation-status.error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #dc2626;
}

#affiliate-flow-generation-status p {
    margin: 0;
    font-weight: 500;
}

.affiliate-flow-message {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    text-align: center;
    margin: 20px 0;
}

/* Product Payment Card Styles */
.affiliate-flow-product-card {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.affiliate-flow-product-card__header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.affiliate-flow-product-card__header h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 32px;
    font-weight: 700;
}

.affiliate-flow-product-card__header p {
    color: #666;
    font-size: 18px;
}

.affiliate-flow-product-card__content {
    margin-top: 30px;
}

.affiliate-flow-product-card__info {
    margin-bottom: 40px;
}

.affiliate-flow-product-card__step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.affiliate-flow-step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-right: 20px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.affiliate-flow-step-content {
    flex: 1;
}

.affiliate-flow-step-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.affiliate-flow-step-content p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.affiliate-flow-product-card__action {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.affiliate-flow-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    min-width: 250px;
}

.affiliate-flow-product-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    text-decoration: none;
}

.affiliate-flow-product-button:active {
    transform: translateY(-1px);
}

.affiliate-flow-button-icon {
    font-size: 24px;
}

.affiliate-flow-button-text {
    font-size: 18px;
}

.affiliate-flow-product-card__note {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .affiliate-flow-kyc-container {
        padding: 10px;
    }
    
    .affiliate-flow-kyc-complete {
        margin: 20px;
        padding: 20px;
    }
    
    .affiliate-flow-kyc-iframe-wrapper iframe {
        min-height: 600px;
    }
    
    .affiliate-flow-button {
        width: 100%;
        padding: 14px;
    }
    
    .affiliate-flow-product-card {
        margin: 20px;
        padding: 25px;
    }
    
    .affiliate-flow-product-card__header h2 {
        font-size: 24px;
    }
    
    .affiliate-flow-product-card__step {
        flex-direction: column;
        text-align: center;
    }
    
    .affiliate-flow-step-number {
        margin: 0 auto 15px auto;
    }
    
    .affiliate-flow-product-button {
        width: 100%;
        min-width: auto;
    }
}

