/**
 * Flatsome Product Details Accordion Styles
 * Version: 2.3.0 - Custom SVG Icons Edition
 */

/* Reset and Base */
.fpda-accordion-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

.fpda-accordion-wrapper * {
    box-sizing: border-box;
}

/* Shipping Banner */
.fpda-shipping-banner {
    display: flex;
    align-items: center;
    padding: 20px 10px;
    border-bottom: 1px solid #e5e5e5;
    gap: 12px;
}

.fpda-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpda-banner-icon .fpda-svg-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.fpda-banner-text {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    letter-spacing: 0.02em;
}

/* Accordion Item */
.fpda-accordion-item {
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

/* Accordion Header - Fixed position effect */
.fpda-accordion-header {
    display: flex;
    align-items: center;
    padding: 20px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 12px;
    user-select: none;
    background: #fff;
    position: relative;
    z-index: 2;
}

.fpda-accordion-header:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.fpda-header-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpda-header-icon .fpda-svg-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.fpda-header-title {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    letter-spacing: 0.02em;
}

.fpda-header-toggle {
    flex-shrink: 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.fpda-header-toggle .fpda-icon-plus,
.fpda-header-toggle .fpda-icon-minus {
    font-size: 26px;
    font-weight: 300;
    color: #333;
    line-height: 1;
    transition: transform 0.3s ease;
}

.fpda-icon-minus {
    display: none;
}

.fpda-icon-plus {
    display: block;
}

.fpda-accordion-item.active .fpda-icon-plus {
    display: none;
}

.fpda-accordion-item.active .fpda-icon-minus {
    display: block;
}

/* Accordion Content - Smooth slide down */
.fpda-accordion-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        padding 0.3s ease;
    position: relative;
    z-index: 1;
}

.fpda-accordion-item.active .fpda-accordion-content {
    max-height: 2000px;
    opacity: 1;
    padding-bottom: 24px;
}

/* Inner content wrapper for smooth animation */
.fpda-accordion-content>div {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Product Details Section */
.fpda-product-details-content {
    padding: 0 0 0 36px;
}

.fpda-description-section {
    margin-bottom: 24px;
}

.fpda-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px 0;
    text-transform: none;
    letter-spacing: 0;
}

.fpda-description-text {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.fpda-description-text p {
    margin: 0 0 10px 0;
}

.fpda-description-text p:last-child {
    margin-bottom: 0;
}

/* Specifications Grid */
.fpda-specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 40px;
    margin-bottom: 24px;
}

.fpda-specs-column {
    flex: 1;
    min-width: 200px;
}

.fpda-spec-item {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.fpda-spec-label {
    font-weight: 600;
    color: #111;
}

.fpda-spec-value {
    color: #666;
}

.fpda-spec-value a {
    color: #666;
    text-decoration: underline;
}

.fpda-spec-value a:hover {
    color: #111;
}

.fpda-specs-placeholder {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin: 0;
}

/* Note Text */
.fpda-note-text {
    font-size: 12px;
    font-style: italic;
    color: #666;
    line-height: 1.6;
    margin: 16px 0 0 0;
    padding-top: 16px;
    border-top: none;
}

/* Tips Section */
.fpda-tips-content {
    padding: 0 0 0 36px;
}

.fpda-tip-item {
    margin-bottom: 20px;
}

.fpda-tip-item:last-child {
    margin-bottom: 0;
}

.fpda-tip-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px 0;
}

.fpda-tip-text {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.fpda-tip-text a {
    color: #666;
    text-decoration: underline;
}

.fpda-tip-text a:hover {
    color: #111;
}

/* Shipping Section */
.fpda-shipping-content {
    padding: 0 0 0 36px;
}

.fpda-shipping-section {
    margin-bottom: 24px;
}

.fpda-shipping-section:last-child {
    margin-bottom: 0;
}

.fpda-section-text {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.fpda-section-text a {
    color: #666;
    text-decoration: underline;
}

.fpda-section-text a:hover {
    color: #111;
}

/* Shipping Timeline */
.fpda-shipping-timeline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin: 24px 0;
    padding: 16px 0;
    flex-wrap: wrap;
}

.fpda-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.fpda-timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpda-timeline-icon .fpda-svg-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.fpda-timeline-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fpda-timeline-label {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.fpda-timeline-value {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.fpda-timeline-connector {
    display: flex;
    align-items: center;
    color: #ccc;
}

.fpda-timeline-connector .fpda-arrow {
    font-size: 16px;
    color: #999;
    line-height: 1;
}

.fpda-timeline-end .fpda-timeline-icon {
    background: #e8f5e9;
}

.fpda-timeline-end .fpda-timeline-icon .fpda-svg-icon {
    filter: none;
}

/* Responsive */
@media (max-width: 768px) {
    .fpda-specs-grid {
        flex-direction: column;
        gap: 0;
    }

    .fpda-specs-column {
        min-width: 100%;
    }

    .fpda-shipping-timeline {
        justify-content: center;
    }

    .fpda-product-details-content,
    .fpda-tips-content,
    .fpda-shipping-content {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .fpda-accordion-header {
        padding: 16px 0;
    }

    .fpda-banner-text,
    .fpda-header-title {
        font-size: 13px;
    }

    .fpda-shipping-timeline {
        gap: 10px;
    }

    .fpda-timeline-item {
        min-width: 60px;
    }

    .fpda-timeline-icon {
        width: 40px;
        height: 40px;
    }

    .fpda-timeline-icon .fpda-svg-icon {
        width: 20px;
        height: 20px;
    }

    .fpda-timeline-label {
        font-size: 11px;
    }

    .fpda-timeline-value {
        font-size: 12px;
    }
}

/* Smooth content animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fpda-accordion-item.active .fpda-accordion-content>div {
    animation: slideDown 0.35s ease forwards;
}