/* «قارن»: card / ad-page button, bottom tray, comparison table (compare.js, views/compare.xml) */
.sm .sm-cmp-toggle:not(#sm-x){display:inline-flex;align-items:center;justify-content:center;gap:5px;height:46px;min-height:46px;padding:0 12px!important;border:1px solid #cfd8e3!important;border-radius:12px!important;background:#fff!important;color:#13294b!important;font-size:13px;font-weight:800;box-shadow:none!important;cursor:pointer;white-space:nowrap;flex-shrink:0;transition:background .15s,border-color .15s,color .15s}
.sm .sm-cmp-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.sm .sm-cmp-toggle:not(#sm-x):hover{border-color:#f2702b!important;color:#c4531a!important}
.sm .sm-cmp-toggle.is-on:not(#sm-x){background:#fff1e8!important;border-color:#f2702b!important;color:#c4531a!important}
.sm .sm-cmp-toggle:focus-visible{outline:2px solid #f2702b;outline-offset:2px}
.sm .sm-detail-tools .sm-cmp-toggle:not(#sm-x){height:40px;min-height:40px;border-radius:999px!important}
@media(max-width:760px){
  .sm .sm-lc-actions .sm-cmp-toggle:not(#sm-x){height:36px;min-height:36px;padding:0 9px!important;border-radius:10px!important;font-size:12px}
  .sm .sm-lc-actions .sm-cmp-toggle svg{width:15px;height:15px}
}
/* grid view: the actions sit on the photo, icon only (view_toggle.css) */
.sm .sm-results.is-grid .sm-lc-actions .sm-cmp-toggle span{display:none}
.sm .sm-results.is-grid .sm-lc-actions .sm-cmp-toggle:not(#sm-x){width:36px;min-width:36px;height:36px;min-height:36px;padding:0!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;border-color:transparent!important;box-shadow:0 2px 8px rgba(3,32,74,.18)!important}
.sm .sm-results.is-grid .sm-lc-actions .sm-cmp-toggle.is-on:not(#sm-x){background:#f2702b!important;color:#fff!important}

/* tray */
.sm-cmp-tray{position:fixed;left:0;right:0;bottom:0;z-index:990;padding:10px 12px max(10px,env(safe-area-inset-bottom));background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-top:1px solid #e3e8f0;box-shadow:0 -8px 24px -12px rgba(3,32,74,.3);font-family:inherit}
.sm-cmp-tray[hidden]{display:none}
.sm-cmp-tray-in{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:12px;justify-content:space-between}
.sm-cmp-tray-items{display:flex;gap:8px;min-width:0}
.sm-cmp-chip{position:relative;width:54px;height:54px;flex:0 0 54px;border-radius:12px;overflow:visible;background:#f3f6fa;border:1px solid #dfe5ee}
.sm-cmp-chip.is-empty{border-style:dashed;background:transparent}
.sm-cmp-chip a{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:11px;overflow:hidden;color:#13294b;font-size:12px;font-weight:800;text-decoration:none}
.sm-cmp-chip img{width:100%;height:100%;object-fit:cover;display:block}
.sm-cmp-tray .sm-cmp-chip-x:not(#sm-x){position:absolute;top:-7px;inset-inline-end:-7px;width:22px;height:22px;min-height:0;padding:0!important;border-radius:50%!important;border:2px solid #fff!important;background:#13294b!important;color:#fff!important;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:none!important}
.sm-cmp-tray-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.sm-cmp-go{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 18px;border-radius:12px;background:#f2702b;color:#fff!important;font-weight:900;font-size:15px;text-decoration:none!important;white-space:nowrap}
.sm-cmp-go b{background:rgba(255,255,255,.25);border-radius:999px;padding:2px 8px;font-size:12px;direction:ltr}
.sm-cmp-go.is-disabled{background:#c9d2de;cursor:not-allowed}
.sm-cmp-tray .sm-cmp-clear:not(#sm-x){height:46px;min-height:0;padding:0 12px!important;border-radius:12px!important;border:1px solid #dfe5ee!important;background:#fff!important;color:#5b6b80!important;font-weight:800;box-shadow:none!important;cursor:pointer}
body.sm-cmp-has-tray .sm-footer{padding-bottom:90px}
@media(max-width:760px){
  .sm-cmp-tray{bottom:calc(62px + env(safe-area-inset-bottom));padding:8px 10px;border-radius:16px 16px 0 0}
  .sm-cmp-chip{width:44px;height:44px;flex-basis:44px}
  .sm-cmp-tray-items{gap:6px}
  .sm-cmp-go{height:42px;padding:0 12px;font-size:14px}
  .sm-cmp-tray .sm-cmp-clear:not(#sm-x){height:42px;padding:0 9px!important}
  body.sm-cmp-has-tray .sm-favorite-toast{bottom:160px}
  body.sm-cmp-has-tray .sm-footer{padding-bottom:150px}
}
@media(max-width:380px){.sm-cmp-chip{width:38px;height:38px;flex-basis:38px}}

/* comparison page */
.sm .sm-cmp-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 12px}
.sm .sm-cmp-diff{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:#13294b;cursor:pointer}
.sm .sm-cmp-diff input{width:20px;height:20px;accent-color:#f2702b}
.sm .sm-cmp-hint{color:#b45309;font-weight:700}
.sm .sm-cmp-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e3e8f0;border-radius:18px;background:#fff;box-shadow:0 1px 3px rgba(24,44,70,.05)}
.sm .sm-cmp-scroll:focus-visible{outline:2px solid #f2702b;outline-offset:2px}
.sm .sm-cmp-table{width:100%;min-width:calc(130px + var(--cmp-cols,2) * 170px);border-collapse:separate;border-spacing:0;table-layout:fixed}
.sm .sm-cmp-table th,.sm .sm-cmp-table td{padding:12px 14px;border-bottom:1px solid #eef2f6;text-align:start;vertical-align:top;font-size:14px;line-height:1.5;color:#13294b;overflow-wrap:anywhere}
.sm .sm-cmp-table tbody th{position:sticky;inset-inline-start:0;z-index:1;width:130px;background:#f7f9fc;color:#5b6b80;font-weight:800;font-size:13px}
.sm .sm-cmp-table thead th{background:#fff;vertical-align:bottom}
.sm .sm-cmp-corner{position:sticky;inset-inline-start:0;z-index:2;width:130px;background:#f7f9fc!important}
.sm .sm-cmp-ad{position:relative}
.sm .sm-cmp-photo{display:block;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#eef2f6;margin-bottom:8px}
.sm .sm-cmp-photo img{width:100%;height:100%;object-fit:cover;display:block}
.sm .sm-cmp-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:900;font-size:15px;color:#13294b;text-decoration:none}
.sm .sm-cmp-remove:not(#sm-x){position:absolute;top:18px;inset-inline-end:20px;z-index:1;width:32px;height:32px;min-height:0;padding:0!important;border-radius:50%!important;border:0!important;background:rgba(19,41,75,.78)!important;color:#fff!important;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:none!important}
.sm .sm-cmp-remove svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.sm .sm-cmp-price-row td strong{font-size:18px;font-weight:900;color:#13294b;direction:ltr;unicode-bidi:isolate}
.sm .sm-cmp-price-row td.is-best strong{color:#15803d}
.sm .sm-cmp-best{display:inline-block;margin-inline-start:6px;padding:2px 8px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:12px;font-weight:900}
.sm .sm-cmp-table tr.is-diff td{background:#fffaf5}
.sm .sm-cmp-none{color:#a3afbf}
.sm .sm-cmp-open{display:inline-flex;align-items:center;height:40px;padding:0 14px;border-radius:10px;background:#13294b;color:#fff!important;font-weight:800;text-decoration:none!important}
.sm .sm-cmp-page.is-diff-only tbody tr[data-differs="0"]{display:none}
@media(max-width:760px){
  .sm .sm-cmp-table{min-width:calc(96px + var(--cmp-cols,2) * 150px)}
  .sm .sm-cmp-table tbody th,.sm .sm-cmp-corner{width:96px}
  .sm .sm-cmp-table th,.sm .sm-cmp-table td{padding:10px;font-size:13px}
}
/* phones: no empty slots, the assistant button moves up above the tray */
@media(max-width:760px){
  .sm-cmp-chip.is-empty{display:none}
  .sm-cmp-tray-items{flex:1;overflow:hidden;padding-top:7px}
  .sm-cmp-tray-in{gap:8px}
}
body.sm-cmp-has-tray .sm .sm-ai:not(.is-open){transform:translateY(-74px);transition:transform .2s}
@media(min-width:761px){body.sm-cmp-has-tray .sm .sm-ai:not(.is-open){transform:translateY(-80px)}}
/* phones: the card button is icon only (the call / chat buttons keep their width) */
@media(max-width:760px){
  .sm .sm-lc-actions .sm-cmp-toggle span{display:none}
  .sm .sm-lc-actions .sm-cmp-toggle:not(#sm-x){width:36px;min-width:36px;padding:0!important}
  .sm .sm-lc-actions .sm-cmp-toggle.is-on:not(#sm-x){background:#f2702b!important;border-color:#f2702b!important;color:#fff!important}
}
.sm .sm-cmp-price-row td strong{direction:inherit}
