:root {
  --nb-rfq-ink: #1f2a24;
  --nb-rfq-muted: #686f69;
  --nb-rfq-accent: #5f771f;
  --nb-rfq-accent-hover: #536a1b;
  --nb-rfq-surface: var(--nb-action-surface, #f1f3eb);
  --nb-rfq-soft: var(--nb-action-soft, #e7ecdf);
  --nb-rfq-soft-hover: var(--nb-action-soft-hover, #dce4cf);
  --nb-rfq-soft-active: var(--nb-action-soft-active, #d3ddc3);
  --nb-rfq-soft-ink: var(--nb-action-ink, #43513a);
  --nb-rfq-panel: #fffdf8;
  --nb-rfq-image: #ffffff;
  --nb-rfq-danger: #a33a32;
  --nb-rfq-focus: #2f3f15;
  --nb-rfq-shadow: 0 18px 50px rgba(31, 42, 36, 0.16);
  --nb-rfq-layer-drawer: 2147483200;
}

.nb-inquiry-toggle,
.nb-product-card-inquiry {
  align-items: center;
  background: var(--nb-rfq-soft);
  border: 0;
  border-radius: 8px;
  color: var(--nb-rfq-soft-ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nb-inquiry-toggle:hover,
.nb-product-card-inquiry:hover {
  background: var(--nb-rfq-soft-hover);
  color: var(--nb-rfq-soft-ink);
  transform: translateY(-1px);
}

.nb-inquiry-toggle.is-active,
.nb-product-card-inquiry.is-active {
  background: var(--nb-rfq-soft-active);
  color: var(--nb-rfq-soft-ink);
}

.nb-inquiry-toggle:focus-visible,
.nb-product-card-inquiry:focus-visible,
.nb-rfq-basket-bar button:focus-visible,
.nb-rfq-basket-panel button:focus-visible,
.nb-rfq-context-summary a:focus-visible,
.nb-rfq-context-summary button:focus-visible {
  box-shadow: 0 0 0 6px var(--nb-rfq-focus);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.is-inquiry-selected .product-element-top {
  box-shadow: inset 0 0 0 3px var(--nb-rfq-accent);
}

.nb-rfq-basket-bar {
  align-items: center;
  background: transparent;
  bottom: max(16px, env(safe-area-inset-bottom));
  color: var(--nb-rfq-ink);
  display: none;
  left: 16px;
  max-width: calc(100vw - 128px);
  padding: 0;
  position: fixed;
  width: auto;
  z-index: 10020;
}

.nb-rfq-basket-bar.is-header-entry {
  position: static;
  flex: 0 0 auto;
  margin-left: 16px;
  max-width: none;
  z-index: auto;
}

.nb-rfq-basket-bar.has-items {
  display: flex;
}

.nb-rfq-basket-bar__count {
  font-size: 13px;
  font-weight: 600;
}

.nb-rfq-basket-bar__review,
.nb-rfq-basket-panel .nb-rfq-basket-panel__continue {
  background: var(--nb-rfq-accent);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 16px;
}

/* Keep the actual inquiry action strong under the theme's global button states. */
.nb-rfq-basket-panel .nb-rfq-basket-panel__continue {
  background: var(--nb-rfq-accent) !important;
  color: #fff !important;
}

.nb-rfq-basket-bar__review:hover,
.nb-rfq-basket-panel .nb-rfq-basket-panel__continue:hover {
  background: var(--nb-rfq-accent-hover) !important;
}

/* A small entry point, not a second permanent inquiry CTA. */
.nb-rfq-basket-bar .nb-rfq-basket-bar__review {
  background: var(--nb-rfq-soft) !important;
  border: 0 !important;
  border-radius: 999px;
  color: var(--nb-rfq-soft-ink) !important;
  min-height: 44px;
  padding: 10px 16px;
  box-shadow: none;
  text-transform: none;
  white-space: nowrap;
}

.nb-rfq-basket-bar.is-header-entry .nb-rfq-basket-bar__review {
  box-shadow: none;
}

.nb-rfq-basket-bar .nb-rfq-basket-bar__review:hover {
  background: var(--nb-rfq-soft-hover) !important;
  color: var(--nb-rfq-soft-ink) !important;
}

/* Product browsing keeps the selected list visible without the old wide CTA bar.
 * Homepage retains its light entry; the actual inquiry action stays in the panel. */
.nb-rfq-basket-bar.is-catalog-entry {
  background: #202c25;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(20, 27, 23, 0.16);
  box-sizing: border-box;
  color: #fff;
  gap: 12px;
  left: 50%;
  max-width: calc(100vw - 224px);
  padding: 6px 8px 6px 16px;
  transform: translateX(-50%);
  width: 360px;
}

.nb-rfq-basket-bar.is-catalog-entry .nb-rfq-basket-bar__count {
  flex: 1 1 auto;
  line-height: 16px;
  min-width: 0;
}

.nb-rfq-basket-bar.is-catalog-entry .nb-rfq-basket-bar__review {
  border-radius: 6px;
  flex: 0 0 auto;
  padding: 10px 12px;
}

@media (max-width: 767px) {
  .nb-rfq-basket-bar.is-catalog-entry {
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 16px;
    max-width: calc(100vw - 112px);
    width: 208px;
    padding: 2px 4px 2px 12px;
    gap: 6px;
    transform: none;
  }

  .nb-rfq-basket-bar.is-catalog-entry .nb-rfq-basket-bar__count {
    font-size: 12px;
    white-space: nowrap;
  }

  .nb-rfq-basket-bar.is-catalog-entry .nb-rfq-basket-bar__review {
    font-size: 12px;
    padding: 8px 10px;
  }
}

.nb-rfq-basket-panel[hidden] {
  display: none;
}

.nb-rfq-basket-panel {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: var(--nb-rfq-layer-drawer);
}

.nb-rfq-basket-panel .nb-rfq-basket-panel__overlay {
  appearance: none;
  background: rgba(21, 28, 23, 0.58) !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  inset: 0;
  margin: 0;
  height: 100% !important;
  min-height: 0 !important;
  min-width: 0;
  outline: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

.nb-rfq-basket-panel__overlay::before,
.nb-rfq-basket-panel__overlay::after {
  content: none !important;
  display: none !important;
}

.nb-rfq-basket-panel__dialog {
  background: var(--nb-rfq-panel);
  box-sizing: border-box;
  box-shadow: -18px 0 50px rgba(20, 27, 23, 0.2);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  margin-left: auto;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: min(480px, 100%);
}

.nb-rfq-basket-panel__header,
.nb-rfq-basket-panel__actions {
  align-items: center;
  background: var(--nb-rfq-panel);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  position: sticky;
  z-index: 2;
}

.nb-rfq-basket-panel__header {
  border-bottom: 1px solid rgba(104, 111, 105, 0.14);
  padding: 24px 28px 18px;
  top: 0;
}

.nb-rfq-basket-panel__header h2 {
  color: var(--nb-rfq-ink);
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.nb-rfq-basket-panel .nb-rfq-basket-panel__close,
.nb-rfq-basket-panel .nb-rfq-basket-panel__clear,
.nb-rfq-basket-panel .nb-rfq-basket-item__remove,
.nb-rfq-context-summary .nb-rfq-context-product__remove {
  background: var(--nb-rfq-soft) !important;
  border: 0;
  color: var(--nb-rfq-soft-ink) !important;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
  border-radius: 8px;
}

.nb-rfq-basket-panel .nb-rfq-basket-panel__close:hover,
.nb-rfq-basket-panel .nb-rfq-basket-panel__clear:hover,
.nb-rfq-basket-panel .nb-rfq-basket-item__remove:hover,
.nb-rfq-context-summary .nb-rfq-context-product__remove:hover {
  background: var(--nb-rfq-soft-hover) !important;
  color: var(--nb-rfq-soft-ink) !important;
}

.nb-rfq-basket-panel__items {
  align-content: start;
  display: grid;
  gap: 12px;
  margin: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 28px 24px;
  scrollbar-gutter: stable;
}

.nb-rfq-basket-item {
  align-items: center;
  background: var(--nb-rfq-surface);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding: 12px;
}

.nb-rfq-basket-item img {
  background: var(--nb-rfq-image);
  border-radius: 8px;
  height: 72px;
  object-fit: contain;
  width: 72px;
}

.nb-rfq-basket-item div,
.nb-rfq-context-product div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nb-rfq-basket-item strong,
.nb-rfq-basket-item span {
  display: block;
}

.nb-rfq-basket-item span {
  color: var(--nb-rfq-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-rfq-basket-panel__actions {
  border-top: 1px solid rgba(104, 111, 105, 0.18);
  bottom: 0;
  padding: 18px 28px max(18px, env(safe-area-inset-bottom));
}

.nb-rfq-basket-panel button:disabled,
.nb-rfq-basket-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

body.admin-bar .nb-rfq-basket-panel__dialog {
  height: calc(100dvh - 32px);
  top: 32px;
}

.nb-rfq-context-summary {
  background: var(--nb-rfq-surface);
  border-radius: 14px;
  color: var(--nb-rfq-ink);
  margin: 0 0 28px;
  padding: clamp(20px, 3vw, 30px);
}

.nb-rfq-context-summary[hidden] {
  display: none;
}

.nb-rfq-context-summary h2 {
  color: var(--nb-rfq-ink);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  margin: 0 0 18px;
}

.nb-rfq-context-summary__status {
  color: var(--nb-rfq-muted);
  margin: 0;
}

.nb-rfq-context-summary__status[role="alert"] {
  color: var(--nb-rfq-danger);
}

.nb-rfq-context-summary__products {
  display: grid;
  gap: 12px;
}

.nb-rfq-context-product {
  align-items: center;
  background: var(--nb-rfq-panel);
  border-radius: 10px;
  display: grid;
  gap: 16px;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  padding: 14px;
}

.nb-rfq-context-product img {
  background: var(--nb-rfq-image);
  border-radius: 8px;
  height: 96px;
  object-fit: contain;
  width: 96px;
}

.nb-rfq-context-product strong,
.nb-rfq-context-product span,
.nb-rfq-context-product a {
  display: block;
}

.nb-rfq-context-product span {
  color: var(--nb-rfq-muted);
  font-size: 13px;
}

.nb-rfq-context-product a,
.nb-rfq-context-summary__change {
  color: #53671f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.nb-rfq-context-summary__change {
  display: inline-block;
  margin-top: 18px;
}

.wpcf7 form[data-nb-rfq-context-ready="0"] {
  opacity: 0.84;
}

@media (max-width: 640px) {
  .nb-rfq-basket-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .nb-rfq-basket-item img {
    height: 58px;
    width: 58px;
  }

  .nb-rfq-context-product {
    align-items: start;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .nb-rfq-context-product img {
    height: 72px;
    width: 72px;
  }

  .nb-rfq-context-product__remove {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
  }
}

@media (min-width: 1024px) {
  .nb-rfq-basket-panel__overlay {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

@media (max-width: 1023px) {
  html.nb-rfq-basket-open {
    overflow: hidden;
  }

  .nb-rfq-basket-panel {
    pointer-events: auto;
  }

  .nb-rfq-basket-panel__overlay {
    pointer-events: auto;
  }
}

@media (max-width: 782px) {
  body.admin-bar .nb-rfq-basket-panel__dialog {
    height: calc(100dvh - 46px);
    top: 46px;
  }

  .nb-rfq-basket-panel__header {
    padding: 20px 16px 16px;
  }

  .nb-rfq-basket-panel__items {
    padding: 14px 16px 20px;
  }

  .nb-rfq-basket-panel__actions {
    padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-inquiry-toggle,
  .nb-product-card-inquiry {
    transition: none;
  }
}
.wpcf7.custom-backend-accepted .wpcf7-response-output {
	border-color: #6f862d;
	background: #f4f7eb;
	color: #24310f;
}

.nappa-contact-main .wpcf7-response-output.nappa-contact-success,
.nappa-contact-main .wpcf7-response-output.nb-rfq-success-enhanced,
.wpcf7.custom-backend-accepted .wpcf7-response-output {
	letter-spacing: normal !important;
	word-spacing: normal !important;
	font-kerning: normal;
	overflow-wrap: anywhere;
}

/* WoodMart puts its status glyph in the vertical center of the whole response.
 * The custom multi-line card has tighter padding, so that glyph overlaps copy.
 * Keep the confirmation mark with the heading instead. */
.nappa-contact-main .wpcf7-response-output.nappa-contact-success::before {
	content: none !important;
	display: none !important;
}

.nappa-contact-main .wpcf7-response-output.nappa-contact-success > strong {
	align-items: center !important;
	display: flex !important;
	gap: 8px !important;
}

.nappa-contact-main .wpcf7-response-output.nappa-contact-success > strong::before {
	align-items: center;
	background: var(--nb-rfq-accent);
	border-radius: 50%;
	color: #fff;
	content: "\2713";
	display: inline-flex;
	flex: 0 0 18px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 700;
	height: 18px;
	justify-content: center;
	line-height: 1;
	width: 18px;
}

.nappa-contact-main .wpcf7-response-output .nb-rfq-success-support a,
.wpcf7.custom-backend-accepted .wpcf7-response-output .nb-rfq-success-support a {
	color: #53671f;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.nappa-contact-main .wpcf7-response-output .nb-rfq-success-support a:is(:hover, :focus-visible),
.wpcf7.custom-backend-accepted .wpcf7-response-output .nb-rfq-success-support a:is(:hover, :focus-visible) {
	color: #34420f;
	text-decoration-thickness: 2px;
}

/* Local preview only: preserve old look when a saved selection has no image. */
.nb-rfq-basket-item:not(.nb-rfq-basket-item--has-image) { grid-template-columns: minmax(0, 1fr) auto; }
/* Local review only: retain the old panel's visual language; reclaim padding for content. */
.nb-rfq-basket-panel__header {
  padding: 18px 16px 14px;
}

.nb-rfq-basket-panel__items {
  gap: 10px;
  padding: 12px 16px 16px;
}

.nb-rfq-basket-item {
  gap: 10px;
  padding: 8px;
}

.nb-rfq-basket-item--has-image {
  grid-template-columns: 80px minmax(0, 1fr) auto;
}

.nb-rfq-basket-item img {
  width: 80px;
  height: 80px;
}

.nb-rfq-basket-panel__actions {
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
}

@media (max-width: 782px) {
  .nb-rfq-basket-panel__header {
    padding: 16px 12px 12px;
  }

  .nb-rfq-basket-panel__items {
    padding: 10px 12px 12px;
  }

  .nb-rfq-basket-panel__actions {
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .nb-rfq-basket-item--has-image {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .nb-rfq-basket-item img {
    width: 64px;
    height: 64px;
  }
}
