.product-actions,
.product-detail-actions {
  display: grid;
  gap: 10px;
}

.btn-add-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: var(--white);
  cursor: pointer;
  font-family: var(--display-font);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(244, 123, 0, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-add-quote:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(244, 123, 0, 0.32);
}

.btn-add-quote:disabled,
.btn-add-quote[aria-disabled="true"] {
  background: #5f6670;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.78;
}

.btn-add-quote:disabled:hover,
.btn-add-quote[aria-disabled="true"]:hover {
  transform: none;
  filter: none;
}

.btn-add-quote svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: 0 0 auto;
}

.quote-secondary-action {
  background: #10263b;
}

.restock-action {
  background: #5f6670;
}

.quote-secondary-action:hover,
.quote-detail-secondary:hover {
  filter: brightness(1.08);
}

.product-detail-actions {
  max-width: 420px;
}

.detail-add-quote,
.quote-detail-secondary {
  min-height: 52px;
}

.quote-detail-secondary {
  background: #12b857;
}

.quote-floating {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0b2238, #07111d);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  transform-origin: right bottom;
}

.quote-floating span:not(.quote-floating-icon) {
  font-family: var(--display-font);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quote-floating-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--orange);
}

.quote-floating svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.quote-floating strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.85rem;
}

.quote-floating-attention {
  animation: quoteFloatingAttention 0.72s cubic-bezier(0.2, 0.85, 0.25, 1.15);
}

@keyframes quoteFloatingAttention {
  0% {
    transform: scale(1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  }
  35% {
    transform: scale(1.13);
    box-shadow:
      0 20px 44px rgba(0, 0, 0, 0.38),
      0 0 0 8px rgba(255, 122, 0, 0.18);
  }
  65% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-floating-attention {
    animation: none;
  }
}

.quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 10, 18, 0.68);
  backdrop-filter: blur(3px);
}

.quote-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(500px, calc(100vw - 22px));
  height: 100dvh;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(244, 123, 0, 0.12), transparent 32%),
    var(--navy);
  color: var(--white);
  box-shadow: -22px 0 48px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.quote-panel[hidden],
.quote-overlay[hidden],
.quote-toast[hidden] {
  display: none;
}

.quote-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.quote-panel-head h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quote-icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.quote-icon-btn svg {
  width: 20px;
  fill: currentColor;
}

.quote-commerce-note,
.quote-clarification,
.quote-summary p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.55;
}

.quote-empty {
  margin-top: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.quote-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.quote-items {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.quote-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.quote-item img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--white);
}

.quote-item-info {
  min-width: 0;
}

.quote-item-info h3 {
  margin: 0 0 5px;
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.3;
}

.quote-item-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.45;
}

.quote-item-price {
  margin-top: 8px;
  color: var(--orange-2);
  font-size: 0.86rem;
  font-weight: 700;
}

.quote-item-stock {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
}

.quote-item-stock.out {
  color: #ffb0b0;
}

.quote-item-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quote-qty-btn,
.quote-remove-btn {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
}

.quote-remove-btn {
  margin-left: auto;
  padding: 0 10px;
  color: #ffd1c7;
}

.quote-qty-value {
  min-width: 32px;
  color: var(--white);
  text-align: center;
  font-weight: 700;
}

.quote-summary {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.quote-total-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--white);
  font-weight: 700;
}

.quote-total-row strong {
  color: var(--orange-2);
}

.quote-client {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.quote-client label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.quote-client input,
.quote-client textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  outline: none;
}

.quote-client textarea {
  resize: vertical;
}

.quote-client input:focus,
.quote-client textarea:focus {
  border-color: var(--orange-2);
}

.quote-panel-actions {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10px;
  margin-top: 16px;
  padding-bottom: 4px;
}

