/* 
  ======================================
  TOAST NOTIFICATIONS
  ======================================
*/

.shiku-toast-wrapper {
  position: fixed;
  top: 140px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none; /* Let clicks pass through the wrapper */
}

@media (min-width: 992px) {
  .shiku-toast-wrapper {
    right: 40px;
    top: 160px;
  }
}

.shiku-toast {
  pointer-events: auto !important;
  width: 320px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  position: relative !important;
  overflow: hidden !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  color: #323232 !important;
  opacity: 1 !important;
  z-index: 999999 !important;
}

.shiku-toast::before,
.shiku-toast::after {
  display: none !important;
}

.shiku-toast.is-hiding {
  opacity: 0 !important;
  transform: translateX(100%) !important;
}

@keyframes slideInToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Icons */
.shiku-toast__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content */
.shiku-toast__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shiku-toast__title {
  font-family: var(--font-heading, "Arimo", sans-serif) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #323232 !important;
  line-height: 1.2 !important;
}

.shiku-toast__body {
  font-family: var(--font-body, "Poppins", sans-serif) !important;
  font-size: 12px !important;
  color: #2f3f53 !important;
  line-height: 1.6 !important;
}

.shiku-toast__body p {
  margin: 0 !important;
}

/* Dynamic Buttons / Links */
.shiku-toast__action a.button,
.shiku-toast__body a.button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  font-family: var(--font-body, "Public Sans", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #323232 !important;
  text-transform: lowercase !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 0.5px solid #323232 !important;
  padding: 0 0 2px 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.shiku-toast__action a.button:hover,
.shiku-toast__body a.button:hover {
  background: transparent !important;
  color: #323232 !important;
}
.shiku-toast__action a.button::after,
.shiku-toast__body a.button::after {
  content: "" !important;
  display: inline-block !important;
  width: 14px !important;
  height: 10px !important;
  background-color: #323232 !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath fill='%23000' d='M13.354 5.354a.5.5 0 000-.708L10.172 1.464a.5.5 0 10-.707.708L12.293 5l-2.828 2.828a.5.5 0 10.707.708l3.182-3.182zM0 5.5h13v-1H0v1z'/%3E%3C/svg%3E") !important;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath fill='%23000' d='M13.354 5.354a.5.5 0 000-.708L10.172 1.464a.5.5 0 10-.707.708L12.293 5l-2.828 2.828a.5.5 0 10.707.708l3.182-3.182zM0 5.5h13v-1H0v1z'/%3E%3C/svg%3E") !important;
  mask-size: contain !important;
  -webkit-mask-size: contain !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-repeat: no-repeat !important;
}

/* Close Button */
.shiku-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.shiku-toast__close:hover {
  opacity: 1;
}

/* Variants overrides if needed */
.shiku-toast--error {
  background-color: #fffaf9;
  border-color: #ffcccc;
}
.shiku-toast--error .shiku-toast__icon svg circle { stroke: #d32f2f; }
.shiku-toast--error .shiku-toast__icon svg path { stroke: #d32f2f; }
.shiku-toast--error .shiku-toast__title { color: #d32f2f; }

/* Hide default WooCommerce global notices if they try to render outside our wrapper */
body > .woocommerce-message,
body > .woocommerce-error,
body > .woocommerce-info {
  display: none !important;
}
