/**
 * OZ FAQ Accordion Styles
 * Version: 1.0.0
 */

/* Wrapper */
.oz-faq-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* FAQ Item */
.oz-faq-item {
    border: 1px solid transparent;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.oz-faq-item:first-child {
    border-radius: 2px 2px 0 0;
}

.oz-faq-item:last-child {
    border-radius: 0 0 2px 2px;
}

.oz-faq-item:only-child {
    border-radius: 8px;
}

/* Alternating backgrounds */
.oz-faq-item.oz-faq-odd {
    background-color: #171717;
}

.oz-faq-item.oz-faq-even {
    background-color: #121212;
}

/* Header Button */
.oz-faq-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #d8d8d8;
    font-size: 16px;
    font-weight: 450;
    line-height: 1.5;
    transition: background-color 0.2s ease, filter 0.2s ease;
    gap: 15px;
    /* Remove tap/click overlay */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* REMOVED: All hover states per user request */
.oz-faq-header:hover {
    filter: none;
    background-color: transparent;
    color: #d8d8d8;
}

.oz-faq-header:focus {
    outline: none;
    box-shadow: none;
    background-color: transparent;
    color: #d8d8d8;
}

.oz-faq-header:focus-visible {
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

.oz-faq-header:active {
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

/* REMOVED: Hover border effect */
.oz-faq-item:hover {
    border-color: transparent;
}

/* Title */
.oz-faq-title {
    flex: 1 1 0%;
    min-width: 0;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Icon */
.oz-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin-top: 2px;
    color: #e6e6e6;
    transition: transform 0.3s ease;
}

.oz-faq-icon svg {
    width: 16px;
    height: 16px;
}

/* Icon rotation when open */
.oz-faq-item.oz-faq-open .oz-faq-icon {
    transform: rotate(180deg);
}

/* Content - Smooth slide animation */
.oz-faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.oz-faq-item.oz-faq-open .oz-faq-content {
    opacity: 1;
}

.oz-faq-content-inner {
    padding: 0 20px 20px 20px;
    color: #b3b3b3;
    font-size: 15px;
    line-height: 1.7;
    margin-top: -20px;
}

.oz-faq-content-inner p {
    margin: 25px 0 0 0;
}

.oz-faq-content-inner p:last-child {
    margin-bottom: 0;
}

/* Empty state */
.oz-faq-empty {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-size: 16px;
}

/* Responsive */
@media screen and (max-width: 840px) {
    .oz-faq-wrapper {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .oz-faq-item:first-child,
    .oz-faq-item:last-child,
    .oz-faq-item:only-child {
        border-radius: 0;
    }
}

@media screen and (max-width: 600px) {
    .oz-faq-header {
        padding: 14px 12px;
        font-size: 14px;
        gap: 12px; /* Ensure space between text and chevron */
    }

    .oz-faq-title {
        /* CRITICAL: Ensure text wraps properly on small screens */
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        white-space: normal;
        /* Prevent text from overflowing */
        max-width: calc(100% - 32px); /* Account for icon width + gap */
        flex: 1 1 0%;
        min-width: 0;
    }

    .oz-faq-content-inner {
        padding: 0 12px 14px 12px;
        font-size: 13px;
        /* Ensure content text also wraps */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .oz-faq-content-inner p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .oz-faq-icon {
        width: 20px;
        min-width: 20px;
        height: 20px;
        flex-shrink: 0;
        margin-left: auto; /* Push icon to the right */
    }

    .oz-faq-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* Very small screens - extra text wrapping protection */
@media screen and (max-width: 400px) {
    .oz-faq-header {
        padding: 12px 10px;
        font-size: 13px;
        gap: 10px;
    }

    .oz-faq-title {
        max-width: calc(100% - 30px);
        line-height: 1.4;
    }

    .oz-faq-content-inner {
        padding: 0 10px 12px 10px;
        font-size: 12px;
    }
}