.quote-clear-btn,
.quote-send-btn {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: var(--display-font);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quote-clear-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.quote-send-btn {
  background: #12b857;
  color: var(--white);
}

.quote-toast {
  position: fixed;
  right: 18px;
  bottom: 168px;
  z-index: 120;
  max-width: min(320px, calc(100vw - 36px));
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
  .quote-floating {
    right: 14px;
    bottom: 84px;
    min-height: 52px;
    max-width: calc(100vw - 28px);
    padding: 8px 10px;
  }

  .quote-floating span:not(.quote-floating-icon) {
    font-size: 0.82rem;
  }

  .quote-floating-icon {
    width: 30px;
    height: 30px;
  }

  .quote-panel {
    width: calc(100vw - 12px);
    padding: 16px;
  }

  .quote-panel-head h2 {
    font-size: 1.55rem;
  }

  .quote-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .quote-item img {
    width: 64px;
    height: 64px;
  }

  .quote-panel-actions {
    grid-template-columns: 1fr;
  }

  .quote-clear-btn,
  .quote-send-btn {
    width: 100%;
  }

  .quote-toast {
    right: 14px;
    bottom: 156px;
    max-width: min(280px, calc(100vw - 28px));
  }
}

/* Quote list stays dark and legible in every visual theme. */
.quote-floating {
  background: linear-gradient(135deg, #0b2238, #07111d);
  color: #ffffff;
}

.quote-panel {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--orange) 14%, transparent), transparent 32%),
    #071a2d;
  color: #ffffff;
}

.quote-panel-head h2,
.quote-total-row,
.quote-item-info h3,
.quote-qty-value {
  color: #ffffff;
}

.quote-commerce-note,
.quote-clarification,
.quote-summary p,
.quote-empty,
.quote-client label,
.quote-item-info p,
.quote-item-stock {
  color: rgba(255, 255, 255, 0.78);
}

