.yadak-pcf-box {
    --yadak-pcf-accent: #B90014;
    --yadak-pcf-accent-rgb: 185, 0, 20;
    --yadak-pcf-border: #eeeeee;
    --yadak-pcf-surface: #fff;
    --yadak-pcf-text: #2b2b2b;
    --yadak-pcf-text-soft: #666;
    padding: 12px;
    margin: 14px 0;
    font-family: inherit;
}

.yadak-pcf-title {
    font-weight: 700;
    color: var(--yadak-pcf-text);
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.yadak-pcf-control label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.yadak-pcf-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--yadak-pcf-border);
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    color: #222;
    outline: none;
}

.yadak-pcf-select:focus {
    border-color: rgba(var(--yadak-pcf-accent-rgb), 0.35);
    box-shadow: 0 0 0 3px rgba(var(--yadak-pcf-accent-rgb), 0.08);
}

.yadak-pcf-result {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fafafa;
    color: #222;
    line-height: 1.9;
}

.yadak-pcf-result-label {
    display: block;
    color: #444;
    font-weight: 700;
    margin-bottom: 4px;
}

.yadak-pcf-result-code {
    direction: ltr;
    unicode-bidi: plaintext;
    display: inline-block;
    font-size: 16px;
    color: var(--yadak-pcf-accent);
}

.yadak-pcf-car-tables {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.yadak-pcf-car-card {
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--yadak-pcf-border);
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.yadak-pcf-car-media {
    flex: 0 0 35%;
    width: 35%;
    max-width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.yadak-pcf-car-thumb {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border-radius: 5px;
}

.yadak-pcf-car-thumb > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain;
    object-position: center;
    border-radius: 5px;
}

.yadak-pcf-car-thumb img,
.yadak-pcf-car-thumb-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
    object-fit: cover;
    border-radius: 5px;
    background: #f3f3f3;
    display: block;
}

.yadak-pcf-car-name {
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--yadak-pcf-text);
    line-height: 1.5;
    direction: rtl !important;
}

.yadak-pcf-car-body {
    flex: 1 1 65%;
    min-width: 0;
    direction: rtl;
}

.yadak-pcf-box .yadak-pcf-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.yadak-pcf-box .yadak-pcf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    margin: 0;
    table-layout: fixed;
}

.yadak-pcf-box .yadak-pcf-table th,
.yadak-pcf-box .yadak-pcf-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid var(--yadak-pcf-border);
    vertical-align: middle;
    line-height: 1.55;
    width: auto;
    font-size: 12px;
    background: #fff;
}

.yadak-pcf-box .yadak-pcf-table th {
    background: #fafafa;
    color: var(--yadak-pcf-text);
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
    text-align: right;
    padding: 8px 10px;
}

.yadak-pcf-box .yadak-pcf-pn-row td,
.yadak-pcf-box .yadak-pcf-pn-cell {
    background: #fff;
    font-weight: 600;
    text-align: right !important;
    padding: 8px 10px;
}

.yadak-pcf-box .yadak-pcf-pn-copy {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--yadak-pcf-border);
    border-radius: 6px;
    background: #fafafa;
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease;
}

.yadak-pcf-box .yadak-pcf-pn-copy:hover {
    background: rgba(var(--yadak-pcf-accent-rgb), 0.04);
    border-color: rgba(var(--yadak-pcf-accent-rgb), 0.28);
}

.yadak-pcf-box .yadak-pcf-pn-copy:hover .yadak-pcf-pn-value {
    color: var(--yadak-pcf-accent);
    text-decoration: none;
}

.yadak-pcf-box .yadak-pcf-pn-copy:hover .yadak-pcf-pn-copy-icon {
    color: var(--yadak-pcf-accent);
}

.yadak-pcf-box .yadak-pcf-pn-copy:focus-visible {
    outline: 2px solid rgba(var(--yadak-pcf-accent-rgb), 0.45);
    outline-offset: 2px;
}

.yadak-pcf-box .yadak-pcf-pn-label {
    display: inline-flex;
    align-items: center;
    color: #777;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    margin-left: 0;
}

.yadak-pcf-box .yadak-pcf-pn-value {
    direction: ltr;
    unicode-bidi: plaintext;
    display: inline-flex;
    align-items: center;
    color: var(--yadak-pcf-accent);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.yadak-pcf-box .yadak-pcf-pn-copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #B90014;
    line-height: 0;
    transition: color .15s ease, opacity .15s ease;
}

.yadak-pcf-box .yadak-pcf-pn-copy-icon svg {
    display: block;
    width: 19px;
    height: 19px;
}

.yadak-pcf-box .yadak-pcf-pn-copy.is-copied .yadak-pcf-pn-copy-icon {
    color: #16a34a;
    opacity: 1;
}

.yadak-pcf-box .yadak-pcf-col-company,
.yadak-pcf-box .yadak-pcf-col-price,
.yadak-pcf-box .yadak-pcf-col-action {
    width: 33.333%;
}

.yadak-pcf-box .yadak-pcf-col-company {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    word-break: break-word;
}

.yadak-pcf-box .yadak-pcf-brand-label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    /* Force RTL so logo (first in DOM) sits at inline-start = before the name */
    direction: rtl;
    unicode-bidi: isolate;
}

