/**
 * ProRank SEO - Elementor Widgets Styles
 */

/* ==========================================================================
   Breadcrumbs Widget
   ========================================================================== */

.prorank-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 14px;
    line-height: 1.5;
}

.prorank-breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.prorank-breadcrumbs a:hover {
    text-decoration: underline;
}

.prorank-breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.6;
}

.prorank-breadcrumbs .current {
    font-weight: 500;
}

/* ==========================================================================
   FAQ Widget
   ========================================================================== */

.prorank-faq-widget {
    width: 100%;
}

.prorank-faq-item {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.prorank-faq-item:last-child {
    margin-bottom: 0;
}

/* Question Styles */
.prorank-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.prorank-faq-accordion .prorank-faq-question:hover {
    background: #f0f0f0;
}

.prorank-faq-accordion .prorank-faq-question:focus {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
}

.prorank-faq-question-text {
    flex: 1;
    padding-right: 15px;
}

/* Icon Styles */
.prorank-faq-icon {
    flex-shrink: 0;
    font-size: 14px;
    color: #666;
    transition: transform 0.2s ease;
}

.prorank-faq-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Answer Styles */
.prorank-faq-answer {
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.prorank-faq-answer p:first-child {
    margin-top: 0;
}

.prorank-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Active State */
.prorank-faq-item.active .prorank-faq-question {
    background: #f5f5f5;
}

/* List Layout - No interaction styles */
.prorank-faq-list .prorank-faq-question {
    cursor: default;
    background: transparent;
    border-bottom: 1px solid #e0e0e0;
}

.prorank-faq-list .prorank-faq-question:hover {
    background: transparent;
}

.prorank-faq-list .prorank-faq-answer {
    border-top: none;
}

/* Schema Notice (Editor Only) */
.prorank-schema-notice {
    font-size: 12px;
    color: #2e7d32;
}

/* Elementor carousel navigation compatibility.
   Some Elementor builds do not ship sizing/positioning for the SVG-based
   .elementor-swiper-button controls outside lightbox contexts. */
.elementor-widget-image-carousel .elementor-swiper-button,
.elementor-widget-n-carousel .elementor-swiper-button {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.elementor-widget-image-carousel .elementor-swiper-button svg,
.elementor-widget-n-carousel .elementor-swiper-button svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.elementor-widget-image-carousel.elementor-arrows-position-inside .elementor-swiper-button {
    top: 50%;
    transform: translateY(-50%);
}

.elementor-widget-image-carousel.elementor-arrows-position-inside .elementor-swiper-button-prev {
    left: 10px;
}

.elementor-widget-image-carousel.elementor-arrows-position-inside .elementor-swiper-button-next {
    right: 10px;
}

.elementor-widget-n-carousel .elementor-widget-container {
    position: relative;
}

.elementor-widget-n-carousel .elementor-swiper-button {
    top: 50%;
    transform: translateY(-50%);
}

.elementor-widget-n-carousel .elementor-swiper-button-prev {
    left: 0;
    right: auto;
}

.elementor-widget-n-carousel .elementor-swiper-button-next {
    left: auto;
    right: 0;
}

/* Elementor nested accordion compatibility. */
.elementor-widget-n-accordion .e-n-accordion-item-title-icon {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    position: relative;
}

.elementor-widget-n-accordion .e-n-accordion-item-title-icon span {
    display: inline-flex;
    width: auto;
    height: var(--n-accordion-icon-size, 1em);
    line-height: 1;
}

.elementor-widget-n-accordion .e-n-accordion-item-title-icon span > svg {
    width: var(--n-accordion-icon-size, 1em);
    height: var(--n-accordion-icon-size, 1em);
    fill: currentColor;
}

.elementor-widget-n-accordion .e-n-accordion-item .e-n-accordion-item-title-icon .e-opened {
    display: none;
}

.elementor-widget-n-accordion .e-n-accordion-item .e-n-accordion-item-title-icon .e-closed {
    display: inline-flex;
}

.elementor-widget-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-icon .e-opened {
    display: inline-flex;
}

.elementor-widget-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-icon .e-closed {
    display: none;
}

/* Elementor video compatibility.
   Optimized pages may inline only the per-widget --video-aspect-ratio rule and
   omit Elementor's widget-video stylesheet, leaving wrappers at zero height. */
.elementor-widget-video .elementor-wrapper {
    position: relative;
    aspect-ratio: var(--video-aspect-ratio, 16 / 9);
    overflow: hidden;
}

.elementor-widget-video .elementor-wrapper iframe,
.elementor-widget-video .elementor-wrapper video,
.elementor-widget-video .elementor-wrapper .elementor-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.elementor-widget-video .elementor-custom-embed-image-overlay {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

/* Elementor spacer compatibility.
   Spacer widgets often carry background images on the widget container. If the
   widget-spacer stylesheet is optimized away, the spacer collapses to 0px. */
.elementor-widget-spacer {
    --spacer-size: 50px;
}

.elementor-widget-spacer .elementor-spacer-inner {
    height: var(--spacer-size);
}

/* Elementor nested tabs compatibility.
   When Elementor's widget-nested-tabs stylesheet is missing or optimized away,
   inactive tab panels remain visible and pricing/treatment tabs expand into
   individual stacked sections. Preserve the core state rule globally. */
.elementor-widget-n-tabs .e-n-tabs-content {
    display: var(--n-tabs-content-display, flex);
}

.elementor-widget-n-tabs .e-n-tabs-content > .e-con:not(.e-active) {
    display: none;
}

.elementor-widget-n-tabs .e-n-tabs:not(.e-activated) > .e-n-tabs-content > .e-con:first-child {
    display: flex;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 767px) {
    .prorank-faq-question {
        padding: 14px 16px;
        font-size: 15px;
    }

    .prorank-faq-answer {
        padding: 14px 16px;
        font-size: 14px;
    }

    .prorank-breadcrumbs {
        font-size: 13px;
    }
}

/* ==========================================================================
   Editor Preview Styles
   ========================================================================== */

.elementor-editor-active .prorank-faq-widget {
    pointer-events: none;
}

.elementor-editor-active .prorank-faq-question {
    pointer-events: none;
}
