/**
 * MasterAI Wizard Styles
 */

/* Wrapper */
.masterai-wizard-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.masterai-wizard-header {
    background: linear-gradient(135deg, #7F56D9 0%, #5B48B9 100%);
    padding: 30px 40px 50px;
    /* Increased bottom padding */
    border-radius: 8px 8px 0 0;
    color: #fff;
    position: relative;
    /* overflow: hidden; Removed to prevent clipping */
}

/* Premium Theme */
.masterai-premium-active .masterai-wizard-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.masterai-premium-badge-active {
    background: #fff;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    display: inline-block;
    line-height: normal;
}

.masterai-premium-active .masterai-progress-bar .step-number {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.masterai-premium-active .masterai-progress-bar .step.active .step-number {
    background: #fff !important;
    color: #059669 !important;
    border-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.masterai-premium-active .masterai-progress-bar .step.complete .step-number {
    background: #065f46;
    color: #fff;
    border-color: #065f46;
}

/* Premium Buttons */
.masterai-premium-active .button-primary {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2) !important;
}

.masterai-premium-active .button-primary:hover,
.masterai-premium-active .button-primary:focus {
    background: #059669 !important;
    border-color: #047857 !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px);
}

.masterai-wizard-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 0 8px 0 0;
    /* Match header radius */
    z-index: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.masterai-wizard-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

/* AI Button */
.masterai-ai-btn {
    background: #FDB022 !important;
    color: #1a1a1a !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.masterai-ai-btn:hover {
    background: #F79009 !important;
    transform: translateY(-1px);
}

.masterai-ai-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Progress Bar */
.masterai-progress-bar {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: transparent !important;
    z-index: 10;
    /* Ensure no background */
}

.masterai-progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    /* (32px / 2) - (2px / 2) = 15px */
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.masterai-progress-bar .step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.masterai-progress-bar .step-number {
    width: 32px;
    height: 32px;
    background: rgb(74, 89, 149);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.masterai-progress-bar .step.active .step-number {
    background: #fff;
    color: #7F56D9;
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.masterai-progress-bar .step.complete .step-number {
    background: #8a9781;
    color: #EFEEF2;
    border-color: #fff4f4;
}

.masterai-progress-bar .step-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    display: block;
    margin-top: 8px;
    white-space: nowrap;
}

.masterai-progress-bar .step.active .step-name {
    color: #fff;
    font-weight: 700;
}

/* Content */
.masterai-wizard-content {
    background: #fff;
    padding: 20px;
    min-height: 400px;
    /* Prevent collapse during transition */
    position: relative;
    border-radius: 0 0 8px 8px;
}

.masterai-step-container {
    padding: 0;
    transition: opacity 0.3s ease;
    animation: fadeIn 0.4s ease-in-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masterai-step h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1e1e1e;
}

.masterai-step .subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Welcome Step */
.masterai-welcome-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.masterai-welcome-icon {
    font-size: 80px;
    color: #667eea;
    margin-bottom: 20px;
}

.masterai-welcome-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.masterai-welcome-content .lead {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.masterai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    text-align: left;
}

.masterai-features .feature {
    padding: 20px;
    background: #f7f9fc;
    border-radius: 6px;
}

.masterai-features .dashicons {
    font-size: 30px;
    color: #52c41a;
    margin-bottom: 10px;
}

.masterai-features strong {
    display: block;
    margin-bottom: 5px;
}

.masterai-features p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.masterai-start-options {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Radio Cards */
.masterai-radio-card {
    flex: 1;
    display: block;
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.masterai-radio-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.masterai-radio-card.selected {
    border-color: #667eea;
    background: #f7f9fc;
}

.masterai-radio-card input[type="radio"] {
    position: absolute;
    top: 15px;
    right: 15px;
}

.radio-card-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.radio-card-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Industry Grid */
.masterai-industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.masterai-industry-card {
    padding: 25px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.masterai-industry-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.masterai-industry-card.selected {
    border-color: #667eea;
    background: #f7f9fc;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.industry-icon {
    font-size: 50px;
    color: #667eea;
    margin-bottom: 15px;
}

.masterai-industry-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.masterai-industry-card p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.industry-features {
    margin-bottom: 15px;
}

.industry-features small {
    color: #999;
}

/* Form Styles */
.masterai-form {
    max-width: 600px;
    margin: 30px auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group .required {
    color: #f5222d;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-group .description {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.masterai-checkbox,
.masterai-radio {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.masterai-checkbox input,
.masterai-radio input {
    margin-right: 8px;
}

/* Logo Upload */
.masterai-logo-upload {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-preview {
    width: 120px;
    height: 80px;
    border: 2px dashed #d9d9d9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
}

.logo-preview .dashicons {
    font-size: 40px;
    color: #d9d9d9;
}

/* Color Pickers */
.masterai-color-picker-group {
    display: flex;
    gap: 20px;
}

.color-picker-item {
    flex: 1;
}

.color-presets {
    margin-top: 20px;
}

.color-preset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    margin: 5px 5px 5px 0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.color-preset:hover {
    border-color: #667eea;
}

.color-preset span {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}



/* Installation Progress */
.masterai-install-progress {
    text-align: center;
    padding: 40px;
}

.install-icon {
    font-size: 80px;
    color: #667eea;
    margin-bottom: 20px;
}

.masterai-spinner {
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

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

.progress-step {
    padding: 10px 15px;
    margin: 5px 0;
    background: #f7f9fc;
    border-radius: 4px;
}

.progress-step.complete {
    color: #52c41a;
}

.progress-step .dashicons {
    margin-right: 10px;
}

.masterai-wizard-actions .dashicons {
    position: relative;
}

.masterai-wizard-actions .dashicons::before {
    position: absolute;
    top: 4px;
    left: 0;
}

.progress-bar {
    max-width: 500px;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    margin: 30px auto 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s;
}

.progress-text {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
}

/* Installation Complete */
.masterai-install-complete {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 100px;
    color: #52c41a;
    margin-bottom: 20px;
}

.masterai-next-steps {
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
}

.masterai-next-steps h3 {
    margin-bottom: 20px;
}

.next-step-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f7f9fc;
    border-radius: 6px;
    margin-bottom: 15px;
}

.next-step-item .dashicons {
    color: #52c41a;
    font-size: 24px;
    flex-shrink: 0;
}

.next-step-item strong {
    display: block;
    margin-bottom: 5px;
}

.next-step-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.masterai-action-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.masterai-action-buttons .button {
    width: auto !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.masterai-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.masterai-btn-back,
.masterai-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 24px;
    font-size: 16px;
}

.masterai-btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
}

.masterai-btn-next:hover {
    opacity: 0.9;
}

.masterai-skip-wizard {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.masterai-skip-wizard:hover {
    color: #666;
}

/* Modal */
.masterai-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2147483647 !important;
    align-items: center;
    justify-content: center;
}

.masterai-wizard-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.masterai-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.masterai-modal-close:hover {
    color: #333;
}

.masterai-wizard-modal img {
    max-width: 100%;
    border-radius: 6px;

}

.masterai-modal-features ul {
    list-style: none;
    padding: 0;
}

.masterai-modal-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.masterai-modal-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #52c41a;
    font-weight: bold;
}

/* Product Selection Step */
.masterai-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.masterai-product-card {
    display: block;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.masterai-product-card:hover {
    border-color: #b3b3b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.masterai-product-card.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 1px #667eea;
}

.masterai-product-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-card-content {
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 120px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 10px;
}

.product-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.3;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info .price {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.masterai-product-card.selected .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* AI Button */
.masterai-ai-btn {
    background: #fff;
    color: #667eea;
    border: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.masterai-ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #f8fafc;
}

.masterai-ai-btn.enabled {
    background: #e0f2f1;
    color: #00796b;
    cursor: default;
    box-shadow: none;
}

/* AI Modal & Creation Flow */
.masterai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.masterai-modal {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.masterai-modal-header {
    background: #f8fafc;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.masterai-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1e293b;
}

.masterai-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.masterai-modal-body {
    padding: 30px;
}

.masterai-ai-step-input .form-group {
    margin-bottom: 20px;
}

.masterai-ai-step-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
}

.masterai-ai-step-input input[type="text"],
.masterai-ai-step-input input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.masterai-ai-step-input input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.masterai-ai-preview-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8fafc;
}

.masterai-ai-preview-card img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-hero {
    padding: 12px 24px !important;
    font-size: 16px !important;
    height: auto !important;
    line-height: normal !important;
}

/* AI Features */
.masterai-ai-btn {
    background: #fff;
    /* High contrast against purple header */
    color: #667eea;
    /* Matches theme primary color */
    border: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Better icon spacing */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 8px 16px;
    border-radius: 20px;
    /* Modern pill shape */
}

.masterai-ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #f8fafc;
}

.masterai-ai-btn .dashicons {
    margin-right: 0;
    /* Handled by gap */
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.masterai-ai-btn.enabled {
    background: #e0f2f1;
    /* Light green background */
    color: #00796b;
    /* Dark green text */
    cursor: default;
    box-shadow: none;
}

/* AI Modal */
.masterai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.masterai-modal {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.masterai-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.masterai-modal h2 {
    margin-top: 0;
    color: #333;
}

.masterai-form-group {
    margin: 20px 0;
}

.masterai-form-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.masterai-modal-actions {
    text-align: right;
}

/* AI Product Card */
.masterai-product-card.ai-generator {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border: 2px dashed #667eea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.masterai-product-card.ai-generator:hover {
    border-color: #764ba2;
    background: #fff;
}

.masterai-product-card.ai-generator .card-icon {
    margin-bottom: 10px;
}

.ai-input-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-input-area input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.ai-input-area button {
    width: 100%;
    background: #667eea !important;
    color: #fff !important;
    border: none !important;
}

.ai-input-area button:hover {
    background: #5a6fd6 !important;
}


/* Visual Shipping Map */
.masterai-shipping-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.masterai-shipping-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: default;
}

.masterai-shipping-card.selected {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.masterai-shipping-card .shipping-header {
    background: #f8fafc;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.masterai-shipping-card .masterai-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.masterai-shipping-card .masterai-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
}

.masterai-shipping-card .masterai-checkbox input[type="checkbox"]:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.masterai-shipping-card .badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.masterai-shipping-card .badge.domestic-country {
    background: #e0e7ff;
    color: #4338ca;
}

.masterai-shipping-card .badge.global {
    background: #f1f5f9;
    color: #475569;
}

.masterai-shipping-card .shipping-body {
    padding: 20px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .currency-symbol {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-weight: 600;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 10px 10px 30px !important;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
}

.masterai-shipping-card:not(.selected) .shipping-body {
    opacity: 0.5;
    pointer-events: none;
}

/* Industry Preview Modal */
#masterai-industry-preview-modal .masterai-modal {
    display: flex;
    flex-direction: column;
    max-width: 900px !important;
    padding: 30px;
}

#masterai-industry-preview-modal .masterai-modal-body {
    margin-top: 20px;
    align-items: stretch;
}

.masterai-preview-image {
    background: linear-gradient(135deg, #f0f0f1 0%, #e2e4e7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #dcdcde;
}

.masterai-preview-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.masterai-preview-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d2327;
}

.masterai-preview-features li {
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #50575e;
}

.masterai-preview-features li .dashicons {
    background: #e6f7ea;
    border-radius: 50%;
    padding: 4px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.masterai-preview-actions {
    margin-top: auto;
    padding-top: 20px;
}

.masterai-select-industry-btn {
    height: 48px !important;
    font-size: 16px !important;
    justify-content: center;
}

/* AI Creation Modal */
.masterai-ai-modal-overlay {
    z-index: 100001 !important;
}

.masterai-ai-step-preview {
    text-align: center;
}

.masterai-ai-preview-card {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.masterai-ai-preview-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* AI Preview Refined Layout */
.masterai-ai-preview-container {
    display: flex;
    gap: 30px;
    text-align: left;
    margin-bottom: 25px;
}

.masterai-button-generate,
.masterai-button-add {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
}

.masterai-button-generate:hover,
.masterai-button-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}

.masterai-button-generate:active,
.masterai-button-add:active {
    transform: translateY(0);
    filter: brightness(0.9);
}

.masterai-button-generate .dashicons,
.masterai-button-add .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.masterai-ai-preview-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.masterai-button-secondary {
    flex: 1;
    height: 48px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.masterai-button-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.masterai-button-add {
    flex: 2;
    /* Make add button more prominent */
    height: 48px;
}

.masterai-ai-preview-left {
    flex: 0 0 240px;
}

.masterai-ai-preview-card-v2 {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.preview-image-square {
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.preview-image-square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed to cover for a premium fill */
    transition: transform 0.3s ease;
}

.preview-image-square:hover img {
    transform: scale(1.05);
}

.preview-image-square .dashicons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #94a3b8;
}

.card-basic-info {
    padding: 15px;

}

.card-basic-info h4 {
    margin: 0;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-basic-info .price {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.masterai-ai-preview-right {
    flex: 1;
}

.masterai-ai-preview-details h3 {
    margin: 0 0 15px 0;
    color: #0f172a;
    font-size: 20px;
}

.detail-item {
    margin-bottom: 12px;
}

.detail-item .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.detail-item .value {
    color: #334155;
    font-weight: 500;
}

.detail-item.description p {
    color: #475569;
    line-height: 1.6;
    margin: 5px 0 0 0;
    font-size: 14px;
    max-height: 200px;
    overflow-y: auto;
}

/* Theme Selection Step */
.masterai-step-theme .masterai-theme-section {
    margin-bottom: 40px;
}

.masterai-step-theme h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #444;
}

/* Theme Grid */
.masterai-theme-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.masterai-theme-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.masterai-theme-card.recommended {
    border-color: #52c41a;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.15);
}

.masterai-theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.masterai-theme-card.selected {
    border: 2px solid #7F56D9;
    box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.2);
}

/* Theme Screenshot */
.theme-screenshot {
    height: 200px;
    background: #f0f0f1;
    position: relative;
    overflow: hidden;
}

.theme-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.theme-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masterai-theme-card:hover .theme-overlay {
    opacity: 1;
}

.preview-btn {
    background: #fff;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-btn:hover {
    background: #f0f0f0;
}

/* Badges */
.badge-recommended {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #52c41a;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Theme Info */
.theme-info {
    padding: 20px;
    flex-grow: 1;
}

.theme-info h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.theme-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.theme-rating .stars {
    color: #f59e0b;
}

.theme-features ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #666;
}

.theme-highlights {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-badge {
    background: #f0f2f5;
    color: #555;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.theme-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

.theme-meta .price {
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

.theme-meta .price.free {
    color: #52c41a;
}

/* Select Button */
.masterai-select-theme {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    text-align: center;
    justify-content: center;
}

/* Upload Section */
.masterai-theme-upload {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.masterai-theme-upload .upload-area {
    margin-bottom: 20px;
}

.masterai-theme-skip {
    margin-top: 30px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    color: #856404;
}

/* Modal Overlay Base Styles */
/* Conflicting .masterai-modal definition removed */

/* Modal Content Base Styles */
.masterai-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    /* 15% from the top and centered */
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    position: relative;
}

/* Close Button */
.masterai-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 10;
}

.masterai-modal-close:hover,
.masterai-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Preview Modal Specific Overrides */
.full-screen-preview {
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    /* Full screen */
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    height: 60px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.preview-controls {
    display: flex;
    gap: 10px;
}

.device-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.device-btn:hover,
.device-btn.active {
    background: #333;
    color: #fff;
}

.preview-frame-container {
    flex-grow: 1;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    padding: 20px;
}

.preview-frame-container iframe {
    background: #fff;
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.preview-frame-container.tablet iframe {
    width: 768px;
}

.preview-frame-container.smartphone iframe {
    width: 375px;
}

/* Store Preview Styles */
.masterai-store-preview {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.masterai-store-preview h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.preview-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.masterai-preview-frame {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Browser Chrome */
.preview-browser-chrome {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.browser-dots span:nth-child(1) {
    background: #ff5f56;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background: #27c93f;
}

.browser-url {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #666;
    text-align: left;
}

/* Preview Content */
.preview-content {
    position: relative;
    min-height: 500px;
    background: #f9f9f9;
}

.preview-theme-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
}

/* Preview Header */
.preview-header {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 20px;
}

.preview-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.preview-logo img {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}

.preview-store-name {
    font-size: 24px;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.preview-nav {
    display: flex;
    gap: 8px;
}

.preview-nav span {
    width: 60px;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
}

/* Color Scheme */
.preview-color-scheme {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    margin: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.color-label {
    font-weight: 600;
    color: #333;
}

.color-swatches {
    display: flex;
    gap: 10px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Preview Products */
.preview-products {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
}

.preview-products h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.preview-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.preview-product-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.preview-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.product-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Theme Info */
.preview-theme-info {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.theme-badge .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Preview Actions */
.masterai-preview-actions {
    text-align: center;
    padding: 20px 0;
}

.masterai-btn-install {
    font-size: 18px !important;
    padding: 15px 40px !important;
    height: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.masterai-btn-install .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.install-note {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .preview-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .preview-store-name {
        text-align: center;
    }
}

/* Store Preview Step */
.masterai-preview-container-split {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.masterai-preview-visual {
    flex: 1.5;
}

.masterai-preview-details {
    flex: 1;
}

/* Browser Mockup */
.masterai-browser-mockup {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.browser-bar {
    background: #f1f5f9;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.browser-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.browser-bar .dot.red {
    background: #ef4444;
}

.browser-bar .dot.yellow {
    background: #f59e0b;
}

.browser-bar .dot.green {
    background: #10b981;
}

.browser-url {
    background: #fff;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    color: #64748b;
    margin-left: 15px;
    flex: 1;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.browser-viewport {
    flex: 1;
    background: #f8fafc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.theme-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-preview-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #cbd5e1;
}

.preview-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.preview-overlay-info h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

.preview-overlay-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #64748b;
}

/* Summary List */
.masterai-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.masterai-summary-list li {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.masterai-summary-list li:last-child {
    border-bottom: none;
}

.masterai-summary-list .icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.masterai-summary-list .icon .dashicons {
    color: #667eea;
    font-size: 20px;
}

.summary-info label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}

.summary-info strong {
    font-size: 16px;
    color: #1e293b;
}

/* Actions */
.masterai-preview-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.masterai-preview-actions button {
    flex: 1;
    justify-content: center;
}

.masterai-btn-launch .dashicons {
    margin-left: 5px;
}

/* Spinner for hidden install container (adjust context if needed) */
.masterai-install-progress {
    padding-top: 40px;
}

/* Validation Popover */
.masterai-validation-popover {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4f;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
    animation: fcPopoverSlideUp 0.3s ease-out;
}

.masterai-validation-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ff4d4f;
}

@keyframes fcPopoverSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.masterai-wizard-actions {
    position: relative;
    /* Ensure popover is positioned relative to actions */
}

/* Clickable Steps */
.masterai-progress-bar .step.complete {
    cursor: pointer;
}

.masterai-progress-bar .step.complete:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Premium Secondary Buttons */
.masterai-premium-active .button-secondary,
.masterai-premium-active .masterai-button-secondary,
.masterai-premium-active .masterai-btn-back {
    color: #059669 !important;
    border-color: #059669 !important;
}

.masterai-premium-active .button-secondary:hover,
.masterai-premium-active .masterai-button-secondary:hover,
.masterai-premium-active .masterai-btn-back:hover {
    color: #047857 !important;
    border-color: #047857 !important;
    background: #ecfdf5 !important;
}