/**
 * Security Ninja Checkout - Main Styles
 * Modern, responsive checkout design
 */

/* Reset and Base Styles */
.snc-checkout-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.snc-checkout-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid #e5e7eb;
}

/* Header Styles */
.snc-checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.snc-checkout-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.snc-checkout-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* Pricing Display */
.snc-pricing-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.snc-price-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 0;
}

.snc-price-main .snc-currency {
    display: none; /* Hide the separate currency span since it's already in the price */
}

.snc-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
}

.snc-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    line-height: 1;
}

.snc-period {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
}

.snc-price-breakdown {
    font-size: 0.95rem;
    color: #6b7280;
}

.snc-base-price {
    font-weight: 600;
    color: #374151;
}

.snc-discount {
    margin-left: 12px;
    padding: 4px 8px;
    background: #dcfce7;
    color: #166534;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Savings Display */
.snc-savings-display {
    margin-top: 8px;
    padding: 6px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    animation: snc-slide-in 0.3s ease-out;
}

.snc-savings-amount {
    font-weight: 700;
    font-size: 1rem;
}

@keyframes snc-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Styles */
.snc-dropdown-container {
    position: relative;
}

.snc-sites-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.snc-currency-dropdown {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 6px center;
    background-repeat: no-repeat;
    background-size: 12px;
    padding-right: 24px;
}

.snc-currency-dropdown:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.snc-currency-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.snc-currency-btn.snc-currency-active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.snc-sites-dropdown:hover,
.snc-currency-dropdown:hover {
    border-color: #d1d5db;
}

.snc-sites-dropdown:focus,
.snc-currency-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.snc-currency-selector {
    position: relative;
}

/* Tier Markers */
.snc-slider-container {
    position: relative;
}

.snc-tier-marker {
    position: absolute;
    width: 2px;
    height: 12px;
    background: #667eea;
    top: -6px;
    z-index: 1;
}

/* White Label Note */
.snc-white-label-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #92400e;
}

.snc-note-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.snc-note-text {
    font-weight: 500;
}

/* Configuration Options */
.snc-configuration {
    margin-bottom: 40px;
}

.snc-option-group {
    margin-bottom: 20px;
}

.snc-option-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Slider Styles */
.snc-slider-container {
    position: relative;
    margin: 30px 0;
}

.snc-sites-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.snc-sites-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: 2px solid #ffffff;
    transition: all 0.2s ease;
}

.snc-sites-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.snc-sites-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.snc-sites-display {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 12px;
}

#snc-sites-headline {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    transition: opacity 0.3s ease;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.snc-sites-value-display {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 12px;
}

/* Billing Cycle Toggle */
.snc-billing-section {
    margin: 30px 0;
    text-align: center;
}

.snc-billing-toggle {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    margin-top: 12px;
}

.snc-toggle-option {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.snc-toggle-option:hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

.snc-toggle-option.snc-toggle-active {
    background: #ffffff;
    color: #1f2937;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.snc-save-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Slider step indicators */
.snc-slider-steps {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.snc-step-marker {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #d1d5db;
    border-radius: 50%;
    transform: translateX(-50%);
    transition: all 0.2s ease;
}

.snc-step-marker.active {
    background: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.snc-step-label {
    position: absolute;
    top: 15px;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.snc-step-label.active {
    color: #667eea;
    font-weight: 600;
}



/* Plan Options */
.snc-plan-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.snc-plan-option {
    position: relative;
}

.snc-plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.snc-plan-label {
    display: block;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.snc-plan-option input[type="radio"]:checked + .snc-plan-label {
    border-color: #667eea;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.snc-plan-name {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.snc-plan-description {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Features Section */
/*
.snc-features {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
*/

.snc-features-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
    text-align: center;
}

.snc-features-list {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.snc-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    min-height: 60px;
}

.snc-feature-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.snc-feature-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.snc-feature-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    flex: 1;
}

.snc-feature-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-left: 32px;
    font-weight: 400;
    margin-top: 4px;
}

.snc-feature-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
}

/* Checkout Action */
.snc-checkout-action {
    text-align: center;
}

.snc-checkout-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    white-space: nowrap;
}

.snc-checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.snc-checkout-button:active {
    transform: translateY(0);
}

.snc-button-text {
    font-size: 1.2rem;
}

.snc-button-price {
    font-size: 1rem;
    opacity: 0.9;
}

.snc-checkout-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Loading States */
.snc-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success and Error Messages */
.snc-success,
.snc-error {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.snc-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.snc-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.snc-fade-in {
    animation: sncFadeIn 0.3s ease-in-out;
}

@keyframes sncFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.snc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error States */
.snc-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .snc-checkout-container {
        padding: 10px;
    }
    
    .snc-checkout-wrapper {
        padding: 24px;
    }
    
    .snc-checkout-title {
        font-size: 2rem;
    }
    
    .snc-price {
        font-size: 2.8rem;
    }
    
    .snc-features-list {
        grid-template-columns: 1fr;
    }
    
    .snc-toggle-option {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .snc-checkout-wrapper {
        padding: 20px;
    }
    
    .snc-checkout-title {
        font-size: 1.8rem;
    }
    
    .snc-price {
        font-size: 2.4rem;
    }
    
    .snc-pricing-display {
        padding: 20px;
    }
}

/* Animation Classes */
.snc-fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.snc-slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
