.cb-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.5);
  display: none;
  z-index: 10000;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  touch-action: pan-y;
}
.cb-drawer {
  touch-action: pan-y;
}
.cb-drawer-overlay--open {
  display: block;
}
.cb-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.cb-drawer-overlay--open .cb-drawer {
  transform: translateX(0);
}

.cb-drawer-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem 2rem 2.4rem;
}

.cb-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.cb-cart-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #121212;
  margin: 0;
}
.cb-drawer-close {
  background: none;
  border: none;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0.2rem;
}
.cb-drawer-close:hover {
  color: #121212;
}

.cb-reserved-banner {
  background: #eaa007;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 0.9rem 1rem;
  margin: 0 -2rem 1.6rem;
}

.cb-cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}
.cb-cart-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.cb-cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f3f3f3;
}
.cb-cart-item-info {
  flex: 1;
  min-width: 0;
}
.cb-cart-item-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #121212;
  margin-bottom: 0.2rem;
}
.cb-cart-item-variant {
  font-size: 1.25rem;
  color: #888;
  margin-bottom: 0.8rem;
}
.cb-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.cb-qty-btn {
  width: 30px;
  height: 30px;
  background: #f7f7f7;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #121212;
  line-height: 1;
}
.cb-qty-btn:hover:not(:disabled) {
  background: #eee;
}
.cb-qty-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}
.cb-qty-value {
  width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 1.4rem;
}
.cb-remove-shipping-protection {
  background: none;
  border: none;
  color: #888;
  font-size: 1.25rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.cb-remove-shipping-protection:hover {
  color: #b91c1c;
}

.cb-cart-item-price {
  text-align: right;
  flex-shrink: 0;
  font-size: 1.4rem;
}
.cb-price-compare {
  display: block;
  color: #999;
  text-decoration: line-through;
  font-size: 1.2rem;
}
.cb-price-current {
  display: block;
  font-weight: 700;
  color: #eaa007;
  font-size: 1.6rem;
}
.cb-price-save {
  font-size: 1.1rem;
  color: #555;
  white-space: nowrap;
}

.cb-cart-summary {
  border-top: 1px solid #eee;
  padding-top: 1.4rem;
  margin-bottom: 1.6rem;
}
.cb-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.cb-summary-savings {
  color: #eaa007;
  font-weight: 600;
}
.cb-summary-subtotal {
  font-weight: 700;
  font-size: 1.7rem;
  color: #121212;
}

.cb-payment-icons {
  text-align: center;
  color: #888;
  font-size: 1.2rem;
  margin-top: 1.4rem;
}

.cb-checkout-submit {
  margin-top: 0.6rem;
  padding: 1.3rem;
  background: #eaa007;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cb-checkout-submit:hover {
  background: #d68a00;
}
.cb-checkout-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cb-back-link {
  background: none;
  border: none;
  color: #eaa007;
  font-weight: 600;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.6rem;
  text-align: left;
}
.cb-back-link:hover {
  text-decoration: underline;
}

.cb-checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fdf3e0;
  border: 1px solid #eaa007;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
  font-size: 1.4rem;
}
.cb-checkout-summary strong {
  color: #eaa007;
  font-size: 1.6rem;
}
.cb-checkout-error {
  background: #fde8e8;
  color: #b91c1c;
  border: 1px solid #f3b4b4;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem;
  font-size: 1.35rem;
}
.cb-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.cb-checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #333;
}
.cb-checkout-form input,
.cb-checkout-form select {
  padding: 1.1rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px; /* fixo (nao rem): abaixo de 16px o Safari iOS da zoom automatico ao focar o campo */
  font-family: inherit;
  width: 100%;
}
.cb-checkout-form input:focus,
.cb-checkout-form select:focus {
  outline: none;
  border-color: #eaa007;
}
.cb-form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
}

.cb-address-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #121212;
  text-align: center;
  margin-bottom: 0.3rem;
}
.cb-address-subtitle {
  font-size: 1.25rem;
  color: #888;
  text-align: center;
  margin-bottom: 1.6rem;
}

.cb-input-with-check {
  position: relative;
}
.cb-input-with-check input,
.cb-input-with-check select {
  padding-right: 3.6rem;
}
.cb-input-spinner {
  display: none;
  position: absolute;
  top: 50%;
  right: 1.2rem;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(234, 160, 7, 0.25);
  border-top-color: #eaa007;
  border-radius: 50%;
  animation: cb-spin 0.7s linear infinite;
}
.cb-input-with-check--loading .cb-input-spinner {
  display: block;
}
.cb-input-with-check--loading .cb-input-check {
  display: none;
}
.cb-input-check {
  display: none;
  position: absolute;
  top: 50%;
  right: 1.2rem;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 1.2rem;
  line-height: 20px;
  text-align: center;
}
.cb-input-with-check--valid input,
.cb-input-with-check--valid select {
  border-color: #2e7d32;
}
.cb-input-with-check--valid .cb-input-check {
  display: block;
}

.cb-delivery-estimate {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fdf3e0;
  border: 1px solid #eaa007;
  border-radius: 8px;
  font-size: 1.3rem;
  color: #333;
  opacity: 0;
  max-height: 0;
  padding: 0 1.2rem;
  margin-top: 0;
  border-width: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, max-height 0.35s ease, padding 0.35s ease,
    margin-top 0.35s ease, transform 0.35s ease, border-width 0.35s ease;
}
.cb-delivery-estimate--visible {
  opacity: 1;
  max-height: 100px;
  padding: 1.1rem 1.2rem;
  margin-top: 0.2rem;
  border-width: 1px;
  transform: translateY(0);
}
.cb-delivery-estimate-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.cb-delivery-estimate strong {
  font-size: 1.35rem;
  color: #121212;
}
.cb-checkout-secure {
  text-align: center;
  color: #888;
  font-size: 1.2rem;
  margin-top: 1.4rem;
}
.cb-pix-amount {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: #eaa007;
  margin-bottom: 1.4rem;
}
.cb-pix-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 1.4rem;
  border: 1px solid #eee;
  border-radius: 8px;
}
.cb-pix-instructions {
  text-align: center;
  font-size: 1.35rem;
  color: #555;
  margin-bottom: 1rem;
}
.cb-pix-copy-wrapper {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.cb-pix-code {
  flex: 1;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.2rem;
  color: #555;
  min-width: 0;
}
.cb-pix-copy-btn {
  padding: 1rem 1.4rem;
  background: #121212;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cb-pix-copy-btn:hover {
  background: #333;
}
.cb-pix-status {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.6rem;
}
.cb-pix-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #eaa007;
  border-top-color: transparent;
  border-radius: 50%;
  animation: cb-spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}
@keyframes cb-spin {
  to { transform: rotate(360deg); }
}
.cb-pix-expires {
  text-align: center;
  font-size: 1.3rem;
  color: #888;
}
.cb-pix-retry {
  margin-top: 1rem;
}
.cb-pix-already-paid {
  margin-top: 1.4rem;
  background: #fff;
  color: #eaa007;
  border: 2px solid #eaa007;
}
.cb-pix-already-paid:hover {
  background: #fdf3e0;
}

@media (max-width: 480px) {
  .cb-drawer {
    max-width: 100%;
  }
}
