:root {
    color-scheme: light;
    --pcc-navy: #10213f;
    --pcc-navy-2: #19365f;
    --pcc-orange: #ff5b18;
    --pcc-red: #e93445;
    --pcc-green: #14975a;
    --pcc-ink: #16243c;
    --pcc-muted: #6e7887;
    --pcc-line: #e2e7ee;
    --pcc-soft: #f6f8fb;
    --pcc-white: #fff;
    --pcc-label: 190px;
    --pcc-product: minmax(230px, 1fr);
    --pcc-grid: var(--pcc-label) repeat(4, var(--pcc-product));
}

/* Reliable visibility contract for standalone, shortcode, and product modal. */
.pc-compare-app [hidden],
.pc-compare-gallery[hidden],
.pc-compare-modal[hidden] {
    display: none !important;
}

.pc-compare-page *,
.pc-compare-embed *,
.pc-compare-modal * {
    box-sizing: border-box;
}

body.pc-compare-page {
    margin: 0;
    color: var(--pcc-ink);
    background: var(--pcc-soft);
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

.pc-compare-page button,
.pc-compare-page input,
.pc-compare-embed button,
.pc-compare-embed input {
    font: inherit;
}

.pc-compare-page button,
.pc-compare-embed button {
    cursor: pointer;
    border-radius: 9px;
}
.procompareempty{
    height: 100%;
    background: none!important;
}
.pc-compare-page a,
.pc-compare-embed a {
    color: inherit;
}

/* Standalone page header. */
.pc-compare-header {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 18px;
}

.pc-compare-brand {
    display: grid;
    place-items: center;
    min-width: 112px;
    min-height: 48px;
    padding: 8px 14px;
    color: #fff !important;
    background: var(--pcc-navy);
    border-radius: 14px;
    font-weight: 900;
    text-decoration: none;
}

.pc-compare-header h1 {
    margin: 0;
    color: var(--pcc-navy);
    font-size: clamp(25px, 2.2vw, 38px);
    font-weight: 900;
}

.pc-compare-header p {
    margin: 4px 0 0;
    color: var(--pcc-muted);
    font-size: 14px;
}

/* Shared app shell. */
.pc-compare-app {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto 60px;
}

.pc-compare-embed {
    display: block;
    padding: 20px 0;
    color: var(--pcc-ink);
    background: transparent;
    font-family: inherit;
    direction: rtl;
}

.pc-compare-embed > .pc-compare-app {
    width: min(1320px, calc(100% - 32px));
}

.pc-compare-notice {
    margin: 10px 0;
    padding: 11px 14px;
    color: #942c38;
    background: #fff3f4;
    border: 1px solid #ffd4d9;
    border-radius: 12px;
}

.pc-compare-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 60px;
    margin-bottom: 8px;
    color: var(--pcc-muted);
    background: #fff;
    border: 1px solid var(--pcc-line);
    border-radius: 14px;
}

.pc-compare-loading span {
    width: 8px;
    height: 8px;
    background: var(--pcc-orange);
    border-radius: 50%;
    animation: pcc-pulse .8s ease-in-out infinite;
}

.pc-compare-loading span:nth-child(2) {
    animation-delay: .1s;
}

.pc-compare-loading span:nth-child(3) {
    animation-delay: .2s;
}

.pc-compare-loading p {
    margin: 0 8px 0 0;
    font-size: 13px;
}

@keyframes pcc-pulse {
    0%, 100% {
        opacity: .25;
        transform: scale(.78);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* One horizontal viewport owns products and aligned feature columns. */
.pc-compare-content {
    background: transparent;
    border: 0;
}

.pc-compare-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    direction: rtl;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #b7c0cd transparent;
    scrollbar-width: thin;
}

.pc-compare-scroll::-webkit-scrollbar {
    height: 7px;
}

.pc-compare-scroll::-webkit-scrollbar-thumb {
    background: #b7c0cd;
    border-radius: 999px;
}

.pc-compare-products,
.pc-compare-feature-row {
    display: grid;
    grid-template-columns: var(--pcc-grid);
    min-width: 1110px;
}

/* Product header row. */
.pc-compare-products {
    align-items: stretch;
    padding: 2px 0 16px;
}

.pc-compare-product-label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: 6px;
    padding: 20px 15px;
    color: var(--pcc-navy);
    background: #f7f9fc;
    border: 1px solid var(--pcc-line);
    border-radius: 18px;
}

