/* Robotik Çözüm — karşılaştırma arayüzü son katman düzenlemeleri */

/* Kartlarda kompakt, ürün sayfasındaki eylem grubunda ise rahatça görünen seçim düğmesi. */
.rc-compare-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #cedaea;
  border-radius: 3px;
  background: #fff;
  color: #526985;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.rc-compare-button::before {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: currentColor;
  content: '+';
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.rc-compare-button:hover {
  border-color: #8ea9d3;
  background: #f5f8fe;
  color: #113892;
}

.rc-compare-button[aria-pressed='true'] {
  border-color: #b8cbed;
  background: #eaf1ff;
  color: #113892;
}

.rc-compare-button[aria-pressed='true']::before {
  content: '✓';
  font-size: 14px;
  font-weight: 800;
}

.rc-compare-button:focus-visible {
  outline: 3px solid rgba(17, 56, 146, .36);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px #fff;
}

/* Ürün sayfasında diğer ana eylemlerle eşleşen yükseklik ve okunabilir metin. */
.rc-product-actions .rc-compare-button {
  min-height: 48px;
  min-width: 130px;
  padding-inline: 15px;
  font-size: 12px;
}

.rc-product-actions .rc-compare-button:hover,
.rc-product-actions .rc-compare-button[aria-pressed='true'] {
  border-color: #b8cbed;
  background: #eaf1ff;
  color: #113892;
}

/* Seçim özeti içerik genişliğinde kalır; mevcut görünürlük/transform geçişlerine dokunulmaz. */
#rc-compare-tray {
  right: 0;
  left: 0;
  width: min(1120px, calc(100% - 36px));
  min-height: 76px;
  margin-inline: auto;
  padding: 14px 18px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(174, 200, 237, .28);
  border-radius: 9px;
  background: #10294e;
  color: #fff;
  box-shadow: 0 16px 42px rgba(9, 27, 55, .28);
  font-family: Manrope, 'DM Sans', Arial, sans-serif;
}

#rc-compare-tray .rc-tray-summary {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

#rc-compare-tray .rc-tray-summary strong {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

#rc-compare-tray .rc-tray-hint {
  color: #c4d3ea;
  font-size: 11px;
  line-height: 1.4;
}

#rc-compare-tray .rc-tray-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#rc-compare-tray .rc-tray-link,
#rc-compare-tray .rc-tray-clear {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-family: Manrope, 'DM Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

#rc-compare-tray .rc-tray-link {
  min-width: 130px;
  gap: 8px;
  padding-inline: 15px;
  border: 1px solid #113892;
  background: #113892;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

#rc-compare-tray .rc-tray-link:hover,
#rc-compare-tray .rc-tray-link:focus-visible {
  border-color: #2d58b0;
  background: #2049a4;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

#rc-compare-tray .rc-tray-link:focus-visible,
#rc-compare-tray .rc-tray-clear:focus-visible {
  outline: 3px solid #a9c5f4;
  outline-offset: 3px;
}

#rc-compare-tray .rc-tray-clear {
  padding-inline: 13px;
  border: 1px solid rgba(213, 229, 255, .5);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

#rc-compare-tray .rc-tray-clear:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

@media (min-width: 601px) {
  /* Ürün eylemlerinde alanı kullanırken katalog kartlarında düğmeyi kompakt tut. */
  .rc-product-actions .rc-compare-button {
    min-height: 48px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  #rc-compare-tray {
    width: calc(100% - 24px);
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 14px calc(13px + env(safe-area-inset-bottom, 0px));
  }

  #rc-compare-tray .rc-tray-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(80px, auto);
    gap: 8px;
  }

  #rc-compare-tray .rc-tray-link {
    min-width: 0;
  }

  #rc-compare-tray .rc-tray-link,
  #rc-compare-tray .rc-tray-clear {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  #rc-compare-tray {
    width: calc(100% - 16px);
    padding-inline: 11px;
  }

  #rc-compare-tray .rc-tray-hint {
    font-size: 10px;
  }
}
