/* ============================================================
 * Moshina Child Theme - Added To Cart Popup & Notice Styling
 * Color Scheme: #361601 (Deep Rich Brown) & Harmonies
 * ============================================================ */

.cart_notice {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 999999 !important;
  max-width: 420px !important;
  width: calc(100% - 48px) !important;
  pointer-events: none;
  font-family: var(--font-heading, inherit);
  direction: rtl;
}

@media (max-width: 768px) {
  .cart_notice {
    bottom: 85px !important; /* Above bottom navigation bar */
    right: 50% !important;
    transform: translateX(50%);
    max-width: 92% !important;
    width: 92% !important;
  }
}

.cart_notice > * {
  pointer-events: auto;
}

/* Custom Popup Card Container */
.moshina-cart-popup-card {
  position: relative;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(54, 22, 1, 0.22);
  box-shadow: 0 16px 40px -10px rgba(54, 22, 1, 0.22), 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  animation: moshinaPopupSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease;
  direction: rtl;
  text-align: right;
}

@keyframes moshinaPopupSlideIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.moshina-cart-popup-card.moshina-hiding {
  opacity: 0;
  transform: translateY(16px) scale(0.95);
}

/* Close Button */
.moshina-cart-popup-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f7f1eb;
  color: #6b584d;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  line-height: 1;
  padding: 0;
}

.moshina-cart-popup-close:hover {
  background: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Header Badge */
.moshina-cart-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-left: 28px;
}

.moshina-cart-popup-badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f2e4d8;
  color: #361601;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
  border: 1px solid rgba(54, 22, 1, 0.15);
}

.moshina-cart-popup-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #361601;
  margin: 0;
  line-height: 1.3;
}

/* Body / Product Info */
.moshina-cart-popup-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 12px 0;
  border-top: 1px solid #f2e8e1;
  border-bottom: 1px solid #f2e8e1;
}

.moshina-cart-popup-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: #fdfaf7;
  border: 1px solid #e8dad0;
  flex-shrink: 0;
}

.moshina-cart-popup-info {
  flex: 1;
  min-width: 0;
}

.moshina-cart-popup-msg-text {
  font-size: 13px;
  color: #4a382c;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

.moshina-cart-popup-msg-text strong {
  color: #361601;
  font-weight: 700;
}

/* Footer / Action Buttons */
.moshina-cart-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.moshina-cart-popup-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
}

/* Primary Button - Main Deep Brown #361601 */
.moshina-cart-popup-btn-primary {
  background: linear-gradient(135deg, #361601 0%, #592502 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(54, 22, 1, 0.3);
}

.moshina-cart-popup-btn-primary:hover {
  background: linear-gradient(135deg, #240e01 0%, #421b01 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(54, 22, 1, 0.4);
  color: #ffffff !important;
}

/* Checkout Button - Warm Brown Accent */
.moshina-cart-popup-btn-checkout {
  background: linear-gradient(135deg, #7c3a0b 0%, #562705 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 11, 0.25);
}

.moshina-cart-popup-btn-checkout:hover {
  background: linear-gradient(135deg, #5c2906 0%, #3e1b02 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 11, 0.35);
  color: #ffffff !important;
}

.moshina-cart-popup-btn-secondary {
  background: #f7f1eb;
  color: #361601 !important;
  border: 1px solid #e5d5c8;
}

.moshina-cart-popup-btn-secondary:hover {
  background: #eddccf;
  color: #240e01 !important;
}

/* Progress Countdown Bar */
.moshina-cart-popup-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(54, 22, 1, 0.12);
  overflow: hidden;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.moshina-cart-popup-progress-bar {
  height: 100%;
  background: #361601;
  width: 100%;
}
