.uc-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.uc-cart-overlay.uc-cart-open {
  opacity: 1;
  visibility: visible;
}

.uc-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.uc-cart-drawer.uc-cart-open {
  transform: translateX(0);
}

.uc-cart-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.uc-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.uc-cart-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.uc-cart-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: #333;
}
.uc-cart-close:hover {
  color: #000;
}

.uc-cart-step {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  padding-bottom: 2rem;
}

.uc-cart-items {
  min-height: 80px;
}
.uc-cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}
.uc-cart-item:last-child {
  border-bottom: none;
}
.uc-cart-item-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.uc-cart-item-info {
  flex: 1;
  min-width: 0;
}
.uc-cart-item-name {
  font-weight: 600;
  display: block;
  word-wrap: break-word;
}
.uc-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.uc-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f8f8f8;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #333;
}
.uc-qty-btn:hover {
  background: #eee;
  border-color: #999;
}
.uc-qty-value {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.uc-delete-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #999;
  font-size: 1rem;
  margin-left: 4px;
}
.uc-delete-btn:hover {
  color: #d9534f;
}
.uc-cart-item-price {
  color: #7fb06f;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
}

.uc-cart-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.uc-cart-subtotal {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.uc-cart-btn-checkout,
.uc-cart-btn-place {
  width: 100%;
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.uc-cart-back {
  background: none;
  border: none;
  padding: 0 0 0.75rem;
  cursor: pointer;
  color: #7fb06f;
  font-size: 0.95rem;
}
.uc-cart-back:hover {
  text-decoration: underline;
}

.uc-checkout-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.uc-form-section {
  margin-bottom: 1.25rem;
}
.uc-form-section h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.uc-hosted-field {
  position: relative;
  min-height: 38px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 0.25rem;
}
.uc-hosted-field .uc-hosted-input {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
}
.uc-hosted-note {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.uc-cart-thanks {
  text-align: center;
  padding: 2rem 0;
}
.uc-cart-thanks h3 {
  color: #7fb06f;
  margin-bottom: 0.5rem;
}

.uc-cart-empty {
  color: #666;
  padding: 1rem 0;
}
