/* Chavill backend-owned CSS chunk: 5f0a6dcee4e56afcb.css; version: 1.0.0-105db2c98093 */
/* Chavill CSS chunk 4: 5f0a6dcee4e56afcb.css */

/* Modern support chat. */
.support-start-form[hidden] {
  display: none;
}

.support-chat {
  display: grid;
  gap: 16px;
  overflow: hidden;
  border-color: #cfe8de;
  background: linear-gradient(145deg, #ffffff 0%, #f2fbf7 100%);
}

.support-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 20px;
  padding: 14px;
  background: #0a8062;
  color: #fff;
}

.support-chat-header .muted {
  margin: 5px 0 0;
  color: #d8f5eb;
}

.support-orb {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 6px #34d39933, 0 0 20px #34d399;
}

.support-chat-body {
  display: grid;
  max-height: 420px;
  overflow-y: auto;
  gap: 12px;
  padding: 8px;
  scroll-behavior: smooth;
}

.chat-message {
  width: min(78%, 560px);
  border-radius: 20px 20px 6px 20px;
  padding: 12px 14px;
  background: #e9f8f1;
  box-shadow: 0 10px 24px #0a806212;
}

.chat-message.from-admin {
  justify-self: end;
  border-radius: 20px 20px 20px 6px;
  background: #0a8062;
  color: #fff;
}

.chat-message small,
.chat-message time {
  display: block;
  opacity: .75;
  font-size: 12px;
}

.chat-message p {
  margin: 7px 0;
  line-height: 1.9;
}

.chat-attachment {
  display: inline-flex;
  margin: 4px 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: #ffffffcc;
  color: #0a8062;
  font-size: 13px;
}

.support-reply-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8ebe3;
  border-radius: 20px;
  padding: 8px;
  background: #fff;
}

.chat-file input {
  display: none;
}

.chat-file span,
.chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: #e8f4ef;
  color: #0a8062;
  cursor: pointer;
}

.chat-send {
  background: linear-gradient(135deg, #0a8062, #12a87e);
  color: #fff;
}

.chat-send svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-chat.is-closed {
  opacity: .82;
}

/* Cleaner account area, product actions, cart tabs, admin ticket chat and modal confirmations. */
.product-detail-grid .card:nth-child(2) {
  display: grid;
  gap: 14px;
  align-content: start;
}

.product-detail-grid #qty,
.product-detail-grid .btn {
  margin-top: 6px;
}

.cart-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-ticket-shell {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
  align-items: stretch;
}

.admin-ticket-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
}

.admin-ticket-list-item {
  border: 1px solid #e8f1ed;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  color: #1d3129;
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.admin-ticket-list-item.active,
.admin-ticket-list-item:hover {
  border-color: #0a8062;
  background: #e8f4ef;
  color: #0a8062;
}

.admin-ticket-list-item small {
  display: block;
  margin-top: 7px;
  color: #64736c;
}

.admin-ticket-detail {
  min-width: 0;
}

.chat-textarea {
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
}

.pretty-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #1d312966;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.pretty-confirm {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  border: 1px solid #ffe0e0;
  border-radius: 26px;
  padding: 28px;
  background: linear-gradient(145deg, #fff, #fff7f7);
  box-shadow: 0 30px 80px #1d312933;
  animation: confirmPop .18s ease-out;
}

.pretty-confirm h3,
.pretty-confirm p {
  margin: 0;
}

.pretty-confirm p {
  color: #64736c;
  line-height: 2;
}

.pretty-confirm-x {
  position: absolute;
  top: 14px;
  left: 14px;
  border: 0;
  background: transparent;
  color: #64736c;
  font-size: 28px;
  cursor: pointer;
}

@keyframes confirmPop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1024px) {
  .admin-ticket-shell {
    grid-template-columns: 1fr;
  }
}

/* Formal invoice, boxed order cards, and cleaner confirmation modal. */
.order-card {
  border: 1px solid #e0ebe6;
  border-radius: 18px;
  padding: 16px;
  background: #fbfdfc;
  box-shadow: 0 10px 24px #1238270a;
}

.order-card h3 {
  margin: 0 0 10px;
  color: #0a8062;
}

.invoice-card {
  display: grid;
  gap: 22px;
  border: 1px solid #cbd8d2;
  border-radius: 22px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 18px 55px #12382712;
}

.invoice-header,
.invoice-parties,
.invoice-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.invoice-header {
  border-bottom: 2px solid #0a8062;
  padding-bottom: 18px;
}

.invoice-header h1,
.invoice-header p,
.invoice-parties p,
.invoice-summary p,
.invoice-summary h2,
.invoice-footer p {
  margin: 0;
}

.invoice-parties > div,
.invoice-summary {
  border: 1px solid #e0ebe6;
  border-radius: 18px;
  padding: 16px;
  background: #fbfdfc;
}

.invoice-table th {
  background: #0a8062;
  color: #fff;
}

.invoice-table td,
.invoice-table th {
  border: 1px solid #e8f1ed;
}

.invoice-summary {
  justify-self: end;
  width: min(420px, 100%);
}

.invoice-summary p,
.invoice-summary h2 {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed #e8f1ed;
  padding: 10px 0;
}

.invoice-summary h2 {
  border: 0;
  color: #0a8062;
}

.invoice-footer {
  border-top: 1px solid #e8f1ed;
  padding-top: 16px;
}

@media print {
  .nav,
  .no-print,
  .footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .invoice-card {
    box-shadow: none;
  }
}

@media (max-width: 1024px) {
  .invoice-header,
  .invoice-parties,
  .invoice-footer {
    grid-template-columns: 1fr;
  }
}

/* Small polish pass for admin/user panels and support upload controls. */
.panel .side,
.panel #panel,
.panel #admin {
  transition: transform .18s ease, box-shadow .18s ease;
}
