/* global-cart-widget.css */

/* Wrapper button */
#global-cart-widget-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background-color: var(--primary-color, #b20000);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  line-height: 69px;
  transition: background-color 0.2s ease;
}

/* Hidden popup container */
#global-cart-popup {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #fff;
  color: #000;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

/* Reset list styles */
#global-cart-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Store row layout */
#global-cart-details .store-row,
.widget_shopping_cart .store-row,
#cart-popup .store-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--row-border-color, #ddd);
  padding: 12px 0;
  flex-direction: column;
  min-width: 260px;
}

/* Cart popup specific row padding */
#cart-popup .store-row {
  padding: 12px 20px;
}

/* Popup header styling */
#cart-popup .cart-header {
  padding: 12px 20px 15px !important;
}

/* Cart icon in wrapper */
.myglobal-cart-icon {
  fill: white;
  font-size: 1em;
  width: 1em;
  height: 1em;
}

/* Items wrapper inside each store row */
#global-cart-details .store-items-wrapper,
.widget_shopping_cart .store-items-wrapper,
#cart-popup .store-items-wrapper {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

/* Store info container */
#global-cart-details .store-info,
.widget_shopping_cart .store-info,
#cart-popup .store-info {
  display: flex;
  flex-direction: row;
  gap: 6px;
  justify-content: space-between;
  align-items: center;
}

/* Store name style */
#global-cart-details .store-name,
.widget_shopping_cart .store-name,
#cart-popup .store-name {
  font-weight: bold;
  margin-bottom: 4px;
  color: #000;
}

/* Item count & price text */
#global-cart-details .store-items,
.widget_shopping_cart .store-items,
#cart-popup .store-items {
  color: #555;
  font-size: 14px;
}

/* “View” button */
#global-cart-details .view-btn,
.widget_shopping_cart .view-btn,
#cart-popup .view-btn {
  padding: 0 10px;
  background-color: var(--primary-color, #b20000);
  color: var(--text-color, #fff);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  height: 30px;
  line-height: 30px;
}


#global-cart-widget {
    position: absolute;
    top: 0;
    right: 0;
    background: #459c06;
    border-radius: 50%;
    height: 25px;
    width: 25px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    line-height: 25px;
}