.pc-compare-product-label strong {
    font-size: 20px;
    font-weight: 900;
}

.pc-compare-product-label span {
    color: var(--pcc-muted);
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
}

.pc-compare-slot {
    position: relative;
    min-width: 0;
    min-height: 430px;
    margin: 0 6px;
    padding: 14px;
    overflow: visible;
    background: #fff;
    border: 1px solid var(--pcc-line);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 33, 63, .055);
}

.pc-compare-slot-search {
    position: relative;
    z-index: 40;
    width: 100%;
    max-width: 100%;
}

.pc-compare-slot-search label {
    display: block;
    margin-bottom: 7px;
    color: #42506a;
    font-size: 12px;
    font-weight: 800;
}

.pc-compare-slot-search input {
    display: block;
    width: 100% !important;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    max-width: stretch !important;
    color: var(--pcc-ink);
    background: #fff;
    border: 1px solid #cfd6e0;
    border-radius: 12px !important;
    outline: 0;
    box-sizing: content-box !important;
}

.pc-compare-slot-search input:focus {
    border-color: var(--pcc-orange);
    box-shadow: 0 0 0 3px rgba(255, 91, 24, .1);
}

.pc-compare-slot-status {
    min-height: 20px;
    padding-top: 4px;
    color: var(--pcc-muted);
    font-size: 10px;
}

.pc-compare-slot-results {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 80;
    max-height: 330px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d5dbe4;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(14, 30, 55, .18);
}

.pc-compare-slot-results > button {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 68px;
    padding: 8px;
    color: var(--pcc-ink);
    text-align: right;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eef1f5;
}

.pc-compare-slot-results > button:hover,
.pc-compare-slot-results > button:focus {
    background: #f8fafc;
}

.pc-compare-slot-results img,
.pc-compare-result-placeholder {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f5f7fa;
    border-radius: 8px;
}

.pc-compare-slot-results > button > span:nth-child(2) {
    min-width: 0;
}

.pc-compare-slot-results strong,
.pc-compare-slot-results small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-compare-slot-results strong {
    font-size: 12px;
}

.pc-compare-slot-results small,
.pc-compare-slot-results b {
    color: var(--pcc-muted);
    font-size: 10px;
}

.pc-compare-slot-results b {
    grid-column: 2;
    color: var(--pcc-red);
}

.pc-compare-result-type {
    display: inline-flex;
    margin-right: 5px;
    padding: 1px 5px;
    color: var(--pcc-red);
    background: #fff0f2;
    border-radius: 5px;
    font-size: 8px;
    font-style: normal;
}

/* The plus card is the only selector trigger until clicked. */
.pc-compare-slot.has-product .pc-compare-slot-search,
.pc-compare-slot.is-empty:not(.is-searching) .pc-compare-slot-search {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.pc-compare-empty-product {
    display: flex;
    width: 100%;
    min-height: 390px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    color: var(--pcc-muted);
    background: #fff;
    border: 1px dashed #d2d9e3;
    border-radius: 14px;
}

.pc-compare-empty-product:hover {
    background: #fffafa;
    border-color: #ffb9a0;
}

.pc-compare-empty-product > span {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    color: var(--pcc-orange);
    background: #fff0eb;
    border-radius: 50%;
    font-size: 36px;
    line-height: 1;
}

.pc-compare-empty-product strong {
    color: #445066;
    font-size: 15px;
}

.pc-compare-empty-product small {
    margin-top: 7px;
    font-size: 11px;
}

.pc-compare-slot.is-empty.is-searching {
    min-height: 260px;
    padding: 18px 14px;
}

.pc-compare-slot.is-empty.is-searching .pc-compare-empty-product {
    display: none;
}

.pc-compare-slot.is-empty.is-searching .pc-compare-slot-search {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    clip-path: none;
}

/* Selected product card. */
.pc-compare-remove {
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 12;
    width: 32px;
    font-size: 30px !important;
    line-height: 1 !important;
    background: none !important;
    color: #F44336 !important;
}

.pc-compare-remove:hover {
    color: #fff;
    background: var(--pcc-red);
    border-color: var(--pcc-red);
}

.pc-compare-product-image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 190px;
    padding: 8px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
}