.yadak-pcf-box .brand-logo {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    order: 0;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 0;
    border-radius: 4px;
    box-sizing: border-box;
}

.yadak-pcf-box .brand-logo img {
    display: block;
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.yadak-pcf-box .yadak-pcf-brand-name {
    order: 1;
    min-width: 0;
}

.yadak-pcf-box .yadak-pcf-col-sourcing {
    padding: 10px 12px !important;
    text-align: center !important;
    direction: rtl;
}

.yadak-pcf-box .yadak-pcf-col-price {
    font-weight: 700;
    font-size: 13px;
    color: #222;
    direction: ltr;
    unicode-bidi: plaintext;
    word-break: break-word;
}

.yadak-pcf-box .yadak-pcf-price {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-direction: row;
    gap: 5px;
    direction: ltr;
    unicode-bidi: isolate;
}

.yadak-pcf-box .yadak-pcf-price-amount {
    font-size: 13px;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
}

.yadak-pcf-box .yadak-pcf-price-currency {
    font-size: 6px;
    font-weight: 600;
    color: #777;
    line-height: 1.3;
}

.yadak-pcf-box .yadak-pcf-sourcing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #B90014;
    border-radius: 12px;
    background: #B90014;
    color: #fff !important;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(185, 0, 20, 0.18);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.yadak-pcf-box .yadak-pcf-sourcing-btn:hover {
    background: #9e0011;
    border-color: #9e0011;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(185, 0, 20, 0.24);
}

.yadak-pcf-box .yadak-pcf-sourcing-btn:focus-visible {
    outline: 2px solid rgba(185, 0, 20, 0.45);
    outline-offset: 2px;
}

.yadak-pcf-box .yadak-pcf-sourcing-btn-title {
    display: inline;
}

.yadak-pcf-box .yadak-pcf-col-action {
    overflow: hidden;
}

.yadak-pcf-box .yadak-pcf-offer-row:hover td {
    background: rgba(var(--yadak-pcf-accent-rgb), 0.03);
}

.yadak-pcf-box .yadak-pcf-table tr:last-child td {
    border-bottom: 0;
}

.yadak-pcf-empty {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--yadak-pcf-border);
    background: #fafafa;
    color: #555;
    line-height: 1.6;
    font-size: 13px;
}

