.gbpc-button-wrap {
  box-sizing: border-box;
  display: flex;
  max-width: 100%;
  width: 100%;
}

.gbpc-button-wrap--left {
  justify-content: flex-start;
}

.gbpc-button-wrap--center {
  justify-content: center;
}

.gbpc-button-wrap--right {
  justify-content: flex-end;
}

.gbpc-icon-wrap {
  box-sizing: border-box;
  display: inline-flex;
  max-width: 100%;
}

.gbpc-toggle,
.gbpc-open,
.gbpc-clear,
.gbpc-modal__close,
.gbpc-product__remove {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  font: inherit;
}

.gbpc-toggle {
  align-items: center;
  background: #f5f6f7;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #252a2e;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  gap: 7px;
  justify-content: center;
  line-height: 1.2;
  min-height: 38px;
  padding: 8px 14px;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gbpc-toggle:hover,
.gbpc-toggle:focus-visible {
  background: #eceff1;
  border-color: #dfe3e6;
  color: #111518;
  outline: none;
}

.gbpc-toggle.is-active {
  background: #fff3e7;
  border-color: #ff8a16;
  color: #b44f00;
}

.gbpc-toggle__icon {
  fill: none;
  flex: 0 0 21px;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.gbpc-toggle__check {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.gbpc-toggle.is-active .gbpc-toggle__check {
  opacity: 1;
}

.gbpc-open {
  align-items: center;
  background: transparent;
  color: #343a3f;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  min-height: 46px;
  padding: 2px 7px;
  position: relative;
}

.gbpc-open:hover,
.gbpc-open:focus-visible {
  color: #ff7a00;
  outline: none;
}

.gbpc-open__graphic {
  display: inline-flex;
  position: relative;
}

.gbpc-open__graphic svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  width: 24px;
}

.gbpc-open__label {
  color: currentColor;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.gbpc-count {
  align-items: center;
  background: #ff7a00;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  padding: 0 3px;
  position: absolute;
  right: -10px;
  top: -8px;
}

.gbpc-count.is-empty {
  background: #879097;
}

body.gbpc-modal-open {
  overflow: hidden;
}

.gbpc-modal[hidden] {
  display: none !important;
}

.gbpc-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 100000;
}

.gbpc-modal__backdrop {
  background: rgba(20, 24, 27, 0.68);
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.2s ease;
}

.gbpc-modal.is-open .gbpc-modal__backdrop {
  opacity: 1;
}

.gbpc-modal__dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 920px);
  max-width: 1380px;
  opacity: 0;
  overflow: hidden;
  position: relative;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: min(96vw, 1380px);
  z-index: 1;
}

.gbpc-modal.is-open .gbpc-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gbpc-modal__header {
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 22px;
}

.gbpc-modal__title {
  color: #171b1e;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.2;
  margin: 0;
}

.gbpc-modal__close {
  align-items: center;
  background: #f3f4f5;
  border-radius: 50%;
  color: #252a2e;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 29px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  width: 38px;
}

.gbpc-modal__close:hover,
.gbpc-modal__close:focus-visible {
  background: #e6e9eb;
  outline: 2px solid #ff9c40;
  outline-offset: 2px;
}

.gbpc-modal__toolbar {
  align-items: center;
  background: #fafafa;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
  justify-content: flex-end;
  min-height: 54px;
  padding: 9px 22px;
}

.gbpc-differences {
  align-items: center;
  color: #43494e;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
  margin: 0;
}

.gbpc-differences input {
  accent-color: #ff7a00;
  height: 17px;
  margin: 0;
  width: 17px;
}

.gbpc-clear {
  background: transparent;
  color: #b24700;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 2px;
}

.gbpc-clear:hover,
.gbpc-clear:focus-visible {
  color: #e35c00;
  outline: none;
  text-decoration: underline;
}

.gbpc-clear:disabled {
  color: #9ca3a8;
  cursor: default;
  text-decoration: none;
}

.gbpc-modal__content {
  min-height: 240px;
  overflow: auto;
  overscroll-behavior: contain;
}

.gbpc-empty,
.gbpc-status {
  align-items: center;
  color: #636b71;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  gap: 15px;
  justify-content: center;
  min-height: 290px;
  padding: 36px 22px;
  text-align: center;
}

.gbpc-empty p {
  margin: 0;
}

.gbpc-empty__icon {
  fill: none;
  height: 68px;
  opacity: 0.5;
  stroke: #7a838a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  width: 68px;
}

.gbpc-status {
  flex-direction: row;
}

.gbpc-status--error {
  color: #ad2929;
}

