/**
 * Public Styles - Wizard Interface
 * 
 * @package New_Store_Helper
 */

/* Wizard Container */
#nsh-wizard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Step Indicator */
.nsh-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.nsh-step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.nsh-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.nsh-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.nsh-step.active .nsh-step-number {
    background: #2271b1;
    color: #fff;
}

.nsh-step.completed .nsh-step-number {
    background: #00a32a;
    color: #fff;
}

.nsh-step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.nsh-step.active .nsh-step-label {
    color: #2271b1;
    font-weight: 600;
}

/* Step Content */
.nsh-step-content {
    padding: 20px;
}

.nsh-step-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 28px;
}

.nsh-step-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Budget Options */
.nsh-budget-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.nsh-budget-option {
    position: relative;
    cursor: pointer;
}

.nsh-budget-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.nsh-budget-label {
    display: block;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nsh-budget-option input[type="radio"]:checked+.nsh-budget-label {
    border-color: #2271b1;
    background: #f0f6fc;
    color: #2271b1;
}

.nsh-budget-option:hover .nsh-budget-label {
    border-color: #2271b1;
}

/* Custom Budget */
.nsh-custom-budget {
    margin-top: 20px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 4px;
}

#nsh-custom-budget-value {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Preferences Grid */
.nsh-preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.nsh-preference-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.nsh-checkbox-grid {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.nsh-checkbox-item {
    display: block;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nsh-checkbox-item:hover {
    background: #f6f7f7;
}

.nsh-checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}

.nsh-checkbox-item small {
    color: #666;
    margin-left: 5px;
}

/* Carts Grid */
.nsh-carts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.nsh-cart-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.nsh-cart-option:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nsh-cart-option h3 {
    margin-top: 0;
    color: #333;
}

.nsh-cart-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.nsh-cart-items {
    margin: 15px 0;
    min-height: 200px;
}

.nsh-cart-item-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.nsh-cart-item-preview img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.nsh-item-name {
    font-size: 13px;
    color: #333;
}

.nsh-more-items {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.nsh-cart-total {
    padding: 15px;
    background: #f6f7f7;
    border-radius: 4px;
    text-align: right;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Cart Customization */
.nsh-cart-items-list {
    margin-bottom: 20px;
}

.nsh-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 100px 100px 50px;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.nsh-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.nsh-no-image {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
    border-radius: 4px;
}

.nsh-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.nsh-item-price {
    color: #666;
    margin: 0;
}

.nsh-quantity-input {
    width: 60px;
    padding: 5px;
    text-align: center;
}

.nsh-item-subtotal {
    text-align: right;
}

.nsh-remove-item {
    background: none;
    border: none;
    color: #dc3232;
    cursor: pointer;
    padding: 5px;
}

.nsh-remove-item:hover {
    color: #a00;
}

.nsh-cart-summary {
    border-top: 2px solid #ddd;
    padding-top: 20px;
    margin-bottom: 20px;
}

.nsh-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    margin-bottom: 10px;
}

/* Loading Spinner */
.nsh-loading {
    text-align: center;
    padding: 60px 20px;
}

.nsh-spinner {
    margin: 0 auto 20px;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Form Actions */
.nsh-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Buttons */
.nsh-btn-primary,
.button.nsh-btn-primary {
    background: #2271b1;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nsh-btn-primary:hover,
.button.nsh-btn-primary:hover {
    background: #135e96;
}

.nsh-btn-secondary,
.button.nsh-btn-secondary {
    background: #fff;
    color: #2271b1;
    padding: 12px 30px;
    border: 2px solid #2271b1;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nsh-btn-secondary:hover,
.button.nsh-btn-secondary:hover {
    background: #2271b1;
    color: #fff;
}

.nsh-btn-tertiary,
.button.nsh-btn-tertiary {
    background: #f6f7f7;
    color: #666;
    padding: 12px 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.nsh-btn-tertiary:hover,
.button.nsh-btn-tertiary:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .nsh-step-indicator {
        flex-wrap: wrap;
    }

    .nsh-budget-options {
        grid-template-columns: 1fr;
    }

    .nsh-carts-grid {
        grid-template-columns: 1fr;
    }

    .nsh-cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nsh-form-actions {
        flex-direction: column;
    }

    .nsh-form-actions button {
        width: 100%;
    }
}