/* All component rules are scoped; no WooCommerce/theme-wide overrides. */
.gg-bundles {
  --gg-ink: #344750;
  --gg-muted: #65747b;
  --gg-primary: #184b5c;
  --gg-primary-dark: #123d4b;
  --gg-heading: #496a79;
  --gg-accent: #668ba4;
  --gg-bronze: #8a633c;
  --gg-line: #e6dfda;
  --gg-soft: #faf8f5;
  --gg-error: #913c41;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-block: 48px;
  color: var(--gg-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
  color-scheme: light;
}

.gg-bundles *,
.gg-bundles *::before,
.gg-bundles *::after {
  box-sizing: border-box;
}

.gg-bundles[hidden],
.gg-bundles [hidden] {
  display: none !important;
}

.gg-bundles > h2 {
  margin: 0 0 24px;
  color: var(--gg-heading);
  font-family: inherit;
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.gg-bundles > h2::before {
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 15px;
  background: var(--gg-bronze);
  content: "";
}

.gg-bundles .gg-bundles-content {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.gg-bundles .gg-bundles-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--gg-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 24px rgb(62 39 20 / 4%);
}

.gg-bundles .gg-bundles-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.gg-bundles .gg-bundles-card-title {
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
  color: var(--gg-heading);
  font-family: inherit;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.gg-bundles .gg-bundles-discount {
  display: inline-block;
  max-width: 100%;
  padding: 7px 13px;
  border: 1px solid #e8daca;
  border-radius: 100px;
  background: #fbf5ed;
  color: #79532f;
  font-size: 13px;
  font-weight: 600;
}

.gg-bundles .gg-bundles-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
  gap: 20px;
  min-width: 0;
}

.gg-bundles .gg-bundles-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gg-line);
  border-radius: 10px;
  background: #fff;
}

.gg-bundles .gg-bundles-image-link {
  display: grid;
  position: relative;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: clamp(220px, 24vw, 300px);
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  background: var(--gg-soft);
  color: var(--gg-muted);
  text-decoration: none;
}

.gg-bundles .gg-bundles-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 12px;
  border: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gg-bundles .gg-bundles-image-placeholder {
  padding: 24px;
  font-size: 13px;
  text-align: center;
}

.gg-bundles .gg-bundles-item-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
}

