/* FULL B2B Tours CSS */
#fullb2b-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullb2b-tour-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 400px;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: tourSlideIn 0.3s ease-out;
    position: relative;
}

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

.fullb2b-tour-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fullb2b-tour-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.fullb2b-tour-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.fullb2b-tour-close:hover {
    color: #333;
}

.fullb2b-tour-content {
    padding: 20px;
}

.fullb2b-tour-step-content {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.fullb2b-tour-footer {
    padding: 0 20px 20px;
}

.fullb2b-tour-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.fullb2b-tour-step-counter {
    font-size: 12px;
    color: #666;
    min-width: 60px;
}

.fullb2b-tour-progress-bar {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.fullb2b-tour-progress-fill {
    height: 100%;
    background: #E87237;
    transition: width 0.3s ease;
}

.fullb2b-tour-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.fullb2b-tour-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.fullb2b-tour-btn:hover {
    transform: translateY(-1px);
}

.fullb2b-tour-skip {
    background: #f0f0f0;
    color: #666;
}

.fullb2b-tour-skip:hover {
    background: #e0e0e0;
}

.fullb2b-tour-prev {
    background: #666;
    color: #fff;
}

.fullb2b-tour-prev:hover {
    background: #555;
}

.fullb2b-tour-next, .fullb2b-tour-finish {
    background: #E87237;
    color: #fff;
}

.fullb2b-tour-next:hover, .fullb2b-tour-finish:hover {
    background: #cc5f29;
}

.fullb2b-tour-pointer {
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    z-index: 1000000;
    pointer-events: none;
}

.fullb2b-tour-pointer.top {
    border-bottom-color: #fff;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.fullb2b-tour-pointer.bottom {
    border-top-color: #fff;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.fullb2b-tour-pointer.left {
    border-right-color: #fff;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.fullb2b-tour-pointer.right {
    border-left-color: #fff;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Welcome Modal */
#fullb2b-tour-welcome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullb2b-tour-welcome-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: tourSlideIn 0.4s ease-out;
}

.fullb2b-tour-welcome-header {
    padding: 30px 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.fullb2b-tour-welcome-header h2 {
    margin: 0;
    color: #333;
}

.fullb2b-tour-welcome-content {
    padding: 30px;
}

.fullb2b-tour-welcome-content > p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.fullb2b-tour-options {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.fullb2b-tour-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.fullb2b-tour-option:hover {
    border-color: #E87237;
    box-shadow: 0 2px 10px rgba(232, 114, 55, 0.1);
}

.fullb2b-tour-option h4 {
    margin: 0 0 10px;
    color: #333;
}

.fullb2b-tour-option p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

.fullb2b-tour-start {
    background: #E87237;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.fullb2b-tour-start:hover {
    background: #cc5f29;
}

.fullb2b-tour-welcome-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.fullb2b-tour-skip-all, .fullb2b-tour-remind-later {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.fullb2b-tour-skip-all:hover, .fullb2b-tour-remind-later:hover {
    background: #e0e0e0;
}

/* Highlighting */
.fullb2b-tour-highlight {
    position: relative;
    z-index: 999998;
    box-shadow: 0 0 0 4px rgba(232, 114, 55, 0.3);
    border-radius: 4px;
    animation: tourPulse 2s infinite;
}

@keyframes tourPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(0, 124, 186, 0.2); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fullb2b-tour-modal {
        margin: 20px;
        max-width: calc(100% - 40px);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .fullb2b-tour-welcome-modal {
        margin: 20px;
        max-width: calc(100% - 40px);
        max-height: calc(100vh - 40px);
    }
    
    .fullb2b-tour-welcome-header,
    .fullb2b-tour-welcome-content {
        padding: 20px;
    }
    
    .fullb2b-tour-buttons {
        flex-wrap: wrap;
    }
    
    .fullb2b-tour-btn {
        flex: 1;
        min-width: 80px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .fullb2b-tour-modal,
    .fullb2b-tour-welcome-modal {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .fullb2b-tour-title,
    .fullb2b-tour-welcome-header h2 {
        color: #fff;
    }
    
    .fullb2b-tour-step-content {
        color: #ccc;
    }
    
    .fullb2b-tour-option {
        background: #333;
        border-color: #555;
    }
    
    .fullb2b-tour-option h4 {
        color: #fff;
    }
    
    .fullb2b-tour-option p {
        color: #aaa;
    }
    
    .fullb2b-tour-progress-bar {
        background: #444;
    }
}

/* Accessibility */
.fullb2b-tour-modal:focus-within,
.fullb2b-tour-welcome-modal:focus-within {
    outline: 2px solid #E87237;
    outline-offset: 2px;
}

.fullb2b-tour-btn:focus {
    outline: 2px solid #E87237;
    outline-offset: 2px;
}

/* Animation delays for smooth transitions */
.fullb2b-tour-modal .fullb2b-tour-header {
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

.fullb2b-tour-modal .fullb2b-tour-content {
    animation: fadeInUp 0.4s ease-out 0.2s both;
}

.fullb2b-tour-modal .fullb2b-tour-footer {
    animation: fadeInUp 0.4s ease-out 0.3s both;
}

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