/* Products section padding */
.wc-auto-setup-products-section {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* Fixed mini cart container */
#fixed-wc-mini-cart {
  height: min-content;
  position: fixed;
  top: 30%;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 999999;
  background: inherit;
  border-radius: 6px 0px 0px 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 52px;
  cursor: pointer;
}
#fixed-wc-mini-cart a.fixed-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  background-color: white;
}
/* Dashicons cart icon */
#fixed-wc-mini-cart .fixed-cart-icon {
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}
#fixed-wc-mini-cart .fixed-cart-count {
  min-width: 20px;
  height: 20px;
  line-height: 18px;
  font-size: 12px;
  display: inline-block;
  padding: 0 6px;
  border-radius: 999px;
  background: inherit;
  color: inherit;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

/* Hide cart button on cart/checkout pages */
.cart-page #fixed-wc-mini-cart,
.checkout-page #fixed-wc-mini-cart,
.woocommerce-cart #fixed-wc-mini-cart,
.woocommerce-checkout #fixed-wc-mini-cart {
  display: none !important;
}

/* Side panel */
#fixed-cart-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease;
}
#fixed-cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: calc(100% - 24px);
  height: 100%;
  z-index: 999999;
  background: #ffffff;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.18);
  transition: right 0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
}
#fixed-cart-panel.open {
  right: 0;
}

#fixed-cart-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
#fixed-cart-panel .panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
#fixed-cart-panel .panel-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  color: var(--button-color, inherit);
}

#fixed-cart-panel .panel-body {
  overflow-y: auto;
  flex: 1 1 auto;
  padding-right: 6px;
}
/* compact item row */
.fixed-cart-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 13px;
}
/* remove button on left small */
.fixed-cart-item .fixed-cart-remove {
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  margin-right: 2px;
  flex: 0 0 auto;
}
.fixed-cart-item .item-thumb {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
}
.fixed-cart-item .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fixed-cart-item .item-desc {
  flex: 1 1 auto;
  min-width: 0;
}
.fixed-cart-item .item-desc .name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fixed-cart-item .item-desc .price {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  display: block;
}
.fixed-cart-item .item-price {
  margin-left: 8px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.fixed-cart-item .qty-input {
  width: 56px;
  padding: 6px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  flex: 0 0 auto;
}

#fixed-cart-panel .panel-footer {
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fixed-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
}

/* Added proper styling for Open Cart button to match checkout button */
.fixed-cart-open-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ast-global-color-1);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--ast-global-color-2);
  transition: all 0.3s ease;
}

.fixed-cart-open-btn:hover {
  background: #f8f9fa;
  color: #005a87;
  border-color: #005a87;
}

.fixed-cart-checkout-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ast-global-color-1);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.fixed-cart-checkout-btn:hover {
  background: var(--ast-global-color-2);
}

/* small screens */
@media (max-width: 600px) {
  #fixed-wc-mini-cart {
    top: 22%;
    padding: 6px;
    min-width: 44px;
  }
  #fixed-cart-panel {
    width: 320px;
  }
}

.wp-block-uagb-container:has(.alignwide.wp-block-surecart-product-list) {
  display: none !important;
}

.wp-block-uagb-container:has(
    .wp-block-cover__background.has-background-dim-0.has-background-dim
  ) {
  display: none !important;
}
