/* Nicobay Cart Page Styles - MyMoods Style */

/* Ensure cart page uses full page width */
cart-items .page-width {
  max-width: var(--page-width);
  padding: 0 1.5rem;
}

.nicobay-cart-header {
  text-align: left;
  margin-bottom: 2rem;
}

.nicobay-cart-title {
  color: #505050;
  font-size: 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.02em;
}

@media screen and (max-width: 768px) {
  .nicobay-cart-title {
    font-size: 18px;
  }
}

.nicobay-cart-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.nicobay-cart-continue:hover {
  opacity: 0.7;
}

.nicobay-cart-continue svg {
  display: none;
}

/* Cart Table Styles - MyMoods Style */
.cart__items {
  border-radius: 8px;
  margin-bottom: 2rem;
}

.cart-items {
  width: 100%;
  border-collapse: collapse;
}

.cart-items th {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd;
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

.cart-items td {
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.cart-item__media {
  width: 120px;
}

.cart-item__image-container {
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  width: 100px;
  height: 100px;
}

.cart-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info - MyMoods Style */
.cart-item__name {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.cart-item__name:hover {
  opacity: 0.7;
}

.product-option {
  font-size: 14px;
  color: #666;
  margin-bottom: 0.25rem;
}

.cart-item__discounted-prices {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cart-item__old-price {
  color: #999;
  font-size: 14px;
}

.cart-item__final-price {
  color: #ff0000;
  font-size: 14px;
}

/* Quantity - MyMoods Style */
.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity__button {
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.quantity__button:hover {
  background-color: #f5f5f5;
}

.quantity__button svg {
  width: 12px;
  height: 12px;
}

.quantity__input {
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  width: 50px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  -moz-appearance: textfield;
}

.quantity__input::-webkit-outer-spin-button,
.quantity__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove Button - MyMoods Style */
cart-remove-button a {
  color: #666;
  text-decoration: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
  padding: 0.5rem;
}

cart-remove-button a:hover {
  opacity: 0.5;
}

cart-remove-button svg {
  width: 16px;
  height: 16px;
}

/* Price - MyMoods Style */
.cart-item__totals {
  text-align: right;
}

.price {
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

.cart-item__discounted-prices .price {
  color: #ff0000;
}

/* Empty Cart - MyMoods Style */
.cart__warnings {
  text-align: center;
  padding: 4rem 0;
}

.nicobay-cart-empty {
  text-align: center;
}

.nicobay-cart-empty-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #333;
}

.nicobay-cart-empty-button {
  display: inline-block;
  background-color: rgb(63, 134, 39);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.nicobay-cart-empty-button:hover {
  background-color: rgb(50, 107, 31);
}

.nicobay-cart-empty-button svg {
  display: none;
}

/* Mobile Styles - MyMoods Style */
@media (max-width: 749px) {
  .cart-items thead {
    display: none;
  }

  .cart-item__media {
    width: 80px;
  }

  .cart-item__image-container {
    width: 80px;
    height: 80px;
  }

  .cart-item__name {
    font-size: 14px;
  }

  .product-option {
    font-size: 12px;
  }
}

/* Additional MyMoods-style elements */
.title-wrapper-with-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.underlined-link {
  font-size: 14px;
  color: #333;
  text-decoration: underline;
}

.underlined-link:hover {
  opacity: 0.7;
}

/* Checkout button styling */
.cart__checkout-button {
  background: rgb(63, 134, 39);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 16px;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 400px;
}

.cart__checkout-button:hover:not(:disabled) {
  background-color: rgb(50, 107, 31);
}

.cart__checkout-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cart footer styling - MyMoods Style */
.cart__footer {
  border-radius: 8px;
  margin-top: 2rem;
}

.cart__blocks {
  max-width: 500px;
  margin-left: auto;
}

.totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0;
}

.totals__total {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin: 0;
}

.totals__total-value {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  margin: 0;
}

.totals:first-of-type .totals__total {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.totals:first-of-type .totals__total-value {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.tax-note {
  font-size: 12px;
  color: #666;
  margin-bottom: 1.5rem;
  display: block;
}

.cart__ctas {
  text-align: center;
}

/* Cart note styling */
.cart__note {
  margin-bottom: 2rem;
}

.cart__note label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.cart__note textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
}

/* Error message styling - only for actual errors */
.cart-limit-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 1rem;
}
