.wc-block-components-order-meta .gtb-bxgy-panel {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 18px;
  margin-top: 12px;
  margin-bottom: 24px;
  background: #fff;
}

.gtb-bxgy-panel--complete {
  border-color: rgba(0, 0, 0, 0.12);
}

.wc-block-components-order-meta .gtb-bxgy-header {
  margin-bottom: 14px;
}
.gtb-bxgy-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.gtb-bxgy-sub {
  font-size: 12px;
  opacity: 0.78;
  margin-top: 6px;
  line-height: 1.45;
}

.gtb-bxgy-error {
  margin: 10px 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 0, 0, 0.06);
  font-size: 12px;
}

.gtb-bxgy-section {
  margin-top: 20px;
}
.gtb-bxgy-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gtb-bxgy-section-title {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 10px;
}

.gtb-bxgy-muted {
  font-size: 12px;
  opacity: 0.7;
}
.gtb-bxgy-collapsed-hint {
  font-size: 12px;
  opacity: 0.7;
  padding-top: 2px;
}

.gtb-bxgy-linkbtn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.85;
}
.gtb-bxgy-linkbtn:hover {
  opacity: 1;
  text-decoration: underline;
}

.gtb-bxgy-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.gtb-bxgy-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.gtb-bxgy-badge--free {
  font-weight: 800;
}
.gtb-bxgy-qty {
  font-size: 11px;
  opacity: 0.8;
}

.gtb-bxgy-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.gtb-bxgy-selected {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gtb-bxgy-selected-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid;
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}
.gtb-bxgy-selected-row .gtb-bxgy-btn {
  padding: 9px 14px;
}
.gtb-bxgy-selected-row .gtb-bxgy-badge--free {
  background-color: rgba(180, 140, 40, 0.1);
  color: #7a5a12; /* dark gold-brown text */
  border: 1px solid rgba(180, 140, 40, 0.35);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px; /* pill */
  text-transform: uppercase;
}
.gtb-bxgy-selected-left {
  min-width: 0;
}

/* Progress block */
.gtb-bxgy-progress {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.012);
}
.gtb-bxgy-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.gtb-bxgy-progress-label {
  font-size: 12px;
  font-weight: 800;
}
.gtb-bxgy-progress-meta {
  font-size: 12px;
  opacity: 0.75;
  font-weight: 700;
}
.gtb-bxgy-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}
.gtb-bxgy-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 40%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: gtb-bxgy-shimmer 3s infinite;
  pointer-events: none;
}

@keyframes gtb-bxgy-shimmer {
  0% {
    transform: translateX(-100%);
  }
  40% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.gtb-bxgy-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #b38a2e;
  width: 0%;
  transition: width 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: width;
}
.gtb-bxgy-panel--complete .gtb-bxgy-progress-fill {
  animation: gtb-bxgy-pulse 900ms ease-out 1;
  background: linear-gradient(90deg, #b38a2e 0%, #d6b35c 100%);
}

@keyframes gtb-bxgy-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.gtb-bxgy-tierline {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.35;
}

/* Gift pool grid cards */
.gtb-bxgy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .gtb-bxgy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .wc-block-components-order-meta .gtb-bxgy-btn {
    padding: 12px 14px;
    font-size: 13px;
  }

  .wc-block-components-order-meta .gtb-bxgy-card {
    padding: 14px;
  }
  .wc-block-components-order-meta .gtb-bxgy-panel {
    padding: 16px;
  }
}

.gtb-bxgy-card {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gtb-bxgy-card::before {
  border-left: 3px solid rgba(0, 0, 0, 0.12);
}
.gtb-bxgy-card.is-disabled {
  opacity: 0.75;
  background: rgba(0, 0, 0, 0.02);
}

.gtb-bxgy-card-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.gtb-bxgy-card-price {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
}
@media (hover: hover) {
  .gtb-bxgy-card:not(.is-disabled):hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    transition: box-shadow 200ms ease, transform 200ms ease;
  }
}
.gtb-bxgy-strike span,
.gtb-bxgy-strike bdi {
  text-decoration: line-through;
  opacity: 0.7;
}

.gtb-bxgy-btn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.gtb-bxgy-btn:disabled {
  background: #f3efe7;
  color: #8a7a5a;
  border: 1px solid #e2dac8;
  opacity: 1;
}
.gtb-bxgy-btn-primary {
  background: rgba(180, 140, 40, 0.12); /* gold tint */
  color: #7a5a12; /* muted gold-brown text */
  border: 1px solid rgba(180, 140, 40, 0.35);
  font-weight: 800;
}
.gtb-bxgy-btn-primary:not(:disabled):hover {
  background: rgba(180, 140, 40, 0.18);
  border-color: rgba(180, 140, 40, 0.45);
}
.gtb-bxgy-btn-secondary {
  background: #fff;
  color: #111;
}

/* Disable quantity control for gift items in Blocks cart */
.gtb-bxgy-gift-item .wc-block-components-quantity-selector,
.gtb-bxgy-gift-item .wc-block-components-quantity-selector__input-wrapper,
.gtb-bxgy-gift-item .wc-block-components-quantity-selector__button,
.gtb-bxgy-gift-item input.wc-block-components-quantity-selector__input {
  pointer-events: none !important;
  opacity: 0.5 !important;
}

.gtb-bxgy-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gtb-bxgy-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  flex: 0 0 auto;
  overflow: hidden;
}

.gtb-bxgy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.woocommerce-checkout .wc-block-components-totals-wrapper .gtb-bxgy-panel {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  background: transparent;
}
