/**
 * Custom Cart Remove Item Modal - Complete Styles
 *
 * Updated to match the provided UI design
 *
 * @package Custom_Cart_Remove_Item_Modal
 * @since 1.0.0
 */

/* ==========================================================================
   ## Modal Styles
   ========================================================================== */

.qty-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

.qty-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.qty-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  gap: 8px;
  width: 360px;
  background: #ffffff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  z-index: 1;
}

/* Header */
.qty-modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.qty-modal-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.25px;
  color: #40484f;
  margin: 0;
}

/* Body */
.qty-modal-body {
  font-weight: 400;
  font-size: 12px;
  line-height: 17px;
  color: #40484f;
  margin: 0;
  padding: 0;
}

/* Actions */
.qty-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.qty-modal-buttons #qty-confirm-yes,
.qty-modal-buttons #qty-confirm-no {
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px !important;
  font-weight: 700;
  font-size: 11px;
  line-height: 140%;
  border-radius: 4px;
  letter-spacing: 0px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  border: 1px solid transparent; 
}

/* Outline button (Cancel) */
#qty-confirm-no{
  color: #40484f;
  border: 1px solid #40484f !important;
  background: transparent;
}

#qty-confirm-no:hover {
  background: #f8f9fa;
}

/* Primary button (Remove) */
#qty-confirm-yes {
  color: #ffffff;
  background: #c51e54;
}

#qty-confirm-yes:hover {
  opacity: 0.7;
}

#qty-confirm-yes:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Body class when modal is open */
body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   ## Responsive Design
   ========================================================================== */

/* Mobile responsive */
@media (max-width: 480px) {
  .qty-modal-content {
    width: 95%;
    max-width: 320px;
    padding: 16px;
  }
}