.gg-bundles .gg-bundles-item-title {
  margin: 0;
  color: var(--gg-ink);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.gg-bundles .gg-bundles-product-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

.gg-bundles .gg-bundles-product-link:hover {
  color: var(--gg-primary);
  text-decoration: underline;
}

.gg-bundles .gg-bundles-sku {
  margin: -6px 0 0;
  color: var(--gg-muted);
  font-size: 12px;
}

.gg-bundles .gg-bundles-item-live {
  margin-block: 2px 4px;
}

.gg-bundles .gg-bundles-item-price {
  color: var(--gg-ink);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gg-bundles .gg-bundles-item-price del {
  margin-right: 6px;
  color: var(--gg-muted);
  font-size: 13px;
  font-weight: 400;
}

.gg-bundles .gg-bundles-item-price ins {
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.gg-bundles .gg-bundles-stock {
  margin: 4px 0 0;
  color: var(--gg-muted);
  font-size: 12px;
  line-height: 1.5;
}

.gg-bundles .gg-bundles-stock--available {
  color: #41634b;
}

.gg-bundles .gg-bundles-stock--order {
  color: #80562d;
}

.gg-bundles .gg-bundles-stock--unavailable {
  color: var(--gg-error);
}

.gg-bundles .gg-bundles-attributes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: start;
  gap: 12px;
  min-width: 0;
  margin-top: auto;
}

.gg-bundles .gg-bundles-field {
  min-width: 160px;
}

.gg-bundles .gg-bundles-label {
  display: block;
  margin: 0 0 5px;
  color: var(--gg-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.gg-bundles .gg-bundles-select {
  display: block;
  width: 100%;
  min-width: 160px;
  max-width: 100%;
  min-height: 46px;
  height: auto;
  margin: 0;
  padding: 10px 30px 10px 12px;
  border: 1px solid #bdcbd2;
  border-radius: 6px;
  background-color: #fff;
  color: var(--gg-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  cursor: pointer;
}

.gg-bundles .gg-bundles-custom-order,
.gg-bundles .gg-bundles-help {
  display: block;
  margin: 0;
  color: var(--gg-primary);
  font-size: 12px;
  line-height: 1.6;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.gg-bundles .gg-bundles-custom-order:hover {
  color: var(--gg-primary-dark);
}

.gg-bundles .gg-bundles-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gg-line);
}

.gg-bundles .gg-bundles-totals {
  flex: 1 1 210px;
  min-width: 0;
}

.gg-bundles .gg-bundles-total-label {
  margin: 0 0 6px;
  color: var(--gg-muted);
  font-size: 13px;
}

.gg-bundles .gg-bundles-amounts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-variant-numeric: tabular-nums;
}

.gg-bundles .gg-bundles-original {
  color: var(--gg-muted);
  font-size: 16px;
}

.gg-bundles .gg-bundles-total {
  color: var(--gg-ink);
  font-size: clamp(25px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.gg-bundles .gg-bundles-savings {
  margin: 6px 0 0;
  color: var(--gg-bronze);
  font-size: 13px;
  font-weight: 500;
}

.gg-bundles .gg-bundles-action {
  flex: 0 1 340px;
  min-width: 0;
  max-width: 100%;
}

.gg-bundles .gg-bundles-buy,
.gg-bundles .gg-bundles-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  margin: 0;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--gg-primary);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.gg-bundles .gg-bundles-buy {
  width: 100%;
}

.gg-bundles .gg-bundles-buy:hover:not(:disabled) {
  background: var(--gg-primary-dark);
}

.gg-bundles .gg-bundles-buy:disabled {
  border-color: #dce4e8;
  background: #edf1f3;
  color: #63757e;
  cursor: not-allowed;
  opacity: 1;
}

.gg-bundles .gg-bundles-select:disabled {
  background-color: #f0f3f5;
  color: var(--gg-muted);
  cursor: wait;
  opacity: 1;
}

.gg-bundles .gg-bundles-buy-hint {
  margin: 9px 0 0;
  color: var(--gg-muted);
  font-size: 12px;
  line-height: 1.5;
}

.gg-bundles .gg-bundles-note {
  max-width: 900px;
  margin: 0;
  color: var(--gg-muted);
  font-size: 12px;
  line-height: 1.7;
}

.gg-bundles .gg-bundles-error {
  min-width: 0;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e8cccf;
  border-radius: 7px;
  background: #fff7f7;
  color: var(--gg-error);
  font-size: 14px;
}

.gg-bundles .gg-bundles-content > .gg-bundles-error {
  margin-top: 0;
}

.gg-bundles .gg-bundles-item-error {
  margin-top: 0;
  padding: 12px;
  font-size: 12px;
}

.gg-bundles .gg-bundles-error-text {
  margin: 0;
  color: inherit;
}

.gg-bundles .gg-bundles-retry {
  min-height: 44px;
  margin-top: 10px;
  padding: 9px 12px;
  border-color: #b4c6d0;
  background: #fff;
  color: var(--gg-primary-dark);
  font-size: 13px;
}

.gg-bundles .gg-bundles-retry:hover:not(:disabled) {
  border-color: var(--gg-primary);
  background: #f1f6f8;
}

.gg-bundles .gg-bundles-retry:disabled {
  cursor: wait;
  opacity: 0.6;
}

.gg-bundles .gg-bundles-loading {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--gg-line);
  border-radius: 12px;
  background: var(--gg-soft);
  color: var(--gg-muted);
}

.gg-bundles a:focus-visible,
.gg-bundles button:focus-visible,
.gg-bundles select:focus-visible {
  outline: 3px solid var(--gg-accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .gg-bundles {
    margin-block: 32px;
  }

  .gg-bundles > h2 {
    margin-bottom: 18px;
  }

  .gg-bundles .gg-bundles-card {
    padding: 16px;
    border-radius: 12px;
  }

  .gg-bundles .gg-bundles-card-header {
    gap: 10px;
    margin-bottom: 18px;
  }

  .gg-bundles .gg-bundles-card-title {
    font-size: 21px;
  }

  .gg-bundles .gg-bundles-items {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .gg-bundles .gg-bundles-item-body {
    padding: 16px;
  }

  .gg-bundles .gg-bundles-footer {
    gap: 18px;
    margin-top: 20px;
    padding-top: 20px;
  }

  .gg-bundles .gg-bundles-action {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gg-bundles .gg-bundles-buy,
  .gg-bundles .gg-bundles-retry {
    transition: none;
  }
}