.pc-compare-product-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

.pc-compare-slot h2 {
    min-height: auto;
    margin: 6px 0 5px;
    color: var(--pcc-navy);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.7;
    text-align: center;
}

.pc-compare-slot h2 a {
    display: -webkit-box;
    overflow: hidden;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pc-compare-meta {
    display: flex;
    min-height: 32px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pc-compare-meta span {
    padding: 4px 7px;
    color: #667184;
    border-radius: 7px;
    font-size: 10px;
}

.pc-compare-meta .pc-compare-score {
    color: #c87400;
    background: #fff6dc;
}

.pc-compare-price {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #eef1f5;
    text-align: center;
}

.pc-compare-price strong {
    color: var(--pcc-navy);
    font-size: 17px;
    white-space: nowrap;
}

.pc-compare-price span {
    color: var(--pcc-green);
    font-size: 10px;
}

.pc-compare-price span.is-out {
    color: var(--pcc-red);
}

/* All variable prices appear directly; no extra price button or popover. */
.pc-compare-inline-prices {
    display: grid;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid #eef1f5;
}

.pc-compare-inline-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    border-radius: 8px;
}

.pc-compare-inline-price span {
    overflow: hidden;
    color: #647085;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-compare-inline-price strong {
    color: var(--pcc-navy);
    font-size: 11px;
    white-space: nowrap;
}

.pc-compare-media-strip {
    display: none;
}

.pc-compare-product-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.pc-compare-product-links > a,
.pc-compare-product-links > button {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: #32425c;
    background: #fff;
    border: 1px solid #d9e0e9;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
    text-decoration: none;
}

.pc-compare-product-links > a:hover,
.pc-compare-product-links > button:hover {
    color: var(--pcc-orange);
    border-color: #ffb59a;
}

/* Summary is an actual card overlay and never changes column height. */
.pc-compare-popover {
    position: absolute;
    inset: 8px;
    z-index: 70;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pcc-line);
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(15, 31, 56, .2);
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .16s ease, transform .16s ease;
}

.pc-compare-popover.is-open {
    opacity: 1;
    transform: translateY(0);
}

.pc-compare-popover > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 12px;
    padding: 7px 8px;
    border-bottom: 1px solid var(--pcc-line);
}

.pc-compare-popover > header button {
    width: 10px;
    height: 10px;
    color: #F44336;
    background: none;
    font-size: 25px;
}

.pc-compare-popover__body {
    overflow-y: auto;
    padding: 13px;
    color: #47546a;
    font-size: 12px;
    line-height: 2;
}

.pc-compare-popover__body > :first-child {
    margin-top: 0;
}

.pc-compare-popover__body > :last-child {
    margin-bottom: 0;
}

/* Feature group tabs. */
.pc-compare-features {
    min-width: 1110px;
}

.pc-compare-feature-tabs {
    position: sticky;
    right: 0;
    z-index: 21;
    display: flex;
    width: min(100vw - 32px, 1320px);
    max-width: calc(100vw - 32px);
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--pcc-line);
    border-radius: 17px;
    scrollbar-width: thin;
}

.pc-compare-feature-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 17px;
    color: #526077;
    background: #f3f5f8;
    border: 0;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    transition: color .15s ease, background .15s ease, transform .15s ease;
}

.pc-compare-feature-tab:hover {
    color: #ffffff !important;
    background: #F44336 !important;
}

.pc-compare-feature-tab.is-active {
    color: #fff;
    background: #F44336;
    box-shadow: 0 6px 14px rgba(16, 33, 63, .17);
}


.pc-compare-feature-panels {
    margin-top: 10px;
    overflow: visible;
    background: #fff;
    border: 1px solid var(--pcc-line);
    border-radius: 17px;
}

.pc-compare-feature-group {
    min-width: 1110px;
}

.pc-compare-feature-row {
    min-height: 56px;
    border-bottom: 1px solid var(--pcc-line);
}

.pc-compare-feature-row:last-child {
    border-bottom: 0;
}

.pc-compare-feature-label,
.pc-compare-feature-value {
    display: flex;
    min-width: 0;
    align-items: center;
    padding: 10px 12px;
    line-height: 1.8;
}

