/* Coluna direita da página de detalhe da oferta (`components/offer/_offer_aside.twig`).

   Antes vivia numa <style> inline dentro do macro. Agora é CSS de verdade,
   carregado uma vez, com fingerprint de conteúdo no nome do arquivo.

   O prefixo `auati-` substitui o namespace `ad-`, cujas classes de coluna e de
   botão eram regras exatas de EasyList e AdGuard Base (listas padrão de uBO,
   ABP, AdGuard e Brave). A da coluna escondia vendedor, selos, CTA e dica de uma
   vez; a do botão escondia a ação principal isoladamente.

   Os três blocos (vendedor, ação e dica) são irmãos independentes, não filhos de
   um container único — assim uma regra futura que atinja um deles não leva os
   outros junto (§9.3 do relatório). */

.auati-offer-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.auati-offer-aside__savings {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.auati-offer-aside__savings-label {
  font-size: 13px;
  color: #6b7280;
}

.auati-offer-aside__savings-amount {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
}

.auati-offer-aside__seller {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #f1f1f5;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.04);
}

.auati-offer-aside__seller-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #f4f5f7;
}

.auati-offer-aside__seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auati-offer-aside__seller-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.auati-offer-aside__seller-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  text-decoration: none;
}

.auati-offer-aside__seller-name:hover {
  color: #39258d;
  text-decoration: none;
}

.auati-offer-aside__seller-since {
  font-size: 12px;
  color: #6b7280;
}

.auati-offer-aside__trust {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.auati-offer-aside__trust-badge {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.auati-exchange-action-region {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auati-exchange-start {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
  min-height: 52px;
  width: 100%;
}

.auati-exchange-start--primary {
  background: #f4cc28;
  color: #1f2937;
  box-shadow: 0 4px 12px rgba(244, 204, 40, 0.32);
}

.auati-exchange-start--primary:hover:not(:disabled) {
  background: #ffd735;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 204, 40, 0.42);
  color: #1f2937;
  text-decoration: none;
}

.auati-exchange-start--active {
  background: #f4cc28;
  color: #1f2937;
}

.auati-exchange-start--active:hover {
  background: #ffd735;
  color: #1f2937;
  text-decoration: none;
}

.auati-exchange-start--sent,
.auati-exchange-start--disabled {
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
}

.auati-exchange-start--sent {
  font-size: 14px;
}

.auati-exchange-start:disabled {
  opacity: 1;
}

.auati-exchange-start:focus-visible {
  outline: 2px solid #39258d;
  outline-offset: 2px;
}

.auati-offer-aside__helper {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  padding: 0 4px;
  line-height: 1.4;
}

.auati-offer-aside__helper i {
  margin-right: 4px;
}

.auati-offer-aside__tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: #f1ebfe;
  border-radius: 12px;
}

.auati-offer-aside__tip-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c2ee5;
  font-size: 18px;
}

.auati-offer-aside__tip-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.auati-offer-aside__tip-title {
  font-size: 13px;
  font-weight: 700;
  color: #5c2ee5;
}

.auati-offer-aside__tip-text {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
}

.auati-offer-aside__tip-link {
  font-size: 13px;
  color: #5c2ee5;
  text-decoration: underline;
  font-weight: 600;
  align-self: flex-start;
}

.auati-offer-aside__tip-link:hover {
  color: #391b9c;
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .auati-offer-aside__savings {
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auati-exchange-start {
    transition: none;
  }

  .auati-exchange-start--primary:hover:not(:disabled) {
    transform: none;
  }
}
