/**
 * SHG Product Accordion - Frontend Styles
 * Matches design from temp2.jpg
 */

/* Main Accordion Container */
.shg-product-accordion {
    margin: 30px 0;
    max-width: 100%;
}

/* Accordion Section */
.shg-accordion-section {
    border-bottom: 1px solid #e0e0e0;
}

.shg-accordion-section:first-child {
    border-top: 1px solid #e0e0e0;
}

/* Accordion Header (clickable) */
.shg-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.shg-accordion-header:hover {
    opacity: 0.7;
}

.shg-accordion-header:focus {
    outline: none;
}

.shg-accordion-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Chevron Icon */
.shg-accordion-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #333;
    transition: transform 0.3s ease;
}

.shg-accordion-section.is-open .shg-accordion-icon {
    transform: rotate(180deg);
}

.shg-icon-chevron {
    display: block;
    width: 100%;
    height: 100%;
}

/* Accordion Body */
.shg-accordion-body {
    overflow: hidden;
}

.shg-accordion-content {
    padding: 0 0 25px 0;
}

/* Subtitle */
.shg-accordion-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 12px 0;
    padding: 0;
}

.shg-accordion-content > .shg-accordion-subtitle:first-child {
    margin-top: 0;
}

/* Text Content */
.shg-accordion-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.shg-accordion-text p {
    margin: 0 0 12px 0;
}

.shg-accordion-text p:last-child {
    margin-bottom: 0;
}

.shg-accordion-text ul,
.shg-accordion-text ol {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.shg-accordion-text li {
    margin-bottom: 6px;
}

.shg-accordion-text a {
    color: #0073aa;
    text-decoration: none;
}

.shg-accordion-text a:hover {
    text-decoration: underline;
}

/* Features Table - Matching temp2.jpg design */
.shg-features-table-wrap {
    margin: 15px 0;
}

.shg-features-display-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.shg-features-display-table tr {
    border-bottom: 1px solid #333;
}

.shg-features-display-table tr:last-child {
    border-bottom: 1px solid #333;
}

.shg-features-display-table td {
    padding: 12px 15px;
    font-size: 14px;
    vertical-align: top;
}

/* Feature Label Column - Light gray background */
.shg-feature-label {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 400;
    width: 40%;
}

/* Feature Value Column - White background */
.shg-feature-value {
    background-color: #fff;
    color: #555;
    width: 60%;
}

/* Responsive */
@media (max-width: 768px) {
    .shg-accordion-title {
        font-size: 16px;
    }

    .shg-accordion-header {
        padding: 15px 0;
    }

    .shg-accordion-content {
        padding-bottom: 20px;
    }

    .shg-features-display-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .shg-feature-label {
        width: 45%;
    }

    .shg-feature-value {
        width: 55%;
    }
}

@media (max-width: 480px) {
    .shg-features-display-table,
    .shg-features-display-table tbody,
    .shg-features-display-table tr,
    .shg-features-display-table td {
        display: block;
        width: 100%;
    }

    .shg-features-display-table tr {
        margin-bottom: 0;
        border-bottom: none;
    }

    .shg-features-display-table tr:last-child {
        border-bottom: none;
    }

    .shg-feature-label {
        border-right: none;
        border-bottom: none;
        padding-bottom: 5px;
        font-weight: 600;
    }

    .shg-feature-value {
        padding-top: 0;
        padding-bottom: 15px;
        border-bottom: 1px solid #333;
    }
}
