/* ================================
   CART MODAL THEME STYLES (Refined)
   ================================ */

/* Hide WooCommerce add-to-cart notices only */
.woocommerce-message[role="alert"]:has(a.wc-forward),
.woocommerce-notices-wrapper:has(.woocommerce-message a.wc-forward) {
  display: none !important;
}

/* Alternative fallback - hide notices that contain "added to your cart" text */
.woocommerce-message:has(a[href*="/cart/"]),
.woocommerce-notices-wrapper:has(.woocommerce-message a[href*="/cart/"]) {
  display: none !important;
}

/* Hide sticky cart panel when item is added */
#wc-sticky-cart-panel.item-added,
.add-to-cart-panel.item-added {
  display: none !important;
}

.rgc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.rgc-modal.is-open {
  display: flex !important;
}
.rgc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.rgc-modal__panel {
  position: relative;
  background: #fff;
  width: min(810px, 95vw);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 100000;
  font-family: 'Gotham Rounded', sans-serif !important;
}
.rgc-modal__inner {
  padding: 20px;
  max-height: calc(90vh - 40px);
  overflow: hidden;
}
.rgc-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
}
.rgc-modal__header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
}
.rgc-modal__number {
  display: none;
}
#rgc-modal-title {
  margin: 0;
  font-weight: 600;
  font-size: 31px;
  text-transform: uppercase;
}
.rgc-modal__content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.rgc-modal__left {
  flex: 1;
}
.rgc-modal__right {
  flex: 0 0 35% !important;
  width: 35% !important;
  max-width: 35% !important;
  text-align: center;
}
.rgc-cart-details {
  margin-bottom: 16px;
}
.rgc-product-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}
.rgc-product-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.rgc-product-price {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
.rgc-product-price:before {
  content: "–";
  margin-right: 10px;
  color: #999;
}
.rgc-product-breakdown {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 0;
}
.rgc-product-breakdown .woocommerce-mini-cart__buttons {
  display: none !important;
}
.rgc-product-breakdown .button {
  display: none !important;
}
.rgc-product-image {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rgc-placeholder-image {
  width: 100%;
  height: 300px;
  margin: 0 auto;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.rgc-modal__actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 8px 0 20px 0;
}
.rgc-estimated-total {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px 0;
  text-align: right;
  color: #666;
}
.rgc-estimated-total .total-amount {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.rgc-checkout-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.rgc-btn {
  border-radius: 999px !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  padding: 8px 18px;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}
.rgc-btn--primary {
  background: #ef3f29 !important;
  color: #fff !important;
}

.rgc-btn--ghost {
  background: none !important;
  border: none !important;
  color: #8B5CF6 !important;
  text-decoration: underline !important;
  padding: 0 !important;
  font-size: 14px !important;
  border-radius: 0 !important;
  font-weight: normal !important;
  box-shadow: none !important;
}
.rgc-btn--ghost:hover {
  background: none !important;
  color: #7C3AED !important;
}

.rgc-btn--ghost.rgc-continue-shopping {
  padding: 8px 18px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  color: #4B499E !important;
}
.rgc-btn--ghost.rgc-continue-shopping:hover {
  text-decoration: underline !important;
}

/* Product contents styling */
.rgc-product-contents {
  font-size: 14px;
}
.rgc-product-contents strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.rgc-product-contents ul {
  margin: 0;
  padding-left: 16px;
  list-style: none;
}
.rgc-product-contents li {
  margin-bottom: 2px;
  position: relative;
  line-height: 1.3;
}
.rgc-product-contents li:before {
  content: "•";
  color: #999;
  position: absolute;
  left: -12px;
}
/* Recommendations: equal spacing with flexbox */
.rgc-recommendations {
  text-align: center;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 26px;
}
.rgc-recommendations h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
}
.rgc-recommendation-grid {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
}
.rgc-recommendation-item {
  text-align: center;
  flex: 0 0 auto;
  max-width: 200px;
  width: 180px;
}
.rgc-rec-image {
  width: 140px !important;
  height: 110px !important;
  margin: 0 auto 12px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 8px;
}
.rgc-rec-title {
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 10px 0;
  line-height: 1.2;
}
.rgc-btn--small {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  background: #ef3f29 !important;
  color: #fff !important;
}
@media (max-width: 768px) {
  .rgc-modal__content {
    flex-direction: column;
    gap: 16px;
  }
  .rgc-modal__right {
    flex: none;
    order: 1;
  }
  .rgc-modal__left {
    order: 2;
  }
  .rgc-modal__actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .rgc-recommendation-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0 10px;
  }
  /* Mobile adjustments for product image */
  .rgc-product-image {
    height: 250px;
  }
  .rgc-placeholder-image {
    height: 250px;
  }
}