#upsell-modal {
  padding-right: 0 !important;
  padding-left: 0 !important;
  /* Clippy / vadi-ready (--vadi-z: 99999) mögé kerüljön a modal */
  z-index: 100001 !important;
}

body:has(#upsell-modal.show) .modal-backdrop,
body:has(#upsell-modal.in) .modal-backdrop {
  z-index: 100000 !important;
}

#upsell-modal .modal-header {
  border-bottom: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#upsell-modal #upsell-flow {
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  padding-left: 0.5rem !important; /* px-2 */
  padding-right: 0.5rem !important;
}

#upsell-modal #upsell-footer-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 1rem 0.75rem;
  box-sizing: border-box;
}

#upsell-modal #upsell-footer-actions > .upsell-footer-cart {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

#upsell-modal #upsell-cart-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
  width: auto;
  white-space: nowrap;
}

#upsell-modal #upsell-cart-btn {
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #ffffff;
  color: #33822b;
  border: 2px solid #33822b;
}

#upsell-modal #upsell-cart-btn.btn-primary {
  background-color: #33822b;
  color: #ffffff;
  border-color: #33822b;
}

@media screen and (max-width: 767px) {
  #upsell-modal #upsell-cart-btn {
    width: 100%;
    font-size: 1rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

#upsell-modal .upsell-modal-title {
  font-family: "HuntorHeading", sans-serif;
  font-size: 1.5rem;
  color: #252830;
}

#upsell-flow .upsellstep-btn {
  width: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #c2dac0;
  color: #2a6e24;
  text-align: left;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.04);
  font-size: 0.75rem;
  padding: 0.2rem;
  white-space: nowrap;
}

#upsell-flow .upsellstep-btn i {
  background: #ffffff9c;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  padding: 0;
}

#upsell-flow .upsellstep-btn span {
  flex: 0 0 auto;
  min-width: 0;
  font-size: 0.72rem;
  padding-right: 0.2rem;
}

#upsell-flow .upsellstep-btn.current {
  background-color: #eed40e;
  color: #252830;
}

#upsell-modal .form-switch.form-switch-md {
  margin-bottom: 1rem;
}

#upsell-modal .form-switch.form-switch-md .form-check-input {
  height: 1.5rem;
  width: calc(2rem + 0.75rem);
  border-radius: 3rem;
}

#upsell-modal .form-switch .form-check-input:checked {
  background-color: #c2dac0;
  border-color: #33822b;
}

.upsell-description {
  font-weight: 600;
  text-align: left;
  font-size: 0.8rem;
}

.upsell-price {
  font-weight: 400;
  text-align: right;
  font-size: 0.8rem;
}

.upsell-option-image {
  max-height: 48px;
  max-width: 48px;
  border-radius: 8px;
  background: #fff;
  aspect-ratio: 1;
  margin: 0px !important;
  padding: 0px !important;
}

#upsell-modal .upsell-option-row {
  padding: 0.35rem 0.15rem;
  margin-bottom: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e5e9 !important;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

#upsell-modal .upsell-option-row:last-child {
  border-bottom: 0 !important;
}

.upsell-option-available {
  background-color: transparent;
}

.upsell-option-added {
  background-color: #e8f3e6;
  border-radius: 0;
}

.upsell-add-btn {
  background-color: #33822b;
  border-color: #33822b;
  color: #ffffff;
}

.upsell-add-btn:hover,
.upsell-add-btn:focus {
  background-color: #2a6e24;
  border-color: #2a6e24;
  color: #ffffff;
}

.upsell-action {
  min-width: 90px;
}

#upsell-modal .upsell-locked-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5c675f;
  background: #e7ece8;
  border-radius: 999px;
  white-space: nowrap;
}

.upsell-remove-btn {
  background-color: #f6eceb;
  border-color: #f6eceb;
  color: #a85f5a;
}

.upsell-remove-btn:hover,
.upsell-remove-btn:focus {
  background-color: #efe0de;
  border-color: #efe0de;
  color: #8f4f4a;
}

#current-productgroup {
  border: 1px solid #eed40e;
  border-radius: 1rem;
  background: #fff8dd;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

#current-productgroup .current-productgroup-description,
#current-productgroup .current-productgroup-price,
#current-productgroup .current-productgroup-quantity {
  color: #252830;
}

#current-productgroup .current-productgroup-name {
  flex: 1 1 auto;
  min-width: 0;
}

#current-productgroup .current-productgroup-description {
  font-weight: 700;
}

.current-productgroup-row:last-child {
  margin-bottom: 0 !important;
}

.current-productgroup-image {
  max-height: 80px;
  max-width: 80px;
  border-radius: 8px;
  background: #fff;
}

.current-productgroup-description {
  font-weight: 600;
  text-align: left;
}

.current-productgroup-price {
  font-weight: 400;
  text-align: center;
}

.current-productgroup-quantity {
  font-weight: 400;
  min-width: 4rem;
  text-align: right;
  padding-right: 0.5rem;
}

#groupsummary {
  border: 1px solid #252830;
  border-radius: 1rem;
  background: #cccccc82;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

#upsell-modal .upsell-intro-text {
  font-size: 0.8rem;
  color: #5c675f;
  margin: 0;
  padding: 0.5rem 0.75rem 0;
}

.upsell-summary-row {
  padding: 0.75rem 0.5rem;
  width: 100%;
}

.upsell-summary-label {
  font-weight: 600;
}

.upsell-summary-amounts {
  gap: 1.5rem;
  margin-left: auto;
}

.upsell-summary-net {
  font-weight: 400;
  white-space: nowrap;
}

.upsell-summary-gross {
  font-weight: 400;
  white-space: nowrap;
  min-width: 6rem;
  text-align: right;
}


@media screen and (max-width: 767px) {
  .current-productgroup-image {
    max-height: 60px !important;
    max-width: 60px !important;
  }
  .upsell-summary-gross,
  .upsell-summary-net,
  .upsell-summary-label {
    font-size: 0.8rem;
  }
}