.gbpc-spinner {
  animation: gbpc-spin 0.8s linear infinite;
  border: 3px solid #e4e7e9;
  border-radius: 50%;
  border-top-color: #ff7a00;
  height: 28px;
  width: 28px;
}

@keyframes gbpc-spin {
  to {
    transform: rotate(360deg);
  }
}

.gbpc-minimum-notice {
  background: #fff8e7;
  border-bottom: 1px solid #f3e1b7;
  color: #76520b;
  font-size: 14px;
  margin: 0;
  padding: 11px 22px;
  text-align: center;
}

.gbpc-table-scroll {
  max-width: 100%;
  min-height: 260px;
  overflow: auto;
}

.gbpc-table {
  border-collapse: separate;
  border-spacing: 0;
  color: #30363a;
  font-size: 14px;
  margin: 0;
  min-width: 100%;
  table-layout: fixed;
  width: max-content;
}

.gbpc-table th,
.gbpc-table td {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  border-right: 1px solid #eef0f2;
  box-sizing: border-box;
  min-width: 218px;
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
  width: 218px;
}

.gbpc-table th:first-child,
.gbpc-table td:first-child {
  left: 0;
  min-width: 185px;
  position: sticky;
  text-align: left;
  width: 185px;
  z-index: 3;
}

.gbpc-table thead th {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 4;
}

.gbpc-table thead th:first-child {
  background: #f7f8f9;
  color: #60686e;
  font-size: 13px;
  font-weight: 600;
  left: 0;
  z-index: 6;
}

.gbpc-table tbody th {
  background: #f7f8f9;
  color: #4c5358;
  font-weight: 600;
}

.gbpc-table__row:nth-child(even) td {
  background: #fcfcfd;
}

.gbpc-table__row[hidden] {
  display: none !important;
}

.gbpc-product {
  height: 260px;
  padding: 17px 20px 16px !important;
  position: sticky !important;
}

.gbpc-product__remove {
  align-items: center;
  background: #f2f4f5;
  border-radius: 50%;
  color: #4d555b;
  cursor: pointer;
  display: inline-flex;
  font-size: 21px;
  height: 29px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 9px;
  top: 9px;
  width: 29px;
  z-index: 1;
}

.gbpc-product__remove:hover,
.gbpc-product__remove:focus-visible {
  background: #ffe8e8;
  color: #a91f1f;
  outline: 2px solid #efb5b5;
  outline-offset: 1px;
}

.gbpc-product__link {
  align-items: center;
  color: #262c30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: flex-start;
  text-decoration: none !important;
}

.gbpc-product__link:hover .gbpc-product__name,
.gbpc-product__link:focus-visible .gbpc-product__name {
  color: #d85c00;
}

.gbpc-product__image,
.gbpc-product__no-image {
  background: #fff;
  display: block;
  height: 168px;
  max-width: 168px;
  object-fit: contain;
  width: 168px;
}

.gbpc-product__no-image {
  align-items: center;
  background: #f4f5f6;
  color: #8a9298;
  display: flex;
  font-size: 13px;
  justify-content: center;
}

.gbpc-product__name {
  display: -webkit-box;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  max-height: 3.8em;
  overflow: hidden;
  transition: color 0.16s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gbpc-toast {
  background: #252b2f;
  border-radius: 9px;
  bottom: 22px;
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 14px;
  left: 50%;
  max-width: min(92vw, 430px);
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 3;
}

.gbpc-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 767px) {
  .gbpc-modal {
    align-items: flex-end;
    padding: 0;
  }

  .gbpc-modal__dialog {
    border-radius: 14px 14px 0 0;
    max-height: 94vh;
    width: 100vw;
  }

  .gbpc-modal__header {
    padding: 14px 15px;
  }

  .gbpc-modal__toolbar {
    gap: 12px;
    justify-content: space-between;
    padding: 8px 15px;
  }

  .gbpc-table th,
  .gbpc-table td {
    min-width: 176px;
    padding: 12px;
    width: 176px;
  }

  .gbpc-table th:first-child,
  .gbpc-table td:first-child {
    min-width: 128px;
    width: 128px;
  }

  .gbpc-product {
    height: 222px;
  }

  .gbpc-product__image,
  .gbpc-product__no-image {
    height: 132px;
    max-width: 132px;
    width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gbpc-modal__backdrop,
  .gbpc-modal__dialog,
  .gbpc-toast,
  .gbpc-toggle__check {
    transition: none;
  }

  .gbpc-spinner {
    animation-duration: 1.8s;
  }
}
