/* Complete Shopify Cost Optimizer Styles */

/* Reset and Base Styles */
.sco-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sco-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
	border:1px solid linear-gradient(135deg, #000000 0%, #1A1A1A 100%);
	border-radius:25px;
}

/* Cards */
.sco-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #e8e8e8;
}

.sco-card-center {
    text-align: center;
}

/* Typography */
.sco-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.sco-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.sco-step-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.sco-step-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Stats Display */
.sco-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.sco-stat {
    text-align: center;
    min-width: 120px;
}

.sco-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 5px;
}

.sco-stat-label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Buttons */
.sco-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    text-align: center;
    min-width: 120px;
}

.sco-btn-primary {
    color: white;
}

.sco-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.3);
}

.sco-btn-secondary {
   
    color: #333;
}

.sco-btn-secondary:hover {
    
    transform: translateY(-2px);
}

.sco-btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.sco-btn-block {
    display: block;
    width: 100%;
}

/* Welcome Screen */
.sco-get-started {
    margin: 40px 0;
}

.sco-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.sco-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.sco-feature {
    text-align: center;
    padding: 20px;
}

.sco-feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.sco-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.sco-feature p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Progress Bar - See progress-bar.css for detailed styles */
.sco-progress-container {
    margin-bottom: 40px;
}

/* Forms */
.sco-form {
    margin-top: 30px;
}

.sco-form-group {
    margin-bottom: 25px;
}

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

.sco-form-label.required::after {
    content: ' *';
    color: #e74c3c;
}

.sco-form-input,
.sco-form-select,
.sco-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}
/* Hard isolate Shopify Cost Optimiser tool */
.sco-sontainer,
.sco-sontainer * {
  max-width: unset;
}

.sco-sontainer {
  width: 100vw;
  margin: 0;
}


.sco-form-input:focus,
.sco-form-select:focus,
.sco-form-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.sco-form-input.error,
.sco-form-select.error,
.sco-form-textarea.error {
    border-color: #e74c3c;
}

.sco-form-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

.sco-error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 6px;
    display: none;
}

.sco-success-message {
    color: #27ae60;
    font-size: 0.9rem;
    margin-top: 6px;
}

.sco-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    gap: 15px;
}

/* Choice Cards */
.sco-choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.sco-choice-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.sco-choice-card:hover {
    border-color: #0066cc;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.sco-choice-card.selected {
    border-color: #0066cc;
    background: #f0f7ff;
    box-shadow: 0 8px 25px rgba(0,102,204,0.15);
}

.sco-choice-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.sco-choice-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.sco-choice-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.sco-choice-features {
    text-align: left;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.sco-choice-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sco-choice-features li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
    font-size: 0.9rem;
}

.sco-choice-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Resource Forms */
.sco-resource-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.sco-resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sco-resource-title {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.sco-remove-resource {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.2s ease;
}

.sco-remove-resource:hover {
    background: #ff5252;
}

.sco-add-resource {
    background: none;
    border: 2px dashed #0066cc;
    color: #0066cc;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.sco-add-resource:hover {
    background: #0066cc;
    color: white;
    border-style: solid;
}

/* Form Grid Layout */
.sco-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Radio and Checkbox Groups */
.sco-radio-group,
.sco-checkbox-group {
    margin: 20px 0;
}

.sco-radio-item,
.sco-checkbox-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sco-radio-item:hover,
.sco-checkbox-item:hover {
    border-color: #0066cc;
    background: #f8faff;
}

.sco-radio-item.selected,
.sco-checkbox-item.selected {
    border-color: #0066cc;
    background: #f0f7ff;
}

.sco-radio-item input[type="radio"],
.sco-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
}

/* Platform Metrics */
.sco-platform-metrics {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.sco-platform-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

/* AI Loader */
.sco-ai-loader {
    text-align: center;
    padding: 60px 20px;
}

.sco-loader-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 30px 0;
    overflow: hidden;
    position: relative;
}