.quote-client input,
.quote-client textarea {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.quote-client input::placeholder,
.quote-client textarea::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

body.theme-kawaii .quote-overlay {
  background: rgba(69, 35, 85, 0.28);
  backdrop-filter: blur(6px);
}

body.theme-kawaii .quote-floating {
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(135deg, #f464a8, #b88cff);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(194, 87, 164, 0.28);
}

body.theme-kawaii .quote-floating-icon,
body.theme-kawaii .quote-floating strong {
  border-radius: 999px;
  background: #ffffff;
  color: #f05da4;
}

body.theme-kawaii .quote-panel {
  width: min(520px, calc(100vw - 18px));
  border-left: 1px solid rgba(240, 93, 164, 0.2);
  border-radius: 28px 0 0 28px;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 2%, rgba(255, 216, 234, 0.95) 0 76px, transparent 77px),
    linear-gradient(180deg, #fff8fc, #fff0f8 52%, #f6f0ff);
  color: #21164e;
  box-shadow: -18px 0 48px rgba(115, 61, 124, 0.18);
}

body.theme-kawaii .quote-panel-head {
  border-bottom-color: rgba(240, 93, 164, 0.2);
}

body.theme-kawaii .quote-panel-head h2,
body.theme-kawaii .quote-total-row,
body.theme-kawaii .quote-item-info h3,
body.theme-kawaii .quote-qty-value {
  color: #21164e;
}

body.theme-kawaii .quote-panel-head h2 {
  font-family: inherit;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 900;
  text-transform: none;
}

body.theme-kawaii .quote-icon-btn {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #f05da4;
  box-shadow: 0 8px 18px rgba(115, 61, 124, 0.12);
}

body.theme-kawaii .quote-commerce-note,
body.theme-kawaii .quote-clarification,
body.theme-kawaii .quote-summary p,
body.theme-kawaii .quote-client label,
body.theme-kawaii .quote-item-info p,
body.theme-kawaii .quote-item-stock {
  color: #6b4777;
}

body.theme-kawaii .quote-empty {
  margin-top: 20px;
  border: 2px dashed rgba(240, 93, 164, 0.3);
  border-radius: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: #6b4777;
  text-align: center;
}

body.theme-kawaii .quote-item {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(240, 93, 164, 0.18);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(115, 61, 124, 0.08);
}

body.theme-kawaii .quote-item img {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  background: #ffe3f0;
}

body.theme-kawaii .quote-item-price,
body.theme-kawaii .quote-total-row strong {
  color: #f05da4;
}

body.theme-kawaii .quote-item-stock.out {
  color: #d34a7d;
}

body.theme-kawaii .quote-qty-btn,
body.theme-kawaii .quote-remove-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid rgba(240, 93, 164, 0.18);
  border-radius: 999px;
  background: #fff8fc;
  color: #5d2c91;
}

body.theme-kawaii .quote-remove-btn {
  border-radius: 999px;
  color: #d34a7d;
}

body.theme-kawaii .quote-summary {
  border-top-color: rgba(240, 93, 164, 0.18);
  border-bottom-color: rgba(240, 93, 164, 0.18);
}

body.theme-kawaii .quote-client input,
body.theme-kawaii .quote-client textarea {
  border: 1px solid rgba(240, 93, 164, 0.22);
  border-radius: 16px;
  background: #ffffff;
  color: #21164e;
}

body.theme-kawaii .quote-client input:focus,
body.theme-kawaii .quote-client textarea:focus {
  border-color: #f05da4;
  box-shadow: 0 0 0 4px rgba(240, 93, 164, 0.12);
}

body.theme-kawaii .quote-client input::placeholder,
body.theme-kawaii .quote-client textarea::placeholder {
  color: #a889ad;
}

body.theme-kawaii .quote-clear-btn,
body.theme-kawaii .quote-send-btn {
  border-radius: 999px;
  font-family: inherit;
  font-weight: 900;
  text-transform: none;
}

body.theme-kawaii .quote-clear-btn {
  background: #ffffff;
  color: #6b4777;
  border: 1px solid rgba(240, 93, 164, 0.18);
}

body.theme-kawaii .quote-send-btn {
  background: linear-gradient(135deg, #f05da4, #cdbbff);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(194, 87, 164, 0.22);
}

body.theme-kawaii .quote-toast {
  border-radius: 999px;
  background: #ffffff;
  color: #f05da4;
  box-shadow: 0 14px 34px rgba(115, 61, 124, 0.18);
}

body.theme-kawaii .product-detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  max-width: 560px;
}

body.theme-kawaii .detail-add-quote,
body.theme-kawaii .quote-detail-secondary {
  min-height: 58px;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 0 22px;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(115, 61, 124, 0.14);
}

body.theme-kawaii .detail-add-quote {
  background: #f05da4;
  color: #ffffff;
}

body.theme-kawaii .detail-add-quote svg,
body.theme-kawaii .quote-detail-secondary svg {
  flex: 0 0 auto;
}

body.theme-kawaii .quote-detail-secondary {
  background: #e9fff9;
  border-color: #78d9c8;
  color: #17493f;
}

body.theme-kawaii .restock-action {
  background: #fff4d7;
  border-color: #f1cf68;
  color: #5b4214;
}

body.theme-kawaii .detail-add-quote:hover,
body.theme-kawaii .detail-add-quote:focus-visible,
body.theme-kawaii .quote-detail-secondary:hover,
body.theme-kawaii .quote-detail-secondary:focus-visible {
  transform: translateY(-2px);
  filter: none;
  box-shadow: 0 20px 34px rgba(115, 61, 124, 0.2);
  outline: none;
}

body.theme-kawaii .detail-add-quote:focus-visible,
body.theme-kawaii .quote-detail-secondary:focus-visible {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 0 7px rgba(240, 93, 164, 0.36),
    0 20px 34px rgba(115, 61, 124, 0.2);
}

@media (max-width: 640px) {
  body.theme-kawaii .quote-panel {
    width: calc(100vw - 10px);
    border-radius: 22px 0 0 22px;
    padding: 18px;
  }

  body.theme-kawaii .quote-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  body.theme-kawaii .quote-item img {
    width: 68px;
    height: 68px;
  }

  body.theme-kawaii .product-detail-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: none;
  }

  body.theme-kawaii .detail-add-quote,
  body.theme-kawaii .quote-detail-secondary {
    width: 100%;
    min-height: 56px;
  }
}
