.oeltek-product-faq {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 20px;
    padding: 30px;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    color: #202124;
    background:
        linear-gradient(145deg, rgba(205, 28, 45, 0.055), transparent 42%),
        #fff;
    border: 1px solid #ececef;
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(22, 25, 30, 0.06);
}

.oeltek-product-faq-heading {
    margin-bottom: 22px;
}

.oeltek-product-faq-eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #c91f37;
    font-size: 13px;
    font-weight: 700;
}

.oeltek-product-faq-heading h2 {
    margin: 0;
    color: #17181a;
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 800;
    line-height: 1.55;
}

.oeltek-product-faq-list {
    display: grid;
    gap: 12px;
}

.oeltek-product-faq-item {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e7ea;
    border-radius: 15px;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.oeltek-product-faq-item:hover,
.oeltek-product-faq-item.is-open {
    border-color: rgba(201, 31, 55, 0.38);
    box-shadow: 0 8px 24px rgba(25, 28, 34, 0.07);
}

.oeltek-product-faq-question {
    margin: 0;
    padding: 0;
    font-size: inherit;
}

.oeltek-product-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 66px;
    margin: 0;
    padding: 16px 20px;
    color: #202124;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.9;
    text-align: right;
    cursor: pointer;
}

.oeltek-product-faq-toggle:hover,
.oeltek-product-faq-toggle:focus {
    color: #b81930;
    background: rgba(201, 31, 55, 0.025);
    outline: none;
}

.oeltek-product-faq-toggle:focus-visible {
    outline: 2px solid rgba(201, 31, 55, 0.55);
    outline-offset: -4px;
}

.oeltek-product-faq-question-text {
    flex: 1;
}

.oeltek-product-faq-icon {
    position: relative;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    background: #f4f4f6;
    border-radius: 50%;
    transition:
        background 180ms ease,
        transform 220ms ease;
}

.oeltek-product-faq-icon::before,
.oeltek-product-faq-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    content: "";
    background: #c91f37;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

.oeltek-product-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 180ms ease;
}

.oeltek-product-faq-toggle[aria-expanded="true"]
.oeltek-product-faq-icon {
    background: #c91f37;
    transform: rotate(180deg);
}

.oeltek-product-faq-toggle[aria-expanded="true"]
.oeltek-product-faq-icon::before,
.oeltek-product-faq-toggle[aria-expanded="true"]
.oeltek-product-faq-icon::after {
    background: #fff;
}

.oeltek-product-faq-toggle[aria-expanded="true"]
.oeltek-product-faq-icon::after {
    transform: translate(-50%, -50%) rotate(0);
}

.oeltek-product-faq-answer {
    padding: 0 20px;
}

.oeltek-product-faq-answer-inner {
    padding: 4px 0 20px;
    color: #4b4d52;
    font-size: 15px;
    line-height: 2.15;
    border-top: 1px solid #f0f0f2;
}

.oeltek-product-faq-answer-inner p {
    margin: 13px 0 0;
}

.oeltek-product-faq-answer-inner a {
    color: #b81930;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* WooCommerce product editor */
.oeltek-product-faq-admin-panel {
    padding: 22px !important;
    box-sizing: border-box;
}

.oeltek-product-faq-admin-heading {
    margin-bottom: 18px;
}

.oeltek-product-faq-admin-heading h2 {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 700;
}

.oeltek-product-faq-admin-heading p {
    margin: 0;
    color: #646970;
}

#oeltek-product-faq-admin-list {
    display: grid;
    gap: 15px;
    margin-bottom: 16px;
}

.oeltek-product-faq-admin-row {
    padding: 17px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-right: 4px solid #c91f37;
    border-radius: 8px;
}

.oeltek-product-faq-admin-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.oeltek-product-faq-admin-row label {
    display: block;
    margin: 0 0 13px;
}

.oeltek-product-faq-admin-row label:last-child {
    margin-bottom: 0;
}

.oeltek-product-faq-admin-row label > span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.oeltek-product-faq-admin-row input,
.oeltek-product-faq-admin-row textarea {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    direction: rtl;
    text-align: right;
}

@media (max-width: 767px) {
    .oeltek-product-faq {
        width: calc(100% - 20px);
        margin-top: 24px;
        padding: 20px 13px;
        border-radius: 17px;
    }

    .oeltek-product-faq-heading {
        padding: 0 4px;
        margin-bottom: 17px;
    }

    .oeltek-product-faq-list {
        gap: 10px;
    }

    .oeltek-product-faq-toggle {
        min-height: 60px;
        padding: 13px 14px;
        font-size: 14.5px;
        line-height: 1.85;
    }

    .oeltek-product-faq-icon {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
    }

    .oeltek-product-faq-answer {
        padding: 0 14px;
    }

    .oeltek-product-faq-answer-inner {
        padding-bottom: 16px;
        font-size: 14px;
        line-height: 2.05;
    }
}

/* Product FAQ admin layout correction */
#woocommerce-product-data .oeltek-product-faq-admin-panel {
    padding: 24px !important;
    overflow: hidden;
    direction: rtl;
    text-align: right;
}

#woocommerce-product-data .oeltek-product-faq-admin-heading,
#woocommerce-product-data #oeltek-product-faq-admin-list,
#woocommerce-product-data .oeltek-product-faq-admin-row {
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

#woocommerce-product-data .oeltek-product-faq-admin-row {
    display: block;
    min-height: 0;
    padding: 18px 20px;
}