.sco-loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #00aaff);
    border-radius: 4px;
    width: 0;
    animation: scoLoading 3s ease-in-out infinite;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes scoLoading {
    0% { width: 0%; left: 0; }
    50% { width: 70%; }
    100% { width: 100%; left: 100%; }
}

.sco-loader-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0066cc;
    margin: 10px 0;
}

.sco-loader-steps {
    text-align: left;
    max-width: 400px;
    margin: 30px auto 0;
}

.sco-loader-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
    padding: 8px 0;
}

.sco-loader-step.active {
    color: #0066cc;
    font-weight: 600;
}

.sco-loader-step::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    margin-right: 15px;
    display: inline-block;
}

.sco-loader-step.active::before {
    background: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.2);
}

/* Results */
.sco-results-summary {
    background: linear-gradient(135deg, #0066cc, #00aaff);
    color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.sco-results-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.sco-result-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.sco-result-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.sco-recommendation {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #0066cc;
}

.sco-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.sco-recommendation-title {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.sco-savings-badge {
    background: #27ae60;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.sco-difficulty-badge {
    background: #f39c12;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.sco-recommendation-details {
    margin-top: 10px;
}

.sco-recommendation-details p {
    margin: 8px 0;
    color: #555;
    font-size: 0.95rem;
}

.sco-recommendation-details strong {
    color: #333;
    font-weight: 600;
}

/* Marketing Analysis */
.sco-platform-optimization {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.sco-platform-optimization h4 {
    color: #0066cc;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sco-optimization-details {
    margin-top: 15px;
}

.sco-strategies {
    margin-top: 15px;
}

.sco-strategies ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.sco-strategies li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.sco-strategies li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

/* Roadmap */
.sco-roadmap {
    margin-top: 40px;
}

.sco-roadmap-week {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #0066cc;
}

.sco-roadmap-week h4 {
    margin: 0 0 15px 0;
    color: #0066cc;
    font-size: 1.1rem;
}

.sco-roadmap-tasks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sco-roadmap-tasks li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.sco-roadmap-tasks li:last-child {
    border-bottom: none;
}

.sco-roadmap-tasks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Success Pages */
.sco-success-check {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.sco-success-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.sco-success-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sco-success-details li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.sco-success-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

.sco-final-savings {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
}

.sco-final-savings .sco-result-number {
    font-size: 2.5rem;
}

/* Loading Overlay */
.sco-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sco-loading-content {
    text-align: center;
    max-width: 300px;
}

.sco-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: scoSpin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Badges */
.sco-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sco-badge-blue {
    background: #e3f2fd;
    color: #1976d2;
}

.sco-badge-green {
    background: #e8f5e9;
    color: #388e3c;
}

.sco-badge-yellow {
    background: #fff8e1;
    color: #f57c00;
}

.sco-badge-purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

.sco-badge-gray {
    background: #f5f5f5;
    color: #616161;
}

/* Responsive */
@media (max-width: 768px) {
    .sco-container {
        padding: 15px;
    }
    
    .sco-card {
        padding: 25px 20px;
    }
    
    .sco-title {
        font-size: 2rem;
    }
    
    .sco-step-title {
        font-size: 1.5rem;
    }
    
    .sco-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .sco-stat {
        min-width: auto;
    }
    
    .sco-choice-cards {
        grid-template-columns: 1fr;
    }
    
    .sco-features {
        grid-template-columns: 1fr;
    }
    
    .sco-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .sco-form-actions .sco-btn {
        width: 100%;
    }
    
    .sco-results-numbers {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sco-recommendation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sco-savings-badge {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .sco-container {
        padding: 10px;
    }
    
    .sco-card {
        padding: 20px 15px;
    }
    
    .sco-title {
        font-size: 1.7rem;
    }
    
    .sco-results-numbers {
        grid-template-columns: 1fr;
    }
    
    .sco-form-grid {
        grid-template-columns: 1fr;
    }
}