/* Buy button: scoped recreation of theme single_add_to_cart_button look */
.yadak-pcf-box .yadak-pcf-add-to-cart-btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    direction: rtl;
    width: auto;
    max-width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 7px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md, 12px);
    color: var(--brand-on-primary, #fff);
    background: linear-gradient(
        135deg,
        var(--brand-primary-dark, #6f000b) 0%,
        var(--brand-primary, #B90014) 48%,
        var(--brand-primary-bright, #c90016) 100%
    );
    box-shadow:
        0 6px 14px rgba(185, 0, 20, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease,
        background-color .15s ease,
        border-color .15s ease,
        opacity .15s ease;
}

.yadak-pcf-box .yadak-pcf-add-to-cart-btn:hover:not(:disabled) {
    color: var(--brand-on-primary, #fff);
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow:
        0 9px 18px rgba(185, 0, 20, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.yadak-pcf-box .yadak-pcf-add-to-cart-btn:focus-visible {
    outline: 2px solid var(--yadak-pcf-accent);
    outline-offset: 2px;
}

.yadak-pcf-box .yadak-pcf-add-to-cart-btn:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
    box-shadow: none;
    filter: none;
}

.yadak-pcf-box .yadak-pcf-add-to-cart-btn.is-added {
    background: #168a45;
    border-color: rgba(255, 255, 255, 0.15);
    filter: none;
    box-shadow: none;
}

.yadak-pcf-box .yadak-pcf-buy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex: 0 0 auto;
}

.yadak-pcf-box .yadak-pcf-buy-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.yadak-pcf-box .yadak-pcf-buy-text {
    line-height: 1;
}

.yadak-pcf-oos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--yadak-pcf-border);
    border-radius: 7px;
    background: #f5f5f5;
    color: #777;
    font-size: 11px;
    font-weight: 600;
}

.yadak-pcf-box .yadak-pcf-fallback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: var(--radius-md, 12px);
    color: #fff !important;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

.yadak-pcf-box .yadak-pcf-fallback-btn--no-price {
    border: 1px solid var(--yadak-pcf-accent);
    background: var(--yadak-pcf-accent);
}

.yadak-pcf-box .yadak-pcf-fallback-btn--no-price:hover {
    background: #9e0011;
    border-color: #9e0011;
    color: #fff !important;
}

.yadak-pcf-cart-meta {
    color: #666;
}

@media (max-width: 600px) {
    .yadak-pcf-car-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .yadak-pcf-car-media {
        flex: none;
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        direction: rtl;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }

    .yadak-pcf-car-thumb {
        flex: 0 0 88px;
        width: 88px;
        max-width: 88px;
    }

    .yadak-pcf-car-thumb img,
    .yadak-pcf-car-thumb-placeholder {
        width: 88px;
        height: 88px;
        min-height: 0;
        max-height: none;
    }

    .yadak-pcf-car-name {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
        font-size: 14px;
    }

    .yadak-pcf-car-body {
        flex: none;
        width: 100%;
    }

    .yadak-pcf-box .yadak-pcf-table th,
    .yadak-pcf-box .yadak-pcf-table td {
        padding: 6px 8px;
        font-size: 11px;
    }

    .yadak-pcf-box .yadak-pcf-add-to-cart-btn,
    .yadak-pcf-box .yadak-pcf-fallback-btn {
        width: 100%;
        min-height: 38px;
    }
}

.yadak-pcf-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    margin-right: 10px;
    padding: 6px 12px;
    border: 1px solid rgba(var(--yadak-pcf-accent-rgb), 0.22);
    border-radius: 9px;
    background: #fff;
    color: var(--yadak-pcf-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
    vertical-align: middle;
}

.yadak-pcf-copy-btn:hover {
    background: rgba(var(--yadak-pcf-accent-rgb), 0.04);
    color: var(--yadak-pcf-accent);
    border-color: rgba(var(--yadak-pcf-accent-rgb), 0.28);
}

.yadak-pcf-copy-btn:focus-visible {
    outline: 2px solid rgba(var(--yadak-pcf-accent-rgb), 0.45);
    outline-offset: 2px;
}

.yadak-pcf-copy-btn.is-copied {
    background: #168a45;
    border-color: #168a45;
    color: #fff;
}

.yadak-pcf-copy-icon {
    font-size: 15px;
    line-height: 1;
}

@media (max-width: 600px) {
    .yadak-pcf-copy-btn {
        width: 100%;
        margin: 10px 0 0;
    }
}



/* Vehicle category selector */
.yadak-pcf-vehicle-box {
    --yadak-pcf-accent: #B90014;
    --yadak-pcf-accent-rgb: 185, 0, 20;
    --yadak-pcf-border: #eeeeee;
    --yadak-pcf-surface: #fff;
    --yadak-pcf-text: #2b2b2b;
    --yadak-pcf-text-soft: #666;
}

.yadak-pcf-vehicle-box .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.yadak-pcf-vehicle-box .yadak-pcf-helper {
    --yadak-pcf-helper-paper: #FFF8D6;
    --yadak-pcf-helper-paper-border: rgba(0, 0, 0, 0.08);
    --yadak-pcf-helper-tail-border: #E8E0C4;
    grid-area: select;
    position: absolute;
    bottom: calc(100% + 10px);
    inset-inline-start: 28%;
    width: min(50%, calc(100% - 8px));
    max-width: min(50%, calc(100vw - 32px));
    margin: 0;
    padding-block: 10px;
    padding-right: 12px;
    padding-left: 34px;
    border: 1px solid var(--yadak-pcf-helper-paper-border);
    border-radius: 10px 10px 10px 3px;
    background: var(--yadak-pcf-helper-paper);
    color: #5c5638;
    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.07),
        0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    direction: rtl;
    z-index: 3;
    pointer-events: auto;
}

.yadak-pcf-vehicle-box .yadak-pcf-helper::before,
.yadak-pcf-vehicle-box .yadak-pcf-helper::after {
    content: "";
    position: absolute;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    pointer-events: none;
    transform: none;
}

.yadak-pcf-vehicle-box .yadak-pcf-helper::after {
    bottom: -14px;
    border-top: 14px solid var(--yadak-pcf-helper-tail-border);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.yadak-pcf-vehicle-box .yadak-pcf-helper::before {
    bottom: -12px;
    z-index: 1;
    border-top: 12px solid var(--yadak-pcf-helper-paper);
}

.yadak-pcf-vehicle-box .yadak-pcf-helper[hidden] {
    display: none !important;
}

.yadak-pcf-vehicle-box .yadak-pcf-helper-body {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 12px;
    text-align: right !important;
    direction: rtl !important;
}

.yadak-pcf-vehicle-box .yadak-pcf-helper-text {
    margin: 0;
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    color: #5c5638;
    text-align: right !important;
    direction: rtl !important;
    unicode-bidi: plaintext;
    word-spacing: normal;
    letter-spacing: normal;
}

.yadak-pcf-vehicle-box .yadak-pcf-helper-close {
    position: absolute;
    inset-inline-end: 6px;
    inset-inline-start: auto;
    inset-block-start: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
    border: 0.5px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #98000F;
    line-height: 0;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.yadak-pcf-vehicle-box .yadak-pcf-helper-close-icon {
    display: block;
    width: 10px;
    height: 10px;
}

.yadak-pcf-vehicle-box .yadak-pcf-helper-close:hover {
    background: rgba(152, 0, 15, 0.08);
    border-color: rgba(152, 0, 15, 0.25);
    border-width: 0.5px;
    color: #7a000c;
}

.yadak-pcf-vehicle-box .yadak-pcf-helper-close:focus-visible {
    outline: none;
    background: rgba(152, 0, 15, 0.08);
    border-color: rgba(152, 0, 15, 0.3);
    border-width: 0.5px;
    color: #98000F;
    box-shadow: 0 0 0 2px rgba(152, 0, 15, 0.12);
}

.yadak-pcf-vehicle-picker {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px;
    box-sizing: border-box;
}

.yadak-pcf-vehicle-preview {
    /* Increase this to hide more from the top of the image (e.g. 10% / 15% / 20%). */
    --yadak-pcf-preview-top-crop: 10%;
    position: relative;
    display: block;
    height: 210px;
    min-height: 210px;
    padding: 0;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
    box-sizing: border-box;
}

.yadak-pcf-vehicle-preview.has-image {
    background: #f3f3f3;
    border-color: rgba(185, 0, 20, 0.22);
}

.yadak-pcf-vehicle-preview-img {
    position: absolute;
    left: 0;
    width: 100%;
    /* Force vertical overflow so top-crop always works, even for landscape images. */
    top: calc(var(--yadak-pcf-preview-top-crop) * -1);
    height: calc(100% + var(--yadak-pcf-preview-top-crop));
    display: block;
    object-fit: cover;
    object-position: 50% 0%;
    transform-origin: 50% 0%;
    opacity: 1;
    transform: scale(1);
    transition: opacity .28s ease, transform .38s ease;
    will-change: opacity, transform;
}

.yadak-pcf-vehicle-preview-img.is-fading {
    opacity: 0;
    transform: scale(1.03);
}

.yadak-pcf-vehicle-preview-img[hidden] {
    display: none !important;
}

.yadak-pcf-vehicle-preview-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(185, 0, 20, 0.08), rgba(185, 0, 20, 0.02)),
        #f0f0f0;
    box-shadow: inset 0 0 0 1px #eeeeee;
    opacity: 1;
    transition: opacity .22s ease;
}

.yadak-pcf-vehicle-preview-placeholder[hidden] {
    display: none !important;
}

.yadak-pcf-vehicle-select-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "label"
        "select"
        "note";
    gap: 10px;
    align-content: center;
    min-width: 0;
    padding: 4px 2px;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.yadak-pcf-vehicle-select-wrap .yadak-pcf-vehicle-select-label {
    grid-area: label;
}

.yadak-pcf-vehicle-select-wrap .yadak-pcf-vehicle-select {
    grid-area: select;
    position: relative;
    z-index: 2;
}

.yadak-pcf-vehicle-select-wrap .yadak-pcf-vehicle-select-note {
    grid-area: note;
}

.yadak-pcf-vehicle-select-label {
    display: block;
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #333;
    line-height: 1.4;
}

.yadak-pcf-vehicle-box .yadak-pcf-vehicle-select {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 40px 12px 14px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23B90014' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 12px 8px;
    color: #222;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    direction: rtl;
    cursor: pointer;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}

.yadak-pcf-vehicle-box .yadak-pcf-vehicle-select:hover {
    border-color: rgba(185, 0, 20, 0.35);
}

.yadak-pcf-vehicle-box .yadak-pcf-vehicle-select:focus {
    outline: none;
    border-color: #B90014;
    box-shadow: 0 0 0 3px rgba(185, 0, 20, 0.12);
}

.yadak-pcf-vehicle-select-note {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.65;
    color: #777;
}

.yadak-pcf-vehicle-panels {
    position: relative;
    min-height: 80px;
}

.yadak-pcf-vehicle-panel {
    display: none;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .16s ease, transform .16s ease;
}

.yadak-pcf-vehicle-panel.is-active {
    display: block;
    opacity: 1;
    transform: none;
}

.yadak-pcf-vehicle-panel.is-entering {
    display: block;
}

/* Vehicle data panel: tinted shell + white content card */
.yadak-pcf-vehicle-panel-inner {
    --yadak-pcf-panel-line: #E9E9E9;
    --yadak-pcf-panel-shell: #F3EFF0;
    --yadak-pcf-panel-card: #ffffff;
    --yadak-pcf-panel-soft: #F8F6F7;

    margin: 0;
    padding: 16px;
    border: 1px solid var(--yadak-pcf-panel-line);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(185, 0, 20, 0.045) 0%, rgba(185, 0, 20, 0.02) 100%),
        var(--yadak-pcf-panel-shell);
    box-sizing: border-box;
}

.yadak-pcf-vehicle-panel-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0 2px 12px;
    border: 0;
    border-bottom: 1px solid var(--yadak-pcf-panel-line);
    font-size: 13px;
    font-weight: 800;
    color: #B90014;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    text-decoration: none;
    transition: color .15s ease, opacity .15s ease;
}

