/* NEGOTIATE MODAL */
#negotiate-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#negotiate-modal.open {
  display: flex;
}

.negotiate-panel {
  background: #111;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.negotiate-top {
  padding: 20px 24px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.negotiate-top h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
}

.negotiate-top p {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}

.close-btn:hover {
  color: var(--white);
}

.neg-product {
  padding: 14px 24px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0d0d0d;
}

.neg-product-img {
  width: 44px;
  height: 52px;
  background: #1a1a1a;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.neg-product-info h4 {
  font-size: 13px;
  font-weight: 500;
}

.neg-product-info p {
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
}

.neg-price {
  margin-left: auto;
  text-align: right;
}

.neg-price .mrp {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
}

.neg-price .label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* TIMER */
.neg-timer-row {
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid var(--border);
}

.neg-timer-row span {
  font-size: 11px;
  color: var(--gray);
  font-family: var(--font-mono);
}

#neg-timer-txt {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--white);
}

.timer-track {
  height: 2px;
  background: #222;
  margin: 0;
  overflow: hidden;
}

#neg-timer-bar {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transition: width 1s linear;
}

/* CHAT */
#neg-chat {
  height: 240px;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#neg-chat::-webkit-scrollbar {
  width: 3px;
}

#neg-chat::-webkit-scrollbar-thumb {
  background: #333;
}

.n-msg {
  display: flex;
  flex-direction: column;
}

.n-msg.ai {
  align-items: flex-start;
}

.n-msg.user {
  align-items: flex-end;
}

.n-bubble {
  max-width: 85%;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.55;
  border-radius: 2px 10px 10px 10px;
}

.n-bubble.ai {
  background: #1c1c1c;
  color: var(--white);
  border: 0.5px solid #2a2a2a;
}

.n-bubble.user {
  background: var(--accent);
  color: var(--black);
  border-radius: 10px 2px 10px 10px;
}

.n-meta {
  font-size: 10px;
  color: var(--gray);
  margin-top: 3px;
  font-family: var(--font-mono);
}

.neg-input-row {
  padding: 14px 24px;
  border-top: 0.5px solid var(--border);
  display: flex;
  gap: 8px;
}

#neg-input {
  flex: 1;
  background: #1a1a1a;
  border: 0.5px solid #2a2a2a;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 2px;
  outline: none;
}

#neg-input:focus {
  border-color: #444;
}

#neg-input::placeholder {
  color: #555;
}

#neg-send {
  background: var(--accent);
  color: var(--black);
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity .2s;
}

#neg-send:hover {
  opacity: .85;
}

/* DEAL DONE */
#neg-deal {
  display: none;
  padding: 28px 24px;
  text-align: center;
}

.deal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#neg-deal h3 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

#neg-deal p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
}

.deal-savings {
  background: #0d1a00;
  border: 0.5px solid var(--accent);
  padding: 12px 20px;
  margin-bottom: 20px;
}

.deal-savings p {
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
}

#neg-confirm-btn {
  width: 100%;
  background: var(--accent);
  color: var(--black);
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px;
  cursor: pointer;
}