.pc-compare-feature-label {
    position: sticky;
    right: 0;
    z-index: 20;
    gap: 7px;
    color: #2b3b55;
    background: #fafbfd;
    border-left: 1px solid var(--pcc-line);
    box-shadow: -5px 0 12px rgba(15, 32, 61, .045);
    font-size: 12px;
    font-weight: 850;
}

.pc-compare-feature-label::before {
    content: "i";
    display: inline-grid;
    place-items: center;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    color: #8490a2;
    border: 1px solid #c7d0dc;
    border-radius: 50%;
    font: 700 10px/1 Arial, sans-serif;
}

.pc-compare-feature-value {
    justify-content: center;
    color: #203552;
    border-left: 1px solid #edf0f4;
    font-size: 13px;
    text-align: center;
}

.pc-compare-feature-value.is-empty {
    background: #fcfdfe;
}

.pc-compare-feature-row[data-pc-compare-same="0"] .pc-compare-feature-value:not(.is-empty) {
    margin: 7px 5px;
    padding: 5px 8px;
    background: #eff9f3;
    border: 0;
    border-radius: 8px;
}

.pc-compare-start-message {
    display: flex;
    min-width: 1110px;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--pcc-muted);
    background: #fff;
    border: 1px solid var(--pcc-line);
    border-radius: 16px;
}

.pc-compare-start-message strong {
    color: #3d4a60;
    font-size: 16px;
}

.pc-compare-start-message span {
    font-size: 12px;
}

/* Bottom actions. */
.pc-compare-toolbar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 62px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--pcc-line);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(15, 32, 61, .1);
}

.pc-compare-toolbar__copy {
    display: flex;
    flex-direction: column;
    margin-left: auto;
}

.pc-compare-toolbar__copy strong {
    font-size: 14px;
}

.pc-compare-toolbar__copy span {
    color: var(--pcc-muted);
    font-size: 11px;
}

.pc-compare-difference-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #2f3d53;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.pc-compare-difference-toggle input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--pcc-navy);
}

.pc-compare-difference-toggle:has(input:disabled) {
    opacity: .48;
}

.pc-compare-clear-button {
    min-height: 42px;
    padding: 8px 14px;
    color: var(--pcc-red);
    background: #fff2f3;
    border: 1px solid #ffd7db;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 850;
}

.pc-compare-clear-button:disabled {
    cursor: default;
    opacity: .45;
}

/* Full-page product comparison modal. */
html.pc-compare-modal-open,
body.pc-compare-modal-open {
    overflow: hidden !important;
}

.pc-compare-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    color: var(--pcc-ink);
    background: #fff;
    direction: rtl;
    animation: pcc-modal-in .19s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes pcc-modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.995);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pc-compare-modal__header {
    position: relative;
    z-index: 40;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px max(18px, calc((100vw - 1320px) / 2));
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--pcc-line);
    box-shadow: 0 7px 22px rgba(15, 32, 61, .055);
    backdrop-filter: blur(10px);
}

.pc-compare-modal__header > div {
    min-width: 0;
}

.pc-compare-modal__header strong,
.pc-compare-modal__header [data-pc-compare-modal-count] {
    display: block;
}

.pc-compare-modal__header strong {
    color: var(--pcc-navy);
    font-size: 22px;
    font-weight: 900;
}

.pc-compare-modal__header [data-pc-compare-modal-count] {
    margin-top: 2px;
    color: var(--pcc-muted);
    font-size: 12px;
}

