/* Notifications Table */
.pvrd-notifications-table { width:100% !important; border-collapse:collapse !important; }
.pvrd-notifications-table th, .pvrd-notifications-table td { /* border:1px solid #ddd !important; */ padding:8px !important; vertical-align:middle !important; }
.pvrd-notifications-table th { background:#f4f4f4 !important; font-weight:bold !important; text-align:left; vertical-align:middle !important; }

/* Remove Button */
.pvrd-remove-btn { 
    /* background-color: #f44336 !important; */ 
    /* border: none !important; */ 
    color: white !important; 
    cursor: pointer !important; 
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    text-align: center;
    display: inline-block !important;
    transition: background-color 0.3s ease !important;
}

.pvrd-remove-btn:hover {
    /* background-color: #d32f2f !important; */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* Popup Overlay */
.pvrd-popup-overlay { position:fixed !important; top:0 !important; left:0 !important; width:100vw !important; height:100vh !important; background:rgba(0,0,0,0.5) !important; display:none !important; align-items:center !important; justify-content:center !important; z-index:9999 !important; }
.pvrd-popup-overlay.active { display:flex !important; }

/* Popup */
.pvrd-popup { background:#fff !important; padding:20px !important; border-radius:8px !important; width:90% !important; max-width:400px !important; max-height:90% !important; overflow:auto !important; position:relative !important; }
.pvrd-popup-close { position:absolute !important; top:0px !important; right:10px !important; cursor:pointer !important; color:#333 !important; font-size:25px !important; }

/* Popup Form Elements */
.pvrd-popup > form > label, 
.pvrd-popup input[type="number"], 
.pvrd-popup select, 
.pvrd-popup button { display:block !important; width:100% !important; margin-bottom:10px !important; }

/* Form fields border radius */
.pvrd-popup select, .pvrd-popup input[type="number"] { border-radius: 8px !important; padding: 8px !important; }

/* Toggle container styling */
.pvrd-toggle-container { 
  display: flex !important; 
  justify-content: space-around !important; 
  margin: 15px 0 !important; 
  width: 100% !important; 
  flex-wrap: wrap !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transition-property: max-height, opacity, margin !important;
  transition-timing-function: ease-in-out !important;
  transition-duration: 0.3s !important;
}

/* Toggle container visible state */
.pvrd-toggle-container.visible {
  max-height: 200px !important; /* Adjust based on your content */
  opacity: 1 !important;
  margin: 15px 0 !important;
}
.pvrd-toggle-wrapper { 
  display: flex !important; 
  align-items: center !important; 
  margin: 8px !important; 
  justify-content: space-between !important; 
  min-width: 140px !important; 
  background: #f9f9f9 !important;
  padding: 8px 12px !important;
  border-radius: 30px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}
.pvrd-toggle-label { margin-right: 10px !important; font-weight: 500 !important; }

/* Toggle Switch */
.pvrd-toggle-switch {
  position: relative !important;
  display: inline-block !important;
  width: 40px !important;
  height: 20px !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
}

.pvrd-toggle-switch input { 
  opacity: 0 !important; 
  width: 0 !important; 
  height: 0 !important; 
}

.pvrd-toggle-slider {
  position: absolute !important;
  cursor: pointer !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: #ccc !important;
  transition: .4s !important;
  border-radius: 20px !important;
}

.pvrd-toggle-slider:before {
  position: absolute !important;
  content: "" !important;
  height: 16px !important;
  width: 16px !important;
  left: 2px !important;
  bottom: 2px !important;
  background: #fff !important;
  transition: .4s !important;
  border-radius: 50% !important;
}

.pvrd-toggle-switch input:disabled + .pvrd-toggle-slider {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}

.pvrd-toggle-switch input:checked + .pvrd-toggle-slider { 
  background: #2196F3 !important; 
}

.pvrd-toggle-switch input:checked + .pvrd-toggle-slider:before { 
  transform: translateX(20px) !important; 
}

/* Button text: preserve case */
.pvrd-notification-button {
    text-transform: none !important;
    transition: all 0.3s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Default icon spacing fallback */
.pvrd-notification-button .pvrd-button-icon:first-child {
    margin-right: 4px !important;
}
.pvrd-notification-button .pvrd-button-icon:last-child {
    margin-left: 4px !important;
}

.pvrd-popup button {
    border-radius: 20px !important;
    text-transform: none !important;
}

/* Remove Button Style */
.pvrd-variant-remove {
    width: 100% !important;
    background-color: #f44336 !important; /* Red color for remove button */
    color: white !important;
}

/* Disabled button state */
.pvrd-notification-button.pvrd-button-disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Basic container for notification buttons */
.pvrd-notification-action-container {
    width: 100% !important;
}

@media screen and (max-width: 768px) {
  /* Hide headers */
  .pvrd-notifications-table thead {
    display: none;
  }

  .pvrd-notifications-table,
  .pvrd-notifications-table tbody,
  .pvrd-notifications-table tr {
    display: block;
    width: 100%;
  }

  .pvrd-notifications-table tr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 10px;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    background: #fff !important;
  }

  .pvrd-notifications-table td {
    display: block;
    padding: 6px 0;
  }

  /* First two cells span full width */
  .pvrd-notifications-table td:nth-child(1),
  .pvrd-notifications-table td:nth-child(2) {
    grid-column: 1 / -1;
  }

  /* Label each cell from its data-label attribute */
  .pvrd-notifications-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
  }

  .pvrd-notifications-table .pvrd-bottom-cell {
  background: #f9f9f9;
  border-radius: 4px;
  display: flex;
  flex-direction: column;      /* ← stack label above content */
  justify-content: center;
  align-items: center;
  padding: 8px;
}

/* ensure the generated label is block and has some breathing room */
.pvrd-notifications-table .pvrd-bottom-cell::before {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

  /* Center the toggle switch nicely */
  .pvrd-toggle-switch {
    margin: 0 auto;
  }
}