/* SaloCart V5.0.2 — Seller deal cancellation controls
   Loaded last so it stays consistent with the mobile-stability layers. */

.seller-deal-cancel-icon {
  color: #b42318;
  border-color: rgba(180, 35, 24, .22);
  background: rgba(255, 241, 240, .88);
}
.seller-deal-cancel-icon:hover,
.seller-deal-cancel-icon:focus-visible {
  color: #fff;
  border-color: #b42318;
  background: #b42318;
}

.seller-deal-cancel-sheet .sheet-body { overflow-x: clip; }
.seller-deal-cancel-form { display: grid; gap: 1rem; }
.seller-cancel-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid rgba(180, 35, 24, .18);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 244, 242, .98), rgba(255, 250, 249, .94));
}
.seller-cancel-warning > span {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: .78rem;
  color: #b42318;
  background: rgba(180, 35, 24, .1);
  font-size: 1.12rem;
}
.seller-cancel-warning strong { display: block; color: #7a1d16; margin-bottom: .24rem; }
.seller-cancel-warning p { margin: 0; color: #6c3a36; line-height: 1.48; font-size: .9rem; }
.seller-cancel-note {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  color: var(--sc-muted, #5e6e66);
  font-size: .84rem;
  line-height: 1.45;
}
.seller-cancel-note i { color: #198754; margin-top: .1rem; }
.seller-cancel-actions {
  display: flex;
  gap: .7rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.seller-deal-cancel-button {
  --bs-btn-color: #fff;
  --bs-btn-bg: #b42318;
  --bs-btn-border-color: #b42318;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #8e1c13;
  --bs-btn-hover-border-color: #8e1c13;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #7a1810;
  --bs-btn-active-border-color: #7a1810;
  white-space: nowrap;
}
.cart-cancellation-notice {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0 0 .9rem;
  padding: .78rem .9rem;
  border-radius: .9rem;
  color: #0a5c3a;
  background: rgba(26, 135, 84, .1);
  border: 1px solid rgba(26, 135, 84, .16);
  font-size: .9rem;
  line-height: 1.42;
}
.cart-cancellation-notice i { margin-top: .06rem; }

@media (max-width: 575.98px) {
  .seller-deal-actions { gap: .45rem; }
  .seller-deal-cancel-icon { flex: 0 0 auto; }
  .seller-cancel-warning { padding: .85rem; gap: .65rem; }
  .seller-cancel-warning > span { width: 2.1rem; height: 2.1rem; }
  .seller-cancel-actions { display: grid; grid-template-columns: 1fr; }
  .seller-cancel-actions > * { width: 100%; min-height: 2.9rem; }
  .seller-deal-cancel-sheet .modal-sheet { max-height: min(88dvh, 46rem); }
}

@media (prefers-color-scheme: dark) {
  .seller-cancel-warning { background: rgba(112, 34, 27, .3); border-color: rgba(255, 126, 116, .25); }
  .seller-cancel-warning strong { color: #ffb4ad; }
  .seller-cancel-warning p { color: #ffd8d4; }
  .seller-deal-cancel-icon { color: #ffb4ad; background: rgba(255, 126, 116, .12); border-color: rgba(255, 180, 173, .25); }
}
