/* assets/css/product_guide.css */
.pg-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Cairo', sans-serif;
}

.pg-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pg-button:hover {
    transform: scale(1.1) rotate(5deg);
}

.pg-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: pgSlideUp 0.4s ease-out;
    max-height: 600px;
}

@keyframes pgSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg-header {
    background: #0f172a;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg-header h6 {
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.pg-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    background: #f8fafc;
}

.pg-welcome-text {
    font-size: 13px;
    color: #475569;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Tabs Styling */
.pg-tabs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.pg-tabs::-webkit-scrollbar {
    display: none;
}

.pg-tab {
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

.pg-tab.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pg-search-container {
    position: relative;
    margin-bottom: 15px;
}

.pg-search-input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    background: white;
    outline: none;
    transition: 0.3s;
}

.pg-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pg-search-icon {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #94a3b8;
    font-size: 14px;
}

/* Accordion Results */
.pg-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pg-item {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: 0.3s;
}

.pg-item-header {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
}

.pg-item-header:hover {
    background: #f1f5f9;
}

.pg-item-header i {
    font-size: 10px;
    transition: 0.3s;
    color: #94a3b8;
}

.pg-item.active .pg-item-header {
    background: rgba(37, 99, 235, 0.03);
    color: #2563eb;
}

.pg-item.active .pg-item-header i {
    transform: rotate(180deg);
    color: #2563eb;
}

.pg-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
    border-top: 1px solid transparent;
}

.pg-item.active .pg-item-content {
    max-height: 500px;
    border-top: 1px solid #f1f5f9;
}

.pg-answer-inner {
    padding: 15px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.pg-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: white;
}

.pg-footer small {
    color: #94a3b8;
    font-size: 11px;
}

/* RTL Adjustments */
[dir="rtl"] .pg-search-input {
    padding: 10px 35px 10px 15px;
}

[dir="rtl"] .pg-search-icon {
    right: 12px;
    left: auto;
}