.smartfaq-container {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.smartfaq-item {
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.smartfaq-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.smartfaq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 20px 24px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
    user-select: none;
    letter-spacing: -0.022em;
}

.smartfaq-question:hover {
    color: #0066CC;
}

.smartfaq-question:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #0066CC;
    border-radius: 14px;
}

.smartfaq-question-text {
    flex: 1;
    margin-right: 20px;
}

.smartfaq-arrow {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.smartfaq-arrow::before,
.smartfaq-arrow::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    border-radius: 1px;
    height: 2px;
    width: 10px;
    top: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smartfaq-arrow::before {
    left: 2px;
    transform: rotate(45deg);
}

.smartfaq-arrow::after {
    right: 2px;
    transform: rotate(-45deg);
}

.smartfaq-question[aria-expanded="true"] .smartfaq-arrow::before {
    transform: rotate(-45deg);
}

.smartfaq-question[aria-expanded="true"] .smartfaq-arrow::after {
    transform: rotate(45deg);
}

.smartfaq-answer {
    height: 0;
    overflow: hidden;
    transition: height var(--animation-speed, 300ms) cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.smartfaq-answer-content {
    padding: 0 24px 20px;
    color: #424245;
    line-height: 1.6;
    font-size: 15px;
    letter-spacing: -0.015em;
}

.smartfaq-answer-content p {
    margin: 0 0 16px;
}

.smartfaq-answer-content p:last-child {
    margin-bottom: 0;
}

.smartfaq-answer-content ul,
.smartfaq-answer-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.smartfaq-answer-content li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .smartfaq-container {
        margin: 24px 16px;
    }
    
    .smartfaq-question {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .smartfaq-answer-content {
        padding: 0 20px 18px;
        font-size: 14px;
    }
}

@media (prefers-color-scheme: dark) {
    .smartfaq-item {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .smartfaq-item:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .smartfaq-question {
        color: #ffffff;
    }
    
    .smartfaq-question:hover {
        color: #2997ff;
    }
    
    .smartfaq-answer-content {
        color: #e0e0e0;
    }
}