.pc-compare-modal__back,
.pc-compare-modal__share {
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    color: var(--pcc-navy) !important;
    background: #fff !important;
    border: 1px solid var(--pcc-line) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.pc-compare-modal__back .dashicons,
.pc-compare-modal__share .dashicons {
    width: 22px;
    height: 22px;
    margin: 0;
    color: inherit;
    font-size: 22px;
    line-height: 22px;
}

.pc-compare-modal__body {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.pc-compare-modal .pc-compare-embed {
    min-height: 100%;
    padding: 14px 0 26px;
    background: #fff;
}

.pc-compare-modal .pc-compare-app {
    display: flex;
    width: min(1320px, calc(100% - 32px));
    flex-direction: column;
    margin: 0 auto;
}

.pc-compare-modal .pc-compare-content {
    order: 1;
}

.pc-compare-modal .pc-compare-notice,
.pc-compare-modal .pc-compare-loading {
    order: 0;
}

.pc-compare-modal .pc-compare-toolbar {
    position: sticky;
    bottom: 8px;
    z-index: 35;
    order: 3;
}

.pc-compare-modal .pc-compare-toolbar__copy {
    display: none;
}

.pc-compare-modal .pc-compare-difference-toggle {
    margin-left: auto;
}

/* Gallery dialog. */
.pc-compare-gallery {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 16px;
    background: rgba(11, 17, 27, .9);
    border: 0;
}

.pc-compare-gallery::backdrop {
    background: rgba(11, 17, 27, .9);
}

.pc-compare-gallery__panel {
    display: grid;
    width: min(1120px, calc(100vw - 32px));
    height: min(820px, calc(100vh - 32px));
    grid-template-rows: auto minmax(0, 1fr) auto;
    margin: auto;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
}

.pc-compare-gallery__panel > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--pcc-line);
}

.pc-compare-gallery__panel > header span {
    color: var(--pcc-muted);
    font-size: 11px;
}

.pc-compare-gallery__panel > header button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #566174;
    background: #f1f3f6;
    border: 0;
    border-radius: 50%;
    font-size: 23px;
}

.pc-compare-gallery__stage {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    min-height: 0;
    background: #f5f6f8;
}

.pc-compare-gallery__stage > div {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.pc-compare-gallery__stage img,
.pc-compare-gallery__stage video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pc-compare-gallery__stage > button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 54px;
    margin: auto;
    color: #fff;
    background: rgba(16, 33, 63, .78);
    border: 0;
    border-radius: 12px;
    font-size: 30px;
}

.pc-compare-gallery__thumbs {
    display: flex;
    gap: 7px;
    min-height: 82px;
    overflow-x: auto;
    padding: 8px 10px;
}

.pc-compare-gallery__thumbs button {
    position: relative;
    flex: 0 0 70px;
    width: 70px;
    height: 62px;
    padding: 3px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce2ea;
    border-radius: 8px;
}

.pc-compare-gallery__thumbs button.is-active {
    border-color: var(--pcc-orange);
    box-shadow: inset 0 0 0 1px var(--pcc-orange);
}

.pc-compare-gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Compact layout keeps labels fixed and lets only product columns move. */
@media (max-width: 900px) {
    :root {
        --pcc-label: 112px;
        --pcc-product: 216px;
        --pcc-grid: var(--pcc-label) repeat(2, var(--pcc-product));
    }

    .pc-compare-header,
    .pc-compare-app,
    .pc-compare-embed > .pc-compare-app,
    .pc-compare-modal .pc-compare-app {
        width: calc(100% - 18px);
    }

    .pc-compare-products,
    .pc-compare-feature-row,
    .pc-compare-feature-group,
    .pc-compare-start-message,
    .pc-compare-features {
        width: 544px;
        min-width: 544px;
    }

    .pc-compare-product-label {
        margin-left: 4px;
        padding: 12px 7px;
    }

    .pc-compare-product-label strong {
        font-size: 15px;
    }

    .pc-compare-product-label span {
        font-size: 12px;
    }

    .pc-compare-slot {
        min-height: 405px;
        margin: 0 4px;
        padding: 11px;
    }

    .pc-compare-empty-product {
        min-height: 376px;
        padding: 20px 10px;
    }

    .pc-compare-product-image {
        height: 152px;
    }

    .pc-compare-slot h2 {
        min-height: auto;
        font-size: 14px;
    }

    .pc-compare-price strong {
        font-size: 14px;
    }

    .pc-compare-inline-price span,
    .pc-compare-inline-price strong {
        white-space: normal;
    }

    .pc-compare-product-links {
        grid-template-columns: 1fr;
    }

    .pc-compare-feature-tabs {
        width: calc(100vw - 18px);
        max-width: calc(100vw - 18px);
        border-radius: 14px;
    }

    .pc-compare-feature-tab {
        min-height: 40px;
        padding: 7px 14px;
        font-size: 12px;
    }

    .pc-compare-feature-panels {
        border-radius: 14px;
    }

    .pc-compare-feature-label {
        position: sticky !important;
        right: 0 !important;
        inset-inline-end: 0 !important;
        z-index: 30;
        padding: 9px 7px;
        background: #fafbfd;
        font-size: 11px;
    }

    .pc-compare-feature-label::before {
        display: none;
    }

    .pc-compare-feature-value {
        padding: 9px 7px;
        font-size: 12px;
    }

    .pc-compare-toolbar {
        gap: 10px;
        min-height: 58px;
        padding: 9px 10px;
    }

    .pc-compare-difference-toggle,
    .pc-compare-clear-button {
        font-size: 11px;
    }

    .pc-compare-modal__header {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        min-height: 64px;
        padding: 8px 11px;
    }

    .pc-compare-modal__header strong {
        font-size: 18px;
    }

    .pc-compare-modal__back,
    .pc-compare-modal__share {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
    }

    .pc-compare-modal .pc-compare-embed {
        padding-top: 10px;
    }

    .pc-compare-modal .pc-compare-toolbar {
        bottom: 5px;
    }

    .pc-compare-gallery {
        padding: 8px;
    }

    .pc-compare-gallery__panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
    }

    .pc-compare-gallery__stage {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }
}

