/* ============================================= */
/* BASE STYLES */
/* ============================================= */
#ssm-mixer {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 800px;
    width: 95%;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

#ssm-mixer h2 {
    text-align: center;
    color: #2c3e50;
    margin: 0 0 30px;
    font-size: 28px;
    font-weight: 600;
}

/* ============================================= */
/* HORIZONTAL STEP INDICATOR WITH CIRCLES AND LABELS */
/* ============================================= */
.ssm-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 40px;
    position: relative;
    max-width: 600px;
    padding: 0 20px;
}

.ssm-progress:before {
    content: '';
    position: absolute;
    top: 20px; /* Position at center of circles */
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.ssm-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33.33%; /* Equal width for 3 steps */
}

.ssm-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    position: relative;
}

.ssm-step-label {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Active state */
.ssm-step.active .ssm-step-circle {
    background: #1e73be;
    color: white;
}

.ssm-step.active .ssm-step-label {
    color: #1e73be;
    font-weight: 600;
}

/* Completed state */
.ssm-step.completed .ssm-step-circle {
    background: #1e73be;
    color: white;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .ssm-progress {
        margin-bottom: 30px;
    }
    .ssm-step-circle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .ssm-step-label {
        font-size: 13px;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .ssm-progress {
        padding: 0 10px;
    }
    .ssm-step-circle {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .ssm-step-label {
        font-size: 12px;
    }
}

/* ============================================= */
/* STEP CONTENT - RESPONSIVE */
/* ============================================= */
.ssm-steps-container {
    position: relative;
    min-height: 300px;
}

.ssm-step-content {
    display: none;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ssm-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ssm-step-content h3 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 600px) {
    .ssm-step-content {
        padding: 20px 15px;
    }
    .ssm-step-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* ============================================= */
/* FRAGRANCE SELECTOR - RESPONSIVE */
/* ============================================= */
.ssm-select2 {
    width: 100%;
    margin-bottom: 15px;
}

.select2-container .select2-selection--multiple {
    min-height: 48px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #1e73be !important ;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    
    margin: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 4px;
}

.ssm-selection-counter {
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 480px) {
    .select2-container .select2-selection--multiple {
        min-height: 42px;
        font-size: 15px;
    }
}

/* ============================================= */
/* SIZE OPTIONS - RESPONSIVE */
/* ============================================= */
.ssm-size-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ssm-size-option {
    padding: 18px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.ssm-size-option:hover {
    border-color: #aaa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.ssm-size-option.selected {
    border-color: #1e73be;
    background: rgba(76, 175, 80, 0.05);
    transform: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.ssm-size-icon {
    font-size: 28px;
    color: #555;
    margin-bottom: 12px;
    text-align: center;
}

.ssm-size-details {
    text-align: center;
}

.ssm-size-name {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 15px;
}

.ssm-size-price {
    color: #1e73be;
    font-weight: 700;
    font-size: 16px;
}

/* Tablet */
@media (max-width: 768px) {
    .ssm-size-options {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ssm-size-options {
        grid-template-columns: 1fr;
    }
    .ssm-size-option {
        padding: 15px;
    }
    .ssm-size-icon {
        font-size: 24px;
        margin-bottom: 10px;
    }
}

/* ============================================= */
/* LABEL INPUT - RESPONSIVE */
/* ============================================= */
.ssm-label-input {
    margin-bottom: 25px;
}

#ssm-label-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#ssm-label-text:focus {
    border-color: #1e73be;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.ssm-char-count {
    text-align: right;
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* Mobile */
@media (max-width: 480px) {
    #ssm-label-text {
        padding: 10px 12px;
        font-size: 15px;
    }
}

/* ============================================= */
/* NAVIGATION BUTTONS - RESPONSIVE */
/* ============================================= */
.ssm-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.ssm-next-btn,
.ssm-prev-btn,
.ssm-add-to-cart-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    flex: 1;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ssm-next-btn,
.ssm-add-to-cart-btn {
    background: #1e73be;
    color: white;
}

.ssm-next-btn:hover,
.ssm-add-to-cart-btn:hover {
    background: #112D4E;
    transform: translateY(-1px);
}

.ssm-next-btn:active,
.ssm-add-to-cart-btn:active {
    transform: translateY(0);
}

.ssm-next-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.ssm-prev-btn {
    background: #f0f0f0;
    color: #333;
}

.ssm-prev-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.ssm-prev-btn:active {
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 480px) {
    .ssm-navigation {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    .ssm-next-btn,
    .ssm-prev-btn,
    .ssm-add-to-cart-btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
}

/* ============================================= */
/* SELECTION SUMMARY - RESPONSIVE */
/* ============================================= */
.ssm-selection-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #eee;
}

.ssm-selection-summary h4 {
    margin: 0 0 15px;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    font-size: 18px;
}

.ssm-summary-content {
    font-size: 15px;
    line-height: 1.5;
}

.ssm-summary-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.ssm-summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ssm-summary-empty {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Tablet */
@media (max-width: 768px) {
    .ssm-selection-summary {
        margin-top: 25px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ssm-selection-summary {
        padding: 15px;
        margin-top: 20px;
    }
    .ssm-selection-summary h4 {
        font-size: 16px;
    }
    .ssm-summary-content {
        font-size: 14px;
    }
}

/* ============================================= */
/* LOADING STATES & ANIMATIONS */
/* ============================================= */
.ssm-loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: ssm-spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes ssm-spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.ssm-error-message {
    color: #e74c3c;
    background: #fdecea;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ssm-error-message:before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}