:root {
  --nfbt-green:        #3aaa35;
  --nfbt-green-hover:  #a6bc9b;
  --nfbt-button:       #B8CFAC;
  --nfbt-text:         #1a1a1a;
  --nfbt-text-light:   #666666;
  --nfbt-border:       #e8e8e8;
  --nfbt-bg:           #f7f7f7;
  --nfbt-badge-bg:     #f0f0f0;
  --nfbt-saving:       #e8392a;
  --nfbt-checkmark:    #3aaa35;
  --nfbt-radius:       6px;
}

.nfbt-wrapper {
  margin: 40px 0;
  padding: 30px;
  background: var(--nfbt-bg);
  border-radius: var(--nfbt-radius);
}

.nfbt-headline {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--nfbt-text);
}

.nfbt-products-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: nowrap;
}

.nfbt-product {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  background: #fff;
  border: 1px solid var(--nfbt-border);
  border-radius: var(--nfbt-radius);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.nfbt-plus {
  font-size: 1.4em;
  color: var(--nfbt-text-light);
  flex-shrink: 0;
}

.nfbt-badge {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 8px auto 0;
  background: var(--nfbt-badge-bg);
  border: 1px solid var(--nfbt-border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.72em;
  white-space: nowrap;
}

.nfbt-product-image {
  flex-shrink: 0;
  text-align: center;
}

.nfbt-product-image img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.nfbt-price-original {
  text-decoration: line-through;
  color: inherit;
  opacity: 0.65;
  font-size: 0.85em;
  display: block;
}

.nfbt-price-sale {
  color: var(--nfbt-button);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  display: block;
}

.nfbt-bundle-incomplete .nfbt-price-sale {
  color: var(--nfbt-button);
}

.nfbt-price-regular {
  color: inherit;
  font-weight: 600;
  display: block;
}

.nfbt-summary {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 16px;
}

.nfbt-summary-saving {
  color: var(--nfbt-saving);
  font-weight: 600;
}

.nfbt-summary-hint {
  display: inline-block;
  color: var(--nfbt-text-light);
  font-size: 0.85em;
  margin-top: 8px;
}

.nfbt-wrapper button.nfbt-add-to-cart-btn,
.nfbt-wrapper .nfbt-add-to-cart-btn {
  background: var(--nfbt-button) !important;
  background-color: var(--nfbt-button) !important;
  color: #fff !important;
  border: none !important;
  border-color: var(--nfbt-button) !important;
  border-radius: 30px;
  padding: 16px 36px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 220px;
  box-shadow: 0 8px 18px rgba(184, 207, 172, 0.32);
}

.nfbt-wrapper button.nfbt-add-to-cart-btn:hover,
.nfbt-wrapper .nfbt-add-to-cart-btn:hover {
  background: var(--nfbt-green-hover) !important;
  background-color: var(--nfbt-green-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(184, 207, 172, 0.42);
}

.nfbt-wrapper button.nfbt-add-to-cart-btn[disabled],
.nfbt-wrapper .nfbt-add-to-cart-btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 767px) {
  .nfbt-wrapper {
    padding: 20px 16px;
  }

  .nfbt-products-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nfbt-product {
    max-width: 100%;
    min-width: unset;
    padding: 14px;
  }

  .nfbt-plus {
    text-align: center;
    width: 100%;
    font-size: 1.1em;
    line-height: 1;
    margin: -2px 0;
  }

  .nfbt-product-image img {
    width: 88px;
    height: 88px;
  }

  .nfbt-price-sale {
    font-size: 20px;
  }

  .nfbt-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .nfbt-summary-saving {
    display: block;
    margin-top: 4px;
  }

  .nfbt-add-to-cart-btn {
    width: 100%;
    text-align: center;
  }
}

.nfbt-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.nfbt-checkbox-wrap input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.nfbt-checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--nfbt-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 4px;
  transition: all 0.15s ease;
  background: #fff;
}

.nfbt-checkbox-wrap input[type="checkbox"]:focus-visible + .nfbt-checkmark {
  outline: 2px solid var(--nfbt-checkmark);
  outline-offset: 2px;
}

.nfbt-checkbox-wrap input[type="checkbox"]:checked + .nfbt-checkmark {
  background: var(--nfbt-checkmark);
  border-color: var(--nfbt-checkmark);
}

.nfbt-checkbox-wrap input[type="checkbox"]:checked + .nfbt-checkmark::after {
  content: '';
  width: 5px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.nfbt-checkbox-wrap input[type="checkbox"]:disabled + .nfbt-checkmark {
  opacity: 0.8;
  cursor: default;
}

.nfbt-product-name {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  text-decoration: none;
}

a.nfbt-product-name:hover {
  text-decoration: underline;
}

.nfbt-add-to-cart-btn:focus-visible {
  outline: 2px solid var(--nfbt-green-hover);
  outline-offset: 2px;
}

.nfbt-wrapper [hidden] {
  display: none !important;
}