#woocommerce-product-data .oeltek-product-faq-admin-row label {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}

#woocommerce-product-data .oeltek-product-faq-admin-row label:last-child {
    margin-bottom: 0 !important;
}

#woocommerce-product-data .oeltek-product-faq-admin-row label > span {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 7px;
    padding: 0;
    color: #1d2327;
    font-weight: 600;
    line-height: 1.5;
}

#woocommerce-product-data .oeltek-product-faq-admin-row input[type="text"],
#woocommerce-product-data .oeltek-product-faq-admin-row textarea {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    direction: rtl;
    text-align: right;
    color: #1d2327;
    background: #fff;
    border: 1px solid #8c8f94;
    border-radius: 5px;
}

#woocommerce-product-data .oeltek-product-faq-admin-row input[type="text"] {
    min-height: 42px;
}

#woocommerce-product-data .oeltek-product-faq-admin-row textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.8;
}

#woocommerce-product-data .oeltek-product-faq-admin-row input:focus,
#woocommerce-product-data .oeltek-product-faq-admin-row textarea:focus {
    border-color: #c91f37;
    box-shadow: 0 0 0 1px #c91f37;
    outline: none;
}

#woocommerce-product-data #oeltek-product-faq-add {
    float: none;
    margin: 2px 0 0;
}

@media (max-width: 782px) {
    #woocommerce-product-data .oeltek-product-faq-admin-panel {
        padding: 16px !important;
    }

    #woocommerce-product-data .oeltek-product-faq-admin-row {
        padding: 15px;
    }
}

/* OELTEK_PRODUCT_FAQ_COMPACT_FINAL */

/* Frontend only: compact, clean FAQ */
body.single-product .oeltek-product-faq {
    width: min(1180px, calc(100% - 32px)) !important;
    margin: 20px auto 14px !important;
    padding: 18px 20px !important;
    box-sizing: border-box !important;
    direction: rtl !important;
    text-align: right !important;
    color: #292a2d !important;
    background: #fff !important;
    border: 1px solid #e6e6e8 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.single-product .oeltek-product-faq-heading {
    margin: 0 0 11px !important;
    padding: 0 !important;
}

body.single-product .oeltek-product-faq-eyebrow {
    display: none !important;
}

body.single-product .oeltek-product-faq-heading h2,
body.single-product #oeltek-product-faq-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #cb5e5a !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
}

body.single-product .oeltek-product-faq-list {
    display: grid !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .oeltek-product-faq-item {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #e4e4e7 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transform: none !important;
}

body.single-product .oeltek-product-faq-item:hover,
body.single-product .oeltek-product-faq-item.is-open {
    border-color: #d5d5d9 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.single-product .oeltek-product-faq-question {
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
}

body.single-product .oeltek-product-faq-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    color: #292a2d !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
    text-align: right !important;
    cursor: pointer !important;
}

body.single-product .oeltek-product-faq-toggle:hover,
body.single-product .oeltek-product-faq-toggle:focus {
    color: #b81930 !important;
    background: #fafafa !important;
    outline: none !important;
}

body.single-product .oeltek-product-faq-question-text {
    flex: 1 1 auto !important;
}

body.single-product .oeltek-product-faq-icon {
    position: relative !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    background: #f1f1f3 !important;
    border-radius: 50% !important;
}

body.single-product .oeltek-product-faq-icon::before,
body.single-product .oeltek-product-faq-icon::after {
    width: 9px !important;
    height: 1.5px !important;
}

body.single-product .oeltek-product-faq-answer {
    margin: 0 !important;
    padding: 0 12px !important;
}

body.single-product .oeltek-product-faq-answer-inner {
    margin: 0 !important;
    padding: 9px 0 11px !important;
    color: #56585d !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.95 !important;
    border-top: 1px solid #ededee !important;
}

body.single-product .oeltek-product-faq-answer-inner p {
    margin: 0 0 6px !important;
}

body.single-product .oeltek-product-faq-answer-inner p:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    body.single-product .oeltek-product-faq {
        width: calc(100% - 20px) !important;
        margin: 15px auto 10px !important;
        padding: 13px 10px !important;
        border-radius: 10px !important;
    }

    body.single-product .oeltek-product-faq-heading {
        margin-bottom: 9px !important;
        padding: 0 2px !important;
    }

    body.single-product .oeltek-product-faq-heading h2,
    body.single-product #oeltek-product-faq-title {
        font-size: 16px !important;
    }

    body.single-product .oeltek-product-faq-list {
        gap: 6px !important;
    }

    body.single-product .oeltek-product-faq-toggle {
        min-height: 42px !important;
        gap: 8px !important;
        padding: 8px 9px !important;
        font-size: 13px !important;
        line-height: 1.75 !important;
    }

    body.single-product .oeltek-product-faq-icon {
        flex-basis: 20px !important;
        width: 20px !important;
        height: 20px !important;
    }

    body.single-product .oeltek-product-faq-answer {
        padding: 0 9px !important;
    }

    body.single-product .oeltek-product-faq-answer-inner {
        padding: 8px 0 10px !important;
        font-size: 13px !important;
        line-height: 1.9 !important;
    }
}



/* OELTEK_PRODUCT_FAQ_DESKTOP_WIDTH_MATCH */
@media (min-width: 1025px) {
    body.single-product .oeltek-product-faq {
        width: calc(100% - 30px) !important;
        max-width: 1320px !important;
    }
}