a.yadak-pcf-vehicle-panel-heading:hover,
a.yadak-pcf-vehicle-panel-heading:focus {
    color: #8f0010;
    text-decoration: underline;
    text-underline-offset: 3px;
}

a.yadak-pcf-vehicle-panel-heading:focus-visible {
    outline: 2px solid rgba(185, 0, 20, 0.4);
    outline-offset: 3px;
    border-radius: 8px;
}

.yadak-pcf-vehicle-panel-heading::before {
    content: "";
    flex: 0 0 auto;
    width: 3px;
    height: 1.15em;
    border-radius: 999px;
    background: #B90014;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-table-wrap {
    margin: 0;
    border: 1px solid var(--yadak-pcf-panel-line);
    border-radius: 14px;
    background: var(--yadak-pcf-panel-card);
    overflow: hidden;
    box-shadow: none;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-table {
    background: transparent;
    border: 0;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-table th,
.yadak-pcf-vehicle-panel-inner .yadak-pcf-table td {
    border: 0;
    border-bottom: 1px solid var(--yadak-pcf-panel-line);
    background: transparent;
    box-shadow: none;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-table tr:last-child td {
    border-bottom: 0;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-pn-row td,
.yadak-pcf-vehicle-panel-inner .yadak-pcf-pn-cell {
    padding: 12px;
    background: var(--yadak-pcf-panel-soft);
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-pn-copy {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-pn-copy:hover {
    background: transparent;
    border-color: transparent;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-pn-label {
    color: #888;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-pn-value {
    font-size: 13.5px;
    letter-spacing: 0.02em;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-offer-row td {
    padding: 5px;
    background: var(--yadak-pcf-panel-card);
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-offer-row:hover td {
    background: #FFF9FA;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-col-company {
    color: #444;
    text-align: right;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-brand-label {
    justify-content: flex-start;
    direction: rtl;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-col-price {
    color: #111;
    font-size: 13px;
}

.yadak-pcf-vehicle-panel-inner .yadak-pcf-fallback-btn {
    border-color: var(--yadak-pcf-panel-line);
}

.yadak-pcf-vehicle-empty {
    margin: 0;
}

@media (max-width: 700px) {
    .yadak-pcf-vehicle-picker {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .yadak-pcf-vehicle-preview {
        height: 210px;
        min-height: 210px;
        order: -1;
    }

    .yadak-pcf-vehicle-box .yadak-pcf-vehicle-select {
        min-height: 46px;
        font-size: 13px;
    }

    .yadak-pcf-vehicle-box .yadak-pcf-helper {
        inset-inline-start: 14%;
        width: min(78%, calc(100vw - 24px));
        max-width: min(78%, calc(100% - 8px));
        padding-block: 9px;
        padding-right: 10px;
        padding-left: 32px;
        border-radius: 9px 9px 9px 3px;
    }

    .yadak-pcf-vehicle-box .yadak-pcf-helper::before,
    .yadak-pcf-vehicle-box .yadak-pcf-helper::after {
        right: 18px;
        border-left-width: 6px;
        border-right-width: 6px;
    }

    .yadak-pcf-vehicle-box .yadak-pcf-helper::after {
        bottom: -12px;
        border-top-width: 12px;
    }

    .yadak-pcf-vehicle-box .yadak-pcf-helper::before {
        bottom: -10px;
        border-top-width: 10px;
    }

    .yadak-pcf-vehicle-box .yadak-pcf-helper-text {
        font-size: 11.5px;
        line-height: 1.65;
        text-align: right !important;
        direction: rtl !important;
    }

    .yadak-pcf-vehicle-box .yadak-pcf-helper-close {
        inset-inline-end: 5px;
        inset-inline-start: auto;
        inset-block-start: 5px;
        width: 20px;
        height: 20px;
    }

    .yadak-pcf-vehicle-panel-inner {
        padding: 12px 10px;
    }

    .yadak-pcf-vehicle-panel-heading {
        font-size: 12.5px;
    }
}

/* Cart add feedback: desktop modal / mobile bottom sheet */
body.yadak-pcf-cart-feedback-open {
    overflow: hidden;
}

.yadak-pcf-cart-feedback {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: inherit;
    direction: rtl;
}

.yadak-pcf-cart-feedback[hidden] {
    display: none !important;
}

.yadak-pcf-cart-feedback-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.42);
}

.yadak-pcf-cart-feedback-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    margin: 0;
    padding: 22px 20px 18px;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.yadak-pcf-cart-feedback.is-open .yadak-pcf-cart-feedback-dialog {
    opacity: 1;
    transform: none;
}

.yadak-pcf-cart-feedback-close {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #8a8a8a;
    cursor: pointer;
    line-height: 0;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.yadak-pcf-cart-feedback-close:hover {
    color: #9e0011;
    background: #fff;
    border-color: #9e0011;
}

.yadak-pcf-cart-feedback-close:focus-visible {
    outline: none;
    color: #9e0011;
    background: #fff;
    border-color: #9e0011;
    box-shadow: 0 0 0 2px rgba(158, 0, 17, 0.18);
}

.yadak-pcf-cart-feedback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 4px auto 12px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    line-height: 0;
}

.yadak-pcf-cart-feedback.is-error .yadak-pcf-cart-feedback-icon {
    background: rgba(185, 0, 20, 0.08);
    color: #B90014;
}

.yadak-pcf-cart-feedback-icon svg {
    display: block;
}

.yadak-pcf-cart-feedback-title {
    margin: 0 0 8px;
    padding: 0 24px;
    color: #222;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
}

.yadak-pcf-cart-feedback-text {
    margin: 0 0 8px;
    padding: 0 8px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
}

.yadak-pcf-cart-feedback-product {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 8px 10px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #fafafa;
    color: #333;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.55;
}

.yadak-pcf-cart-feedback-product[hidden] {
    display: none !important;
}

.yadak-pcf-cart-feedback-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.yadak-pcf-cart-feedback-actions.is-single {
    justify-content: center;
}

.yadak-pcf-cart-feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(50% - 4px);
    min-height: 40px;
    margin: 0;
    padding: 8px 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.yadak-pcf-cart-feedback-btn--primary {
    border: 1px solid #B90014;
    background: #B90014;
    color: #fff;
}

.yadak-pcf-cart-feedback-btn--primary:hover {
    background: #9e0011;
    border-color: #9e0011;
    color: #fff;
}

.yadak-pcf-cart-feedback-btn--secondary {
    border: 1px solid #eeeeee;
    background: #fff;
    color: #333;
}

.yadak-pcf-cart-feedback-btn--secondary:hover {
    border-color: #9e0011;
    background: #fff;
    color: #9e0011;
}

.yadak-pcf-cart-feedback-btn:focus-visible {
    outline: 2px solid rgba(185, 0, 20, 0.45);
    outline-offset: 2px;
}

.yadak-pcf-cart-feedback-btn[hidden] {
    display: none !important;
}

.yadak-pcf-cart-feedback-actions.is-single .yadak-pcf-cart-feedback-btn--secondary {
    flex: 1 1 100%;
    max-width: 220px;
}


/* =========================================
//Mojtaba start
========================================= */

/* لودینگ هنگام تغییر مدل خودرو */
.yadak-pcf-vehicle-box {
    position: relative;
}

.yadak-pcf-switch-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-switch-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.yadak-pcf-switch-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 92%;
    text-align: center;
}

.yadak-pcf-switch-spinner {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: yc-pcf-spinner 0.7s linear infinite;
}

.yadak-pcf-switch-overlay-text {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-vehicle-preview-img {
    opacity: 0;
    visibility: hidden;
    filter: none;
    transform: none;
    transition: none;
}

.yadak-pcf-vehicle-preview .product-image-skeleton {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    background: #e6e6e6;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-vehicle-preview .product-image-skeleton,
.yadak-pcf-vehicle-preview.is-loading .product-image-skeleton {
    opacity: 1;
    visibility: visible;
}

.yadak-pcf-vehicle-preview .product-image-skeleton[hidden] {
    display: block;
    opacity: 0;
    visibility: hidden;
}

.yadak-pcf-vehicle-preview .product-image-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 46%;
    background: linear-gradient(
        270deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(220%);
    animation: yadak-pcf-shimmer 1.15s ease-in-out infinite;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-vehicle-panel {
    transition: none;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-vehicle-select,
.yadak-pcf-vehicle-box.is-switching .yadak-pcf-pn-copy,
.yadak-pcf-vehicle-box.is-switching .yadak-pcf-add-to-cart-btn,
.yadak-pcf-vehicle-box.is-switching .yadak-pcf-vehicle-panel-heading,
.yadak-pcf-vehicle-box.is-switching .yadak-pcf-sourcing-btn,
.yadak-pcf-vehicle-box.is-switching .yadak-pcf-fallback-btn {
    pointer-events: none;
}

.yadak-pcf-commerce-slot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    vertical-align: middle;
}

.yadak-pcf-col-sourcing .yadak-pcf-commerce-slot {
    width: 100%;
}

.yadak-pcf-buy-skeleton {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md, 12px);
    background: #e6e6e6;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.yadak-pcf-buy-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 46%;
    background: linear-gradient(
        270deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(220%);
    animation: yadak-pcf-shimmer 1.15s ease-in-out infinite;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-commerce-slot .yadak-pcf-add-to-cart-btn,
.yadak-pcf-vehicle-box.is-switching .yadak-pcf-commerce-slot .yadak-pcf-fallback-btn,
.yadak-pcf-vehicle-box.is-switching .yadak-pcf-commerce-slot .yadak-pcf-sourcing-btn {
    visibility: hidden;
    opacity: 1 !important;
    color: transparent !important;
    pointer-events: none;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-buy-skeleton {
    opacity: 1;
    visibility: visible;
}

/* Brand logo loading: same is-switching trigger as .yadak-pcf-dyn / buy-skeleton.
   Image uses the existing shimmer skeleton pattern (buy-skeleton / product-image-skeleton). */
.yadak-pcf-vehicle-box.is-switching .brand-logo {
    background: #e6e6e6;
}

.yadak-pcf-vehicle-box.is-switching .brand-logo img {
    opacity: 0;
    visibility: hidden;
}

.yadak-pcf-box .brand-logo::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 46%;
    z-index: 1;
    background: linear-gradient(
        270deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(220%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.yadak-pcf-vehicle-box.is-switching .brand-logo::after {
    opacity: 1;
    visibility: visible;
    animation: yadak-pcf-shimmer 1.15s ease-in-out infinite;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-dyn {
    position: relative;
    color: transparent !important;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-price-currency {
    color: transparent !important;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-col-company .yadak-pcf-dyn,
.yadak-pcf-vehicle-box.is-switching .yadak-pcf-vehicle-panel-heading .yadak-pcf-dyn,
.yadak-pcf-vehicle-box.is-switching .yadak-pcf-oos.yadak-pcf-dyn {
    display: inline-block;
    min-width: 2.2em;
    min-height: 1em;
    vertical-align: middle;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-dyn::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8a8a8a;
    box-shadow: -8px 0 0 #8a8a8a, -16px 0 0 #8a8a8a;
    transform: translateY(-50%);
    animation: yadak-pcf-dyn-dots 0.95s ease-in-out infinite;
    pointer-events: none;
}

.yadak-pcf-vehicle-box.is-switching .yadak-pcf-pn-value.yadak-pcf-dyn::after,
.yadak-pcf-vehicle-box.is-switching .yadak-pcf-price-amount.yadak-pcf-dyn::after {
    box-shadow: 8px 0 0 #8a8a8a, 16px 0 0 #8a8a8a;
    animation-name: yadak-pcf-dyn-dots-ltr;
}

@keyframes yc-pcf-spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes yadak-pcf-shimmer {
    from {
        transform: translateX(220%);
    }
    to {
        transform: translateX(-280%);
    }
}

@keyframes yadak-pcf-dyn-dots {
    0%,
    100% {
        background: rgba(138, 138, 138, 0.22);
        box-shadow: -8px 0 0 rgba(138, 138, 138, 0.22), -16px 0 0 rgba(138, 138, 138, 0.22);
        transform: translateY(-50%) scale(0.86);
    }
    25% {
        background: rgba(138, 138, 138, 1);
        box-shadow: -8px 0 0 rgba(138, 138, 138, 0.22), -16px 0 0 rgba(138, 138, 138, 0.22);
        transform: translateY(-50%) scale(1);
    }
    50% {
        background: rgba(138, 138, 138, 0.22);
        box-shadow: -8px 0 0 rgba(138, 138, 138, 1), -16px 0 0 rgba(138, 138, 138, 0.22);
        transform: translateY(-50%) scale(1);
    }
    75% {
        background: rgba(138, 138, 138, 0.22);
        box-shadow: -8px 0 0 rgba(138, 138, 138, 0.22), -16px 0 0 rgba(138, 138, 138, 1);
        transform: translateY(-50%) scale(1);
    }
}

@keyframes yadak-pcf-dyn-dots-ltr {
    0%,
    100% {
        background: rgba(138, 138, 138, 0.22);
        box-shadow: 8px 0 0 rgba(138, 138, 138, 0.22), 16px 0 0 rgba(138, 138, 138, 0.22);
        transform: translateY(-50%) scale(0.86);
    }
    25% {
        background: rgba(138, 138, 138, 1);
        box-shadow: 8px 0 0 rgba(138, 138, 138, 0.22), 16px 0 0 rgba(138, 138, 138, 0.22);
        transform: translateY(-50%) scale(1);
    }
    50% {
        background: rgba(138, 138, 138, 0.22);
        box-shadow: 8px 0 0 rgba(138, 138, 138, 1), 16px 0 0 rgba(138, 138, 138, 0.22);
        transform: translateY(-50%) scale(1);
    }
    75% {
        background: rgba(138, 138, 138, 0.22);
        box-shadow: 8px 0 0 rgba(138, 138, 138, 0.22), 16px 0 0 rgba(138, 138, 138, 1);
        transform: translateY(-50%) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .yadak-pcf-switch-spinner,
    .yadak-pcf-vehicle-preview .product-image-skeleton::after,
    .yadak-pcf-buy-skeleton::after,
    .yadak-pcf-vehicle-box.is-switching .brand-logo::after,
    .yadak-pcf-vehicle-box.is-switching .yadak-pcf-dyn::after {
        animation: none;
    }

    .yadak-pcf-switch-overlay,
    .yadak-pcf-vehicle-preview .product-image-skeleton,
    .yadak-pcf-vehicle-preview-img,
    .yadak-pcf-buy-skeleton,
    .yadak-pcf-box .brand-logo img,
    .yadak-pcf-box .brand-logo::after {
        transition: none;
    }

    .yadak-pcf-vehicle-preview .product-image-skeleton::after,
    .yadak-pcf-vehicle-box.is-switching .brand-logo::after {
        display: none;
    }

    .yadak-pcf-vehicle-box.is-switching .yadak-pcf-dyn::after {
        content: "...";
        width: auto;
        height: auto;
        border-radius: 0;
        background: none;
        box-shadow: none;
        color: #8a8a8a;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.08em;
        line-height: 1;
        transform: translateY(-50%);
    }
}

/* =========================================
//Mojtaba end
========================================= */



@media (max-width: 700px) {
    .yadak-pcf-cart-feedback {
        align-items: flex-end;
        justify-content: center;
        padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .yadak-pcf-cart-feedback-dialog {
        width: 100%;
        max-width: none;
        border-radius: 18px 18px 14px 14px;
        padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        transform: translateY(16px);
    }

    .yadak-pcf-cart-feedback.is-open .yadak-pcf-cart-feedback-dialog {
        transform: none;
    }

    .yadak-pcf-cart-feedback-actions {
        flex-direction: column;
    }

    .yadak-pcf-cart-feedback-btn {
        flex: 1 1 auto;
        width: 100%;
    }

    .yadak-pcf-cart-feedback-actions.is-single .yadak-pcf-cart-feedback-btn--secondary {
        max-width: none;
    }

    .yadak-pcf-cart-feedback-title {
        font-size: 15px;
        padding: 0 28px;
    }
}

/* =========================================
   Product Company Table — Mobile Layout
========================================= */

@media (max-width: 768px) {

    .yadak-pcf-table-wrap {
        width: 100% !important;
        overflow: hidden;
    }

    /* خارج‌کردن جدول از الگوریتم تقسیم ستون‌های HTML Table */
    .yadak-pcf-table-wrap
    .yadak-pcf-car-table,
    .yadak-pcf-table-wrap
    .yadak-pcf-car-table > tbody {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto !important;
    }

    /* ردیف کد فنی */
    .yadak-pcf-car-table
    .yadak-pcf-pn-row {
        display: block !important;
        width: 100% !important;
    }

    .yadak-pcf-car-table
    .yadak-pcf-pn-cell {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* لیست برندها در موبایل: یک کارت سفید با border گرد
       آیتم‌ها بدون border جداگانه — فقط separator بین ردیف‌ها
       چیدمان دو ردیفه حفظ می‌شود. */
    .yadak-pcf-vehicle-panel-inner .yadak-pcf-table-wrap {
        border: 1px solid var(--yadak-pcf-panel-line, #E9E9E9) !important;
        border-radius: 14px !important;
        background: var(--yadak-pcf-panel-card, #ffffff) !important;
        box-shadow: none !important;
        overflow: hidden;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing) {
        display: grid !important;
        grid-template-columns: 1fr auto auto 1fr !important;
        grid-template-areas: "company company company company" ". price action ." !important;
        align-items: center;
        justify-items: stretch;
        column-gap: 18px;
        row-gap: 10px;

        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 14px 12px !important;
        box-sizing: border-box;

        border: 0 !important;
        border-bottom: 1px solid var(--yadak-pcf-panel-line, #E9E9E9) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing):last-child {
        border-bottom: 0 !important;
    }

    /* تنظیم مشترک سلول‌های ردیف */
    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing) > td {
        display: flex !important;
        align-items: center;

        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;

        float: none !important;
        flex: none !important;
        border: none !important;
        background: transparent !important;
    }

    /* لاین اول: لوگو (قبل از نام در RTL) + نام برند */
    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-col-company {
        grid-area: company;
        justify-content: flex-start !important;
        align-items: center;
        width: 100% !important;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.45;
        text-align: right;
        white-space: normal;
        color: #333;
        direction: rtl;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-brand-label {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        min-width: 0;
        direction: rtl;
        unicode-bidi: isolate;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .brand-logo {
        display: inline-flex;
        flex: 0 0 26px;
        order: 0;
        width: 26px;
        height: 26px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        line-height: 0;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .brand-logo img {
        display: block;
        width: 26px;
        height: 26px;
        max-width: 26px;
        max-height: 26px;
        object-fit: contain;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-brand-name {
        flex: 1 1 auto;
        order: 1;
        min-width: 0;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.45;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* لاین دوم: قیمت و دکمه به‌صورت جفت وسط‌چین با فاصله */
    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-col-price {
        grid-area: price;
        justify-content: center;
        align-items: center;
        justify-self: end;
        min-width: 0;
        text-align: center;
        white-space: normal;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-col-action {
        grid-area: action;
        justify-content: center;
        align-items: center;
        justify-self: start;
        flex: 0 0 auto !important;
        white-space: nowrap;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-price {
        display: inline-flex !important;
        align-items: baseline;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;

        width: auto !important;
        max-width: 100%;
        white-space: normal;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-price-amount {
        font-size: 14px !important;
        font-weight: 800;
        line-height: 1.3;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-price-currency {
        font-size: 11px !important;
        font-weight: 600;
        opacity: 0.85;
    }

    /* دکمه خرید موبایل: فقط آیکن سبد */
    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-add-to-cart-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0;

        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 0 !important;

        color: #fff !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-add-to-cart-btn:hover:not(:disabled),
    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-add-to-cart-btn:focus:not(:disabled),
    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-add-to-cart-btn:active:not(:disabled) {
        color: #fff !important;
        filter: brightness(1.06);
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-buy-text {
        display: none !important;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-buy-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0;
        line-height: 0;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-buy-icon svg {
        display: block;
        width: 18px;
        height: 18px;
    }

    .yadak-pcf-car-table
    .yadak-pcf-offer-row:not(.yadak-pcf-offer-row--sourcing)
    .yadak-pcf-commerce-slot {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
      /* ردیف بدون قیمت باید تمام عرض جدول را بگیرد */
    .yadak-pcf-car-table
    .yadak-pcf-offer-row.yadak-pcf-offer-row--sourcing {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        box-sizing: border-box;
    }

    /* سلول دارای colspan */
    .yadak-pcf-car-table
    .yadak-pcf-offer-row--sourcing
    > .yadak-pcf-col-sourcing {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;

        margin: 0 !important;
        padding: 8px !important;
        box-sizing: border-box;

        float: none !important;
        flex: none !important;
        text-align: center;
    }

    /* دکمه تماس و استعلام قیمت */
    .yadak-pcf-car-table
    .yadak-pcf-sourcing-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 42px;

        margin: 0 !important;
        padding: 10px 14px !important;
        box-sizing: border-box;

        text-align: center;
        white-space: normal;
    }

    .yadak-pcf-car-table
    .yadak-pcf-sourcing-btn-title {
        display: block;
        width: 100%;

        font-size: 12px;
        line-height: 1.8;
        text-align: center;
    }
    
}

/* Live price range: shortcode + shop/related loop sibling (after product link) */
.yadak-pcf-price-range {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    direction: rtl;
    font-family: inherit;
    line-height: 1.7;
}

.yadak-pcf-price-range-label {
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.yadak-pcf-price-range-value {
    color: #c41230;
    font-size: 15px;
    font-weight: 700;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.yadak-pcf-price-range-from-text,
.yadak-pcf-price-range-to-text {
    color: #555;
    font-size: 13px;
}

.yadak-pcf-price-range-empty {
    font-family: inherit;
}

li.product > .yadak-pcf-price-range,
li.product > .yc-price-source-hidden {
    display: block;
    margin: 6px 0 8px;
    text-align: center;
}

li.product > .yc-price-source-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

li.product {
    position: relative;
}