@media (max-width: 560px) {
    .pc-compare-modal__header {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .pc-compare-modal__header strong {
        font-size: 17px;
    }

    .pc-compare-modal__header [data-pc-compare-modal-count] {
        font-size: 11px;
    }

    .pc-compare-toolbar {
        flex-wrap: nowrap;
        border-radius: 14px;
    }

    .pc-compare-difference-toggle {
        white-space: normal;
    }

    .pc-compare-clear-button {
        flex: 0 0 auto;
        padding: 7px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-compare-page *,
    .pc-compare-page *::before,
    .pc-compare-page *::after,
    .pc-compare-embed *,
    .pc-compare-embed *::before,
    .pc-compare-embed *::after,
    .pc-compare-modal *,
    .pc-compare-modal *::before,
    .pc-compare-modal *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Sequential specification groups: tabs are intentionally removed. */
.pc-compare-products {
    grid-template-columns: repeat(4, var(--pcc-product));
    min-width: 920px;
    padding-right: var(--pcc-label);
}

.pc-compare-feature-panels {
    overflow: hidden;
}

.pc-compare-feature-group + .pc-compare-feature-group {
    border-top: 10px solid var(--pcc-soft);
}

.pc-compare-feature-group-title {
    position: sticky;
    right: 0;
    z-index: 22;
    display: flex;
    align-items: center;
    min-height: 48px;
    margin: 0;
    padding: 10px 16px;
    color: var(--pcc-navy);
    background: #fff;
    border-bottom: 1px solid var(--pcc-line);
    font-size: 14px;
    font-weight: 900;
}

.pc-compare-feature-group-title::before {
    content: "";
    width: 4px;
    height: 20px;
    margin-left: 9px;
    background: var(--pcc-red);
    border-radius: 999px;
}

@media (max-width: 900px) {
    :root {
        --pcc-product: 216px;
        --pcc-grid: repeat(2, var(--pcc-product));
    }

    .pc-compare-products,
    .pc-compare-feature-row,
    .pc-compare-feature-group,
    .pc-compare-start-message,
    .pc-compare-features {
        width: 432px;
        min-width: 432px;
    }

    .pc-compare-products {
        grid-template-columns: repeat(2, var(--pcc-product));
        padding-right: 0;
    }

    .pc-compare-feature-group-title {
        position: static;
        min-height: 44px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .pc-compare-feature-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pc-compare-feature-label {
        position: static !important;
        grid-column: 1 / -1;
        min-height: 34px;
        padding: 7px 11px;
        color: #697386;
        background: #fff;
        border-left: 0;
        border-bottom: 0;
        box-shadow: none;
        font-size: 11px;
        font-weight: 700;
    }

    .pc-compare-feature-value {
        min-height: 46px;
        padding: 9px 8px;
        background: #fafafa;
        border-top: 0;
        border-left: 1px solid #edf0f4;
        font-size: 12px;
    }

    .pc-compare-feature-value:last-child {
        border-left: 0;
    }

    .pc-compare-feature-row[data-pc-compare-same="0"] .pc-compare-feature-value:not(.is-empty) {
        margin: 4px;
        padding: 7px 6px;
    }
}
