/**
 * PWA Polish - Bottom Sheet Styles (R-10)
 */

.bs-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bs-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bs-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  z-index: 99991;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.bs-panel.active {
  transform: translateY(0);
}

.bs-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
  cursor: grab;
  touch-action: none;
}

.bs-handle-bar {
  width: 40px;
  height: 4px;
  background: #d0d0d0;
  border-radius: 2px;
}

.bs-content {
  padding: 8px 20px 20px;
}

.bs-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.bs-message {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Botones de confirmacion */
.bs-buttons {
  display: flex;
  gap: 10px;
}

.bs-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-height: 44px;
}

.bs-btn:active {
  transform: scale(0.97);
}

.bs-btn-cancel {
  background: #f0f0f0;
  color: #333;
}

.bs-btn-cancel:hover {
  background: #e0e0e0;
}

.bs-btn-confirm {
  background: #5e72e4;
  color: #fff;
}

.bs-btn-confirm:hover {
  background: #4a5bc7;
}

.bs-btn-danger {
  background: #f85149;
  color: #fff;
}

.bs-btn-danger:hover {
  background: #da3633;
}

/* Acciones (menu de opciones) */
.bs-actions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bs-action-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border: none;
  background: none;
  width: 100%;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  min-height: 44px;
  text-align: left;
}

.bs-action-item:hover {
  background: #f5f5f5;
}

.bs-action-item:active {
  background: #eee;
  transform: scale(0.98);
}

.bs-action-item.danger {
  color: #f85149;
}

.bs-action-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.bs-action-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

/* Body lock cuando esta abierto */
body.bs-open {
  overflow: hidden;
}
