/* Shared feedback for public-site actions. These rules do not change layout. */

html {
  scroll-behavior: smooth;
}

.public-main [id] {
  scroll-margin-top: 96px;
}

[data-live-filter-form][aria-busy="true"],
[data-live-product-filters][aria-busy="true"] {
  cursor: progress;
  opacity: .7;
  pointer-events: none;
}

[data-scroll-prev].is-disabled,
[data-scroll-next].is-disabled,
[data-post-prev].is-disabled,
[data-post-next].is-disabled {
  cursor: not-allowed;
  opacity: .36;
}

form[aria-busy="true"] button[type="submit"].is-submitting {
  position: relative;
  color: transparent;
  cursor: wait;
}

form[aria-busy="true"] button[type="submit"].is-submitting::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: #fff;
  animation: public-button-spin .65s linear infinite;
}

[data-compare-rfq][aria-busy="true"] {
  position: relative;
  pointer-events: none;
  color: transparent;
}

[data-compare-rfq][aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 15px;
  height: 15px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: #fff;
  animation: public-button-spin .65s linear infinite;
}

form.public-form .is-invalid {
  border-color: #d92d20 !important;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .12) !important;
}

.product-v30-main-image.is-changing img {
  animation: product-image-change .18s ease-out;
}

.public-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .34s ease-out var(--reveal-delay, 0ms), transform .34s ease-out var(--reveal-delay, 0ms);
}

.public-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.public-main details[open] > :not(summary) {
  animation: public-faq-open .2s ease-out;
}

.public-file-control.is-dragover {
  outline: 2px solid #1881ef;
  outline-offset: 3px;
}

.product-shortlist-notice {
  position: fixed;
  top: 136px;
  right: 24px;
  z-index: 1300;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(390px, calc(100vw - 32px));
  padding: 16px 16px 16px 18px;
  border: 1px solid #cfe0f4;
  border-left: 4px solid #147ef5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 35, 60, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}

.product-shortlist-notice.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.product-shortlist-notice strong,
.product-shortlist-notice span {
  display: block;
}

.product-shortlist-notice strong {
  color: #102a49;
  font-size: 14px;
}

.product-shortlist-notice span {
  margin-top: 4px;
  color: #5f7289;
  font-size: 13px;
  line-height: 1.5;
}

.product-shortlist-notice-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-shortlist-notice a {
  padding-top: 1px;
  color: #0b72e7;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.product-shortlist-notice button,
.product-compare-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d8e3ef;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.product-shortlist-notice button:hover,
.product-compare-remove:hover {
  border-color: #f3c5c1;
  background: #fff5f4;
  color: #b42318;
}

.product-compare-page {
  padding-bottom: 72px;
}

.product-compare-head {
  align-items: center;
  margin-bottom: 20px;
}

.product-compare-head h1 {
  font-size: 34px;
}

.product-compare-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #dbe8f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #5f7289;
  font-size: 13px;
}

.product-compare-status strong {
  color: #0b72e7;
  font-size: 13px;
}

.product-compare-wrap {
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 35, 60, .05);
}

.product-compare-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 150px;
}

.product-compare-table thead th:first-child {
  z-index: 4;
}

.product-compare-table thead th:not(:first-child) {
  min-width: 230px;
}

.product-compare-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.product-compare-table td.is-empty {
  color: #94a3b8;
}

.product-compare-product-head {
  position: relative;
  min-height: 48px;
  padding-right: 32px;
}

.product-compare-product-head small {
  margin-top: 6px !important;
}

.product-compare-remove {
  position: absolute;
  top: -3px;
  right: 0;
}

.product-compare-summary-row td {
  min-width: 230px;
  color: #435c7e;
  font-size: 14px;
  line-height: 1.55;
}

.product-compare-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e6edf5;
}

@keyframes public-button-spin {
  to { transform: rotate(360deg); }
}

@keyframes product-image-change {
  from { opacity: .45; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes public-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .public-reveal {
    opacity: 1;
    transform: none;
  }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 700px) {
  .product-shortlist-notice {
    top: auto;
    right: 16px;
    bottom: 16px;
  }

  .product-compare